Regarding the issue when validate the simple macOS app, the errors have gone if I perform Custom Validate and manually select the AppStore profile.
I stop using the post script to copy my embedded components into the app's Contents and use Copy Files phase to put those components in the appropriate Destination folder instead, and I can validate and distribute my app successfully. However after uploading to AppStore Connect by Xcode, I receive an email from Apple with the error "The executable 'myApp.app/Contents/SharedSupport/BaseResources.bundle' must be signed with the certificate that is contained in the provisioning profile.".
I have a loadable bundle (BaseResources.bundle) which contains some resources such as data files and localizable strings, which are used in my main app, and it does not contain any executable codes so I have removed the CFBundleExecutable key in its Info.plist to avoid an error when validating. I set the same bundle identifier as my main app for my BaseResources bundle target and put it in 'Shared Support' destination in Copy Files phase of my main app's target. When turn on 'Automatically manage signing' I can see that Xcode sets 'Development' for Signing Certificate rather than 'Apple Development'. Is it why Apple reports such code signing error? But if I try to manually set 'Apple Development' for Signing Certificate, I see the same error report from Apple after distributing.
I'm not sure how to correctly configure for my non-executable loadable bundle so that App Store Connect can sign it correctly. Should I change its bundle identifier not to be the same with my main app or should I put in different folder than "Shared Support" etc...?
Please advise, thanks.
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags: