bin/nixenvironment in nixenvironment-0.0.143 vs bin/nixenvironment in nixenvironment-0.0.144
- old
+ new
@@ -135,10 +135,19 @@
manifest = Nokogiri::XML(File.open(f))
manifest.at('Package/Identity')['Version'] = "#{options.app_version}.#{build_number}"
end
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