Unity-iPhone.xcodeproj cannot be

作者: RichMartin | 来源:发表于2017-11-29 17:40 被阅读51次
    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

    还有一种可能是因为冲突没有合并 出现<<<< ========= >>>>> 等符号 解决冲突解决重新打开即可

    相关文章

      网友评论

        本文标题:Unity-iPhone.xcodeproj cannot be

        本文链接:https://www.haomeiwen.com/subject/ajzubxtx.html