How to debug “Invalid Bundle” error which happens only after submitting to app store

前端 未结 12 1047
臣服心动
臣服心动 2020-12-04 14:26

I have a lot of frameworks in my app. App works fine in adhoc/enterprise release. Only if I submit to the app store for testflight testing I get this error email from apple:

12条回答
  •  爱一瞬间的悲伤
    2020-12-04 15:09

    I have encountered the same issue when uploading an app with watch support to the app store.

    I was able to solve it with the hint from the first answer, using otool -L to analyze the binary from the ipa or xcarchive. However, the problem was not with my frameworks (at @rpath) but with a swift lib. I noticed that libswiftWatchKit.dylib was missing in the frameworks folder.

    The solution that worked for me was as simple as to set EMBEDDED_CONTENT_CONTAINS_SWIFT=YES in the build settings of the watch app (or the watch app extension, but not both). After that, all necessary swift libraries were correctly copied to the watch app path in the archive and upload to app store was working correctly.

    Apparently, the watch app works and upload passes if you provide the necessary swift libraries only in the main app's folder.

提交回复
热议问题