-
Upon successfully making an Archive build with Xcode 15.2, then under Organizer I select that archive and press Distribute App. Selecting Direct Distribution, and then Distribute gives me the following error:
However, under Signing and Capabilities, I do have Hardened Runtime enabled, as well as under the Build Settings for each target I have "Enable Hardened Runtime" set to "Yes". I've also set the Code Signing Entitlements to our entitlements file, the Code Signing Identity to "Apple Development", the Code Signing Style to "Automatic", and the Development Team to the Development Team I work for. This is setup exactly how I had it setup for Cocos2d-x 3.17.2, except that Cocos2d-x didn't give us any errors like this upon attempting to distribute an archive build. It seems like either Xcode isn't signing or attempting to sign our build, so the Archive itself is unsigned: thus giving us the Hardened Runtime missing error. I'm not sure why this might be though, and don't see anything in the project file that would stop Xcode from signing the build. Any help solving this issue would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
A similar issue was discussed in #1662 and resolved. Please take a look at that discussion to see if it helps. |
Beta Was this translation helpful? Give feedback.
I apologize, I didn't realize that CODE_SIGNING_ALLOWED was a User-Defined project build setting in the xcproject file, and assumed it was a setting under "Signing".
After changing this from "NO" to "YES", I was able to build an archive and distribute it with Direct Distribution from the Xcode Organizer window.