How can i include Mac M1 Device into the profile ?

I have an application designed for iPad, when i try to run it on Mac with M1 chip using the Xcode target "My Mac (Designed for iPad)", i get the error "Provisioning profile 'xx' doesn't include the currently selected device 'MacBook Air' (identifier xx)".
The device is already registered and the profile regenerated

Replies

hi
did u get any solution?
I am using Mac mini With M! processor ad getting the same error.
Please translate it into English
以下是我做的尝试:
1、访达 -> 应用程序 -> 找到Xcode -> 右键点击Xcode -> 显示简介 -> 取消勾选“使用Rosetta打开” -> 重启Xcode
如果依旧出现 Provisioning profile 'xx' doesn't include the currently selected device 'MacBook Air' (identifier xx),
则进入目录 ~/Library/MobileDevice/Provisioning Profiles 中,清除所有Provisioning Profiles文件,并重新下载,再重新执行步骤1。
别忘了在打包app前重新勾选“使用Rosetta打开”。
希望能对您有所帮助。


  • it solved! Thx a lot!!

Add a Comment
It's solved

Just include a new device into the account with the Provisioning UDID, you can find it inside the device Hardware Overview:

Click: Apple icon -> About this mac -> System Report -> Hardware -> Hardware Overview
@AlejandroEspinoza
In addition to your answer and to make things clear:

Yes, you have to add the device UDID instead of its UUID.
But you have to select "macos" as the platform and enable "Include Mac Devices" in the provisioning profile. This was kind of confusing because it's an iOS provisioning profile, but the device must be "macos"!

  1. close XCode
  2. show XCode's description with right mouse
  3. disable Rosetta2
  4. reopen XCode, auto fix sign
  5. close XCode
  6. enable Rosetta2
  7. reopen XCode & rebuild project
  • This answer helped. I can run for M1 Mac as iPad with Rosetta OFF. The rest of my workflow is with Rosetta ON.

  • Somewhere, somehow, this setting changed, or its ability to run changed. Whatever the case may be, I was working on an app a few months ago, would run it on "My Mac" perfectly fine the whole time when developing. Came back to work on the app, spent many hours dealing with provisioning, adding my device, recreating certs, profiles, blah blah blah with no success. Come to find out a simple "turn off and turn on" method is the solution after a good 3 hours. I could be sick right now.

  • This actually worked. I had one device registered with hardware UDID but with Rosetta2 off, it registered and additional device w/a different ID and now things are working.

Add a Comment

For me I needed to restart Xcode, clean the build folder, make sure the "My Mac (Designed for iPad)" is the selected device, then go to the target's settings screen > Signing & Capabilities, where a button was now visible to "Register Device".