I prepare a private project in Xcode, use Archive, Distribute/Copy, save the application somewhere. Copy it to my other computer, run.
Works perfectly with normal MacOS applications.
With Catalyst ones though it does not; whatever I try, all I get is “The application XXX cannot be opened”.
What do I do wrong and how to fix the problem? Thanks!
the profile linked to my personal team BHHT72562H is available on the machine where the app has been developed
Kinda.
The profile is actually embedded within your app, but a development profile contains a list of machines that it applies to and I suspect that your profile lists your development machine but not the other machine.
You can confirm this using the instructions in TN3125 Inside Code Signing: Provisioning Profiles.
The easiest way out of this is to not use a provisioning profile. However, your app’s entitlements include com.apple.developer.homekit, and I presume that’s required. In that case you need a profile because that entitlement is restricted, that is, its use must be authorised by a profile.
If you were a member of a paid team there’s a standard way to fix this:
- Use the Developer website to add the other Mac’s provisioning UDID to your team.
- In Xcode, choose Product > Archive.
- Then in the Xcode organiser, click Distribute App and follow the Debugging workflow.
Xcode will notice the new UDID in your team and regenerate the profile to include it.
However, I don’t think this will work for you. AFAICT you’re not a member of a paid team (in Xcode parlance you’re using a Personal Team), and that means you don’t have access to Certificate, Identifiers, and Profiles section of the Developer website.
Are you sure you need HomeKit? Without that entitlement this problem should just go away.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"