Do I have to connect an iPhone to my Mac in order to create a provisioning profile?

六眼飞鱼酱① 提交于 2019-12-18 09:46:59

问题


I have enrolled to Apple Developer Program to release my first app. My app's bundle ID is the same at developer.apple.com, at appstoreconnect.apple.com and in my XCode project. However, XCode still gives the error in "Signing & Capabilities" tab:

Failed to create provisioning profile.

There are no devices registered in your account on the developer website. Plug in and select a device to have Xcode register it.

And another error:

No profiles for ‘com.xxx.yyy’ were found

Xcode couldn't find any iOS App Development provisioning profiles matching ‘com.xxx.yyy’.

First error message made me think that a physical connection to an iPhone is required to create a provisioning profile.

I have never connected a physical device to my Mac before. I made my tests by iOS simulator. I was planning to do my physical device testing via Testflight.

Do I have to physically (via a USB cable) connect an iPhone to my Mac in order to create a provisioning profile? If not, what might be wrong?

Is it required to have provisioning profile in XCode to be able to use Testflight or publish an app to App Store?


回答1:


Do I have to physically (via a USB cable) connect an iPhone to my Mac in order to create a provisioning profile?

Yes, if you want to use automatic signing. An automatic provisioning profile unites a computer and a device and an app; it says that this computer is allowed to build this app onto this device. Until Xcode sees the device, it can’t create the profile.

The alternative is to switch to manual signing. It’s more work but now you can generate the profiles yourself.



来源:https://stackoverflow.com/questions/58701172/do-i-have-to-connect-an-iphone-to-my-mac-in-order-to-create-a-provisioning-profi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!