Error Itms-90339: This bundle is invalid . The info.plist contains an invalid key 'CFBundleResourceSpecification’ in app bundle

前端 未结 6 1267
挽巷
挽巷 2020-12-04 10:10

I am trying to upload my application on iTunes for iOS 9. I used Xcode 7 beta 6 to build my IPA , but iTunes failed to upload my IPA by following error message .

6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-04 10:34

    The problem lies in the Xcode integration plugin for Jenkins. Specifically, there is a checkbox in build details pane called : "Pack application and build .ipa?"

    This feature will call 'xcrun PackageApplication' with the optional '--embed' and '--sign' flags set.

    for the most part you will have already run codesign, and also in most cases the embedding of the provisioning profile is redundant. unfortunately the author of the plugin has not taken this into consideration, and these two optional parameters are not configurable through the GUI of the jenkins plugin.

    the solution:

    DO NOT SELECT THIS OPTION!

    This option has three parameters:

    • '.ipa filename pattern' : ex: MyApplication

    • 'Output directory' : ex: OUTPUT

    • 'manifest plist URL' ( I've not used this... )

    instead, manually package your .ipa file by adding the 'execute shell' after the build using the parameters you would in the 'pack' option of the GUI:

    /bin/mkdir $(PWD)/build/OUTPUT    
    /usr/bin/xcrun -sdk iphoneos PackageApplication -v $(PWD)/build/MyApplication.app -o $(PWD)/build/OUTPUT/MyApplication.ipa
    

提交回复
热议问题