Invalid iPhone Application Binary

后端 未结 30 1685
天命终不由人
天命终不由人 2020-11-29 18:25

I\'m trying to upload an application to the iPhone App Store, but I get this error message from iTunes Connect:

The binary you uploaded was invalid. T

相关标签:
30条回答
  • 2020-11-29 18:52

    I had the same issue and after trying several things - I removed the .plist entitlements from the Code Signing Entitlements (just left it blank) and it built fine and uploaded FINALLY.

    Good luck all :-D

    0 讨论(0)
  • 2020-11-29 18:52

    Another data point: for a while, my app went through. Now I've added support for in-app purchases, and suddenly it fails with an "Invalid binary/invalid signature" problem. Upon careful looking, I found out that the value of application-identifier in the entitlements plist file was off.

    This, most likely, had to do with the fact that I've replaced the provisioning profile from a wildcarded one to a app-specific one (required for in-app purchases). The wrong app ID qualified under the old profile. It did not match the app ID in the info.plist, but apparently iTunes forgave that.

    So, to recap:

    info.plist: com.mydomain.foo
    dist.plist: com.mydomain.bar
    Profile: com.mydomain.*
    

    is OK, while

    info.plist: com.mydomain.foo
    dist.plist: com.mydomain.bar
    Profile: com.mydomain.foo
    

    causes "Invalid binary".

    0 讨论(0)
  • 2020-11-29 18:53

    I had a problem with this and the 4.3 GM SDK. One of our apps would not make it past upload received. It turned out to be a provisioning profile issue. I regenerated the app store profile and it worked fine.

    0 讨论(0)
  • 2020-11-29 18:54

    Same problem, different solution.

    In my case, I was compressing the file using zip -r myapp.zip myapp.app Turns out, the zip command screwed the bundle. Compressing it from the finder made it work.

    0 讨论(0)
  • 2020-11-29 18:54

    uuid is not allowed. I fixed it by remove all [[UIDevice currentDevice] uniqueIdentifier];

    0 讨论(0)
  • 2020-11-29 18:55

    It's been my experience that Xcode occasionally gets confused about which signing certificate to use. I got into the habit of quitting and restarting Xcode after any change to the code signing settings (and doing a clean build) to work around this problem.

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