4
votes

I'm trying to create a Mac Catalyst version of my iPad app. I checked the checkbox, I selected the "My Mac" scheme, I ran... and then, code signing errors (link below)!

enter image description here

When I checked the checkbox, the Signing & Capabilties tab added a new macOS platform entry, and a bundle identifier: maccatalyst.com.mycompany.myapp. That maccatalyst.com bundle ID isn't dispalyed in my Certifiicates, Identifiers & Profiles section of the Apple developer site. When I try to add it manually, by adding an App ID, choosing Mac and specifying the explicit bundle ID, I get the following error: An App ID with Identifier 'maccatalyst.com.mycompany.myname' is not available. Please enter a different string.

As suggested here, I also tried to: 1. Go to Certificates, Identifiers & Profiles. 2. Select Profiles 2. Select iOS app that you are trying to catalyze from. 3. Enable "Mac". 4. Wait for hours.

How I have to proceed?

2
Hey, we are currently facing the exact same issue. Do you have made any progress on this? - gpichler
Unfortunately not yet. - Paolo Briganti
We ended up signing everything manually. This worked for us! - gpichler
I did not get success when I do everything manually. see below Apple docs link. developer.apple.com/documentation/uikit/mac_catalyst/… - Ankur Patel

2 Answers

2
votes

We ended up signing everything manually following these steps:

  1. Go to Certificates, Identifiers & Profiles.
  2. Select Identifiers
  3. Select iOS app that you are trying to catalyze from.
  4. Enable "Mac" and Save.
  5. Go to Devices
  6. Check if your Mac is added or add it
  7. Go to Profiles
  8. Create a "iOS App Development" provisioning profile using the previous App ID.
  9. Create a "macOS App Development" provisioning profile using the previous App ID
  10. Open XCode and select the target to catalyze
  11. Enable Mac in General Tab
  12. Go to Signin & Capabilities
  13. Uncheck "Automatically manage signing"
  14. Select iOS App Development Provisioning Profile under iOS platform
  15. Select macOS App Development Provisioning Profile under macOS platform
  16. Build and run

This worked for us!

1
votes

If you are using Older version of Xcode 11.3.x or earlier, Just update to Xcode 11.4 or later then just Uncheck and check again this Mac device support.

Uncheck and check this Mac device support

Then go to Signing & Capabilities section, You can see that bundle identifier: maccatalyst.com.mycompany.myapp change to Use iOS Bundle identifier option.

Use iOS Bundle identifier

After that you can create macOS App Development Provisioning Profile under macOS platform using same Bundle identifie as iOS.

NOTE: As of Xcode 11.4, new apps built with Mac Catalyst should use the same bundle ID as the iOS app to support universal purchase or use a manually-created unique bundle ID to be offered as a seperate product. It is highly recommended that you continue developing any in-progress apps built with Mac Catalyst using Xcode 11.4.

Check this link for more help:- https://help.apple.com/xcode/mac/current/#/dev07ed024a6