Apple has recently changed their rules for signing apps, causing a potential problem when submitting a game with the Skillz SDK:
"Invalid Signature. Code object is not signed at all. The binary at path [.../SkillzSDK.bundle/postprocess.sh] contains an invalid signature. Make sure you have signed your application with a distribution certificate, not an ad hoc certificate or a development certificate. Verify that the code signing settings in Xcode are correct at the target level (which override any values at the project level). Additionally, make sure the bundle you are uploading was built using a Release target in Xcode, not a Simulator target. If you are certain your code signing settings are correct, choose "Clean All" in Xcode, delete the "build" directory in the Finder, and rebuild your release target. For more information, please consult https://developer.apple.com/library/ios/documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html"
The Skillz SDK includes a shell script called 'postprocess.sh'. Developers need to add this file as a 'Build Phase' in their Xcode's project settings, and run it on each build. Apple's new app signing rules prevent apps from including these kinds of files in their IPA. Here are two workarounds
- Move the "postprocess.sh" file out of the Skillz bundle (to prevent it from being packaged in the first place). Set the "Build Phase>Run Script" to use the new path for the file.
- Manually delete the file from built IPAs, as shown below: