Xcode 13.4 unable to export correct .pkg

Bonjour MacBook Pro 14" 12.3 - Xcode 13.4

Project - Target wxBasic : the most simple possible - just created with Xcode :

Xcode 13.4 > Product > Archive > Distribute App > App Store Connect > Upload > Export

~/wxBasic 2022-06-11 10-24-16 >> ll total 2272 drwxr-xr-x   6 robert  staff      192 11 jui 10:24 ./ drwxr-x---+ 49 robert  staff     1568 11 jui 10:33 ../ -rw-r--r--   1 robert  staff     1587 11 jui 10:24 DistributionSummary.plist -rw-r--r--   1 robert  staff      472 11 jui 10:24 ExportOptions.plist -rw-r--r--   1 robert  staff   114501 11 jui 10:23 Packaging.log -rw-r--r--@  1 robert  staff  1037410 11 jui 10:23 wxBasic.pkg Seems correct.

Standard unpack wxBasic.pkg : OK

When double-click on resulting wxBasic.app in /Applications I get attached.

Bug in Xcode - Error in Xcode config - other ?

Help please;

Replies

The fact that you mentioned an installer package (.pkg) suggests that you’re building for the Mac App Store. If so, the app within your package is distribution signed and, as such, it’s not expected to run. See Don’t Run App Store Distribution-Signed Code for the details.

If, in the Xcode organiser, you click Distribute App and then select Development, does the result app run?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"