Unity-iPhone.xcodeproj cannot be opened because the project file cannot be parsed.xcode工程無法解析(打開)

15:18:03 User defaults from command line:
15:18:03     IDEArchivePathOverride = /Users/global/JenkinsBuilder/00.Demo_Martin/builds/232/com.sinyee.babybus.solar-Development/build/Unity-iPhone.xcarchive
15:18:03 
15:18:03 2017-11-29 15:18:03.951 xcodebuild[20818:217506] Error Domain=NSCocoaErrorDomain Code=3840 "Unexpected character / at line 1" UserInfo={NSDebugDescription=Unexpected character / at line 1, kCFPropertyListOldStyleParsingError=Error Domain=NSCocoaErrorDomain Code=3840 "Unexpected character '0x7248' at line 762" UserInfo={NSDebugDescription=Unexpected character '0x7248' at line 762}}
15:18:03 xcodebuild: error: Unable to read project 'Unity-iPhone.xcodeproj'.
15:18:03    Reason: Project /Users/global/JenkinsBuilder/00.Demo_Martin/builds/232/com.sinyee.babybus.solar-Development/Unity-iPhone.xcodeproj cannot be opened because the project file cannot be parsed.
15:18:03 
15:18:03 
15:18:04 error: archive not found at path '/Users/global/JenkinsBuilder/00.Demo_Martin/builds/232/com.sinyee.babybus.solar-Development/build/Unity-iPhone.xcarchive'
15:18:04 ** EXPORT FAILED **
15:18:04 
15:18:04 mv: rename /Users/global/JenkinsBuilder/00.Demo_Martin/workspace/../builds/232/archive/Unity-iPhone.ipa to /Users/global/JenkinsBuilder/00.Demo_Martin/workspace/../builds/232/archive/com.sinyee.babybus.solar-Development-1.0.000@1.0.000-appstore[en-fr-ja-ko-ru-zh-zht].ipa: No such file or directory
15:18:04 Build step 'Conditional step (single)' marked build as failure
15:18:04 Finished: FAILURE

原因:無法解析Unity-iPhone.xcarchive 文件

  Reason: Project /Users/global/JenkinsBuilder/00.Demo_Martin/builds/232/com.sinyee.babybus.solar-Development/Unity-iPhone.xcodeproj cannot be opened because the project file cannot be parsed.

解決辦法:

15:18:03 2017-11-29 15:18:03.951 xcodebuild[20818:217506] Error Domain=NSCocoaErrorDomain Code=3840 "Unexpected character / at line 1" UserInfo={NSDebugDescription=Unexpected character / at line 1, kCFPropertyListOldStyleParsingError=Error Domain=NSCocoaErrorDomain Code=3840 "Unexpected character '0x7248' at line 762" UserInfo={NSDebugDescription=Unexpected character '0x7248' at line 762}}

用sublime打開Unity-iPhone.xcodeproj 定位到Unexpected character '0x7248' at line 762" 762行 定位到問題是因為文件有中文名稱 改為英文即可

image.png

還有一種可能是因為沖突沒有合并 出現<<<< ========= >>>>> 等符號 解決沖突解決重新打開即可

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
【社區(qū)內容提示】社區(qū)部分內容疑似由AI輔助生成,瀏覽時請結合常識與多方信息審慎甄別。
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發(fā)布,文章內容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

友情鏈接更多精彩內容