在 Xcode 上创建配置文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/44592050/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Create provisioning profile on Xcode
提问by ispiro
I'm trying to debug an app (Xamarin.Forms) on my iPhone. I already have Visual Studio on my Windows PC, on which I'm writing the app, and Visual Studio and Xcode on my Mac. I registered the iPhone on my developer account too.
我正在尝试在我的 iPhone 上调试应用程序 (Xamarin.Forms)。我已经在我的 Windows PC 上安装了 Visual Studio,我正在其上编写应用程序,在我的 Mac 上安装了 Visual Studio 和 Xcode。我也在我的开发者账户上注册了 iPhone。
However, it seems like I also need a provisioning profile. But the walkthroughs I've seen have screen unlike the current Xcode. When I click on Preferences - accounts, I see my account, but there's nowhere to add a provisioning profile.
但是,我似乎还需要一个配置文件。但是我看到的演练与当前的 Xcode 不同。当我单击首选项 - 帐户时,我会看到我的帐户,但无处可添加配置文件。
(Does the iPhone need to be signed in with the same Apple ID as the one on the Mac, the one for which I have a developer account?)
(iPhone 是否需要使用与 Mac 上的 Apple ID 相同的 Apple ID 登录,我有开发者帐户的那个?)
How am I supposed to add that?
我该如何添加?
回答by KFactory
From Xcode 8.x, provisioning profiles are managed automaticallyby Xcode… So you don't see the full list. I presume you can only see a "Download All Profiles" button (under Preferences/Accounts menu). Click on it, then In Visual Studio iOS project's properties, your provisioning profile should appear in both VS Mac & Windows (if your Windows VS is connected to your MAC).
从 Xcode 8.x 开始,配置文件由 Xcode自动管理……因此您看不到完整列表。我想您只能看到“下载所有配置文件”按钮(在“首选项/帐户”菜单下)。单击它,然后在 Visual Studio iOS 项目的属性中,您的配置文件应同时出现在 VS Mac 和 Windows 中(如果您的 Windows VS 已连接到您的 MAC)。
Connect to your Mac from Windows as mentioned here: Connecting to your Mac-> doc screenshots may be old...
回答by Subramanian P
Open your project in Xcode and Go to Select Project file -> Select Target -> Select Generate tap
在 Xcode 中打开您的项目并转到 Select Project file -> Select Target -> Select Generate tap
Under Sigin
category -> Check the Automatic manage signing
在Sigin
类别下 -> 检查Automatic manage signing
It will list down the list of configured developer account.
Choose your account
Everything else done by Xcode on behalf of you.
Xcode will create a provisioning profile in your developer account
with the Bundle identifier, which you mentioned inIdentity
tapBundle identifier
它将列出已配置的开发者帐户列表。
选择您的帐户
Xcode 代表您完成的所有其他工作。
Xcode 将在您的开发者帐户中创建一个配置文件
,其中包含您在Identity
点击中提到的 Bundle 标识符Bundle identifier
Update
更新
In Xcode 11.*
在 Xcode 11.*
Automatic signing option is available in Project -> Select Target -> Signing & Capabilities
section.
Project -> Select Target -> Signing & Capabilities
部分中提供了自动签名选项。