Invalid Bundle Structure - iOS

前端 未结 7 954
感情败类
感情败类 2021-01-12 07:00

I have tried do submit an application via Xcode (as well as the application loader) to the Apple store, and I received the following error:

Invalid Bu

相关标签:
7条回答
  • 2021-01-12 07:24

    I ran into this as well. In my case a symlink to a binary (Xcode) had been added to the project (somehow). Removing from the project was the fix.

    0 讨论(0)
  • 2021-01-12 07:31

    Some developers have hit this issue when integrating the Apptentive iOS SDK. Making the same error with other 3rd-party SDKS will cause the same issue.

    Invalid Build Structure

    The binary file 'YourApp.app/libApptentiveConnect.a' is not permitted.

    Your app may contain only one executable file."

    This error occurs when the Apptentive static library is copied to the app bundle.

    libApptentiveConnect.a should be added to the target's Link Binary with Libraries build phase.

    It should not be added to the target's Copy Bundle Resources build phase.

    0 讨论(0)
  • 2021-01-12 07:38

    see screen shot, this is the right side of xcode, where it says "text Encoding", 4 of my header files and objective C files where called something like "regular text files" instead of "Unicode (UTF-8), how they got that way, I don't know, but xCode decided to make them into binaries ".o" files, and even put them in where the pngs go in an archived project.

    0 讨论(0)
  • 2021-01-12 07:39

    I had this problem, tried all of the solutions above and didn't work for me. In the end it was solved by creating the app in iTunesConnect ( itunesconnnect.apple.com ).

    0 讨论(0)
  • 2021-01-12 07:41

    I know this is a rather old post, but I ran into this issue and this is how I fixed it:

    1. In Xcode, click on your project and go to the target's build settings.
    2. Make sure the "Build Variants" setting ONLY has "normal" set for the target.
    3. Clean and rebuild.

    I believe this is what fixed the problem, but there is one other change that may have had an effect.

    At one point, I had turned off 'Parallelize Build" in my active Scheme. I had since turned it back on, but perhaps it left some artifacts. I doubt this had any connection, but just in case, I went to my build folders and deleted the files inside before I cleaned and built.

    I hope this can help someone who runs into this issue.

    0 讨论(0)
  • 2021-01-12 07:44

    For me the answer was to

    1. go to

      /Users/myusername/Library/Developer/Xcode/Archives

    2. go to the current folder for the latest archive.

    3. right-click the .xarchive and select 'show package contents'

    4. navigate inside the 'products/applications' directory

    5. right-click the myAppName.app and select 'show package contents'

    6. delete the exe at the very bottom that was not named myAppName.exe

    0 讨论(0)
提交回复
热议问题