bin/nixenvironment in nixenvironment-0.0.145 vs bin/nixenvironment in nixenvironment-0.0.146
- old
+ new
@@ -139,17 +139,10 @@
elsif need_to_build_ios
Dir.chdir(UNITY_IOS_PROJECT_PATH) if is_unity_platform
read_config_settings
- if $bundle_id
- plist_path = @config_settings[PRODUCT_SETTINGS_PATH_KEY]
- info_plist = Plist.from_file(plist_path)
- info_plist['CFBundleIdentifier'] = $bundle_id
- info_plist.save(plist_path, Plist::FORMAT_XML)
- end
-
@config_settings[CONFIGURATION_KEY] = options.config
if is_unity_platform
@config_settings[WORKSPACE_KEY] = nil
@config_settings[PROJECT_KEY] = UNITY_BUILDS_IOS_PROJECT
@@ -174,9 +167,16 @@
rescue => e
error('Build error!', e)
end
@config_settings.merge!(Xcodebuild.config_settings) { |_key, v1, v2| v1 || v2 }
+
+ if $bundle_id
+ plist_path = @config_settings[PRODUCT_SETTINGS_PATH_KEY]
+ info_plist = Plist.from_file(plist_path)
+ info_plist['CFBundleIdentifier'] = $bundle_id
+ info_plist.save(plist_path, Plist::FORMAT_XML)
+ end
begin
prebuild(options.config, options.app_version, options.requires_fullscreen, options.skip_working_copy_check)
build(options.config, options.xcconfig, options.ipa, options.ndsym, options.icon_tagger, options.xc_args)
ensure