Generic Xcode Archive issue

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 <mypath>/<mygame>.xcodeproj -scheme <myscheme> -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.

Answered by WangHeng0301 in 809629022

Found out why. We need to set the Skip install for all the static libraries.

Accepted Answer

Found out why. We need to set the Skip install for all the static libraries.

Generic Xcode Archive issue
 
 
Q