是否需要将iPhone连接到Mac才能创建配置文件? [英] Do I have to connect an iPhone to my Mac in order to create a provisioning profile?

查看:86
本文介绍了是否需要将iPhone连接到Mac才能创建配置文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经注册了Apple Developer Program来发布我的第一个应用程序.我的应用程序的捆绑软件ID在developer.apple.com,appstoreconnect.apple.com和我的XCode项目中是相同的.但是,XCode仍在签名和功能"选项卡中给出错误:

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:

无法创建配置文件.

没有注册设备 在开发者网站上您的帐户中.插入并选择设备 让Xcode注册它.

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

另一个错误:

未找到"com.xxx.yyy"的配置文件

Xcode找不到任何iOS 与"com.xxx.yyy"匹配的App Development设置配置文件.

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

第一条错误消息使我认为创建配置文件需要与iPhone进行物理连接.

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

我以前从未将物理设备连接到Mac.我通过iOS模拟器进行了测试.我打算通过Testflight进行物理设备测试.

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.

我是否必须物理(通过USB电缆)将iPhone连接到Mac才能创建配置文件?如果没有,那可能是什么问题?

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?

是否需要在XCode中具有供应配置文件才能使用Testflight或将应用发布到App Store?

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

推荐答案

我是否必须(通过USB电缆)将iPhone物理连接到Mac才能创建配置文件?

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

是的,如果您想使用自动签名.自动配置配置文件将计算机,设备和应用程序结合在一起;表示允许此计算机在此设备上构建此应用.在Xcode看到设备之前,它无法创建配置文件.

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.

这篇关于是否需要将iPhone连接到Mac才能创建配置文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆