We have a game which is original a C++ project, use premake5 generated the XCode project try to ship on App Store.
XCode: 15.4
Destination: Mac macOS
The steps from this page, all checked.
skip_install is set to NO, no dependencies.
My linked libraries don't use a headers build phase
Installation Directory is set to $(LOCAL_APPS_DIR).
https://developer.apple.com/documentation/technotes/tn3110-resolving-generic-xcode-archive-issue
Use Show Package Contents, the screenshot is how it looks, it looks good to me.
Checked the config in Target-> General
Destination(Mac),
Bundle Identifier is set
Version( 1.0 ), Build( 1 ), App Icon( AppIcon )
In Signing & Capabilities, have the Sandbox added.
Use Produce-> Archive to build, but it looks it will try to compile each project for all architectures instead of just arm for me, so I'm using the command line:
"xcodebuild -project /.xcodeproj -scheme -archivePath /Users/name/Documents/test.xcarchive archive" to build it.
and it results successfully build, checked the log, there aren't any wired error or warning.
Checked the Info.plist in the content, compare to a game project generated from Xcode, it looks like the "ApplicationProperties" property is missing, tried to menually modify the Info.plist in the content, add the "ApplicationProperties" property and the infors, then issue doesn't show anymore, but I don't think this can be the solution.
Anything that missing?
Thanks.