简体   繁体   English

无法通过付费 Apple 开发者帐户获取 Apple Provisioning

[英]Can't Obtain Apple Provisioning through Paid Apple Developer Account

Attempt on Windows PC在 Windows PC 上尝试

I am using Xamarin and want to log into my Apple developer account on PC Visual Studio to test app on iPhone.我正在使用 Xamarin 并想在 PC Visual Studio 上登录我的 Apple 开发人员帐户以在 iPhone 上测试应用程序。 Apple developer account is registered into its annual membership. Apple 开发者帐户已注册为其年度会员。 However, the provisioning process is horribly challenging:但是,配置过程非常具有挑战性:

As you can see from the picture below.如下图所示。 The automatic provisioning failed.自动配置失败。 When I view the details of my account, none of the provisioning profile is loaded --> can't do manual provision.当我查看我的帐户的详细信息时,没有加载任何配置文件--> 无法进行手动配置。 The Role was originally "Xcode_free_user" and I changed the json file so now looks like "Agent" but no help.角色最初是“Xcode_free_user”,我更改了 json 文件,所以现在看起来像“代理”但没有帮助。

The log reports the following: the core message is "Xamarin.MacDev.AppleSigning.AppleServerException: This request is forbidden for security reasons: Authentication Error."日志报告如下:核心消息是“Xamarin.MacDev.AppleSigning.AppleServerException:出于安全原因禁止此请求:身份验证错误。”

DateTime=2022-06-27T00:44:07.0554913Z: 06/27/2022 00:44:07Z Xamarin.Messaging.Client.AgentConsoleRunner{Xamarin.Messaging.IDB.Local.IDBLocalAgent} Information: 0 : XMA-Initialized-3d502c86: 06/27/2022 00:44:07Z DateTime=2022-06-27T00:44:07.0584849Z: 06/27/2022 00:44:07Z Xamarin.Messaging.IDB.Local.GetMobileDeviceConfigurationMessageHandler Information: 0 : Apple Support - iTunes installed: 'False', Installation type: 'None': 06/27/2022 00:44:07Z DateTime=2022-06-27T00:44:07.1043626Z: 06/27/2022 00:44:07Z Xamarin.Messaging.Client.MessagingClient Error: 0 : An error occurred on client IDBLocal while executing a reply for topic xvs/idb/check-provisioning-status Xamarin.MacDev.AppleSigning.AppleServerException: This request is forbidden for security reasons: Authentication Error. DateTime=2022-06-27T00:44:07.0554913Z: 06/27/2022 00:44:07Z Xamarin.Messaging.Client.AgentConsoleRunner{Xamarin.Messaging.IDB.Local.IDBLocalAgent} 信息:0:XMA-Initialized-3d502c86 : 06/27/2022 00:44:07Z DateTime=2022-06-27T00:44:07.0584849Z: 06/27/2022 00:44:07Z Xamarin.Messaging.IDB.Local.GetMobileDeviceConfigurationMessageHandler 信息:0:Apple 支持 - iTunes 已安装:“假”,安装类型:“无”:06/27/2022 00:44:07Z DateTime=2022-06-27T00:44:07.1043626Z: 06/27/2022 00:44:07Z Xamarin.Messaging .Client.MessagingClient 错误:0:在执行主题 xvs/idb/check-provisioning-status Xamarin.MacDev.AppleSigning.AppleServerException 的回复时,客户端 IDBLocal 发生错误:出于安全原因,此请求被禁止:身份验证错误。 Xcode 7.3 or later is required to continue developing with your Apple ID.需要 Xcode 7.3 或更高版本才能继续使用您的 Apple ID 进行开发。 at Xamarin.MacDev.AppleSigning.AppleDeveloperPortal.HandleServerError(JObject serverJson) in /Users/builder/azdo/_work/1/s/External/maciostools/Xamarin.MacDev.AppleSigning/AppleDeveloperPortal/AppleDeveloperPortal.cs:line 1212在 Xamarin.MacDev.AppleSigning.AppleDeveloperPortal.HandleServerError(JObject serverJson) 在 /Users/builder/azdo/_work/1/s/External/maciostools/Xamarin.MacDev.AppleSigning/AppleDeveloperPortal/AppleDeveloperPortal.cs:line 1212

在此处输入图像描述


Attempt on Mac在 Mac 上尝试

I decided to change approach by loading my Xamarin code to Visual Studio on Mac instead, but the Apple developer account login page for Visual Studio on Mac doesn't even have the button for selecting the phone number for 2-factor authentication...我决定通过将我的 Xamarin 代码加载到 Mac 上的 Visual Studio 来改变方法,但是 Mac 上 Visual Studio 的 Apple 开发人员帐户登录页面甚至没有用于选择电话号码进行 2 因素身份验证的按钮...... 在此处输入图像描述

Any amount of help would be appreciated.任何数量的帮助将不胜感激。

Yes, this stuff is hard.是的,这东西很难。 Everytime I have to deal with it is a struggle.每次我必须处理它都是一场斗争。

This is how I made it work on my machine.这就是我让它在我的机器上工作的方式。 There might be easier ways, so I'll be watching this question with interest.可能有更简单的方法,所以我会感兴趣地关注这个问题。

I recommend you first make Xcode work.我建议你首先让 Xcode 工作。 You need to have Xcode as well as Visual Studio.您需要拥有 Xcode 和 Visual Studio。

Launch Xcode then choose Xcode / Preferences, then choose Accounts.启动 Xcode,然后选择 Xcode / Preferences,然后选择 Accounts。 Make that page happy.让那个页面快乐。 That's probably going to involve downloading a code signing or developer certificate (for you), and a provisioning profile (for your app) from developer.apple.com and importing it into Keychain.这可能涉及从 developer.apple.com 下载代码签名或开发人员证书(为您)和配置文件(为您的应用程序)并将其导入 Keychain。

Then close Xcode and open it again and check the accounts page.然后关闭 Xcode 并再次打开它并检查帐户页面。

Once Xcode is happy, go to Visual Studio on the Mac.一旦 Xcode 满意,请转到 Mac 上的 Visual Studio。

Importantly, on my Mac, the Apple IDs list in Visual Studio is empty.重要的是,在我的 Mac 上, Visual Studio中的 Apple ID 列表是空的。 This install runs my app on an iPhone attached to the Mac (I just had to fire it up again to validate that).此安装在连接到 Mac 的 iPhone 上运行我的应用程序(我只需要再次启动它即可验证)。 We don't build the app for release on this machine, we use an Azure Devops Pipeline for that, for reasons that made sense at the time.我们不会在这台机器上构建应用程序以发布,我们为此使用 Azure Devops Pipeline,原因在当时是有意义的。 But it sounds like you're not looking to build your release app at this stage.但听起来您在这个阶段不打算构建您的发布应用程序。

But you do need to tell Visual Studio to use your provisioning profile:但是您确实需要告诉 Visual Studio 使用您的配置文件:

Right click on your iOS project, Options / iOS Bundle Signing (under Build).右键单击您的 iOS 项目,Options / iOS Bundle Signing(在 Build 下)。 Choose a Signing Identity.选择一个签名身份。 Ours has "Automatic" for provisioning profile.我们的配置文件具有“自动”功能。

That was enough to make it work, for us.对我们来说,这足以让它发挥作用。

Note that because it's in the .csproj file, that gets checked into your source code repo (just the name of the signing identity, not the actual identity itself).请注意,因为它在.csproj文件中,所以会检查到您的源代码存储库中(只是签名身份的名称,而不是实际身份本身)。 So if there's more than just you working on the app, everyone has to have the same provisioning profile on their machine.因此,如果不仅仅是您在应用程序上工作,那么每个人都必须在他们的机器上拥有相同的配置文件。 If you want to do that, then you need to export the private key from Keychain Access for the provisioning file, then copy that across to the other machine and install it.如果你想这样做,那么你需要从 Keychain Access 导出配置文件的私钥,然后将其复制到另一台机器并安装它。 Make sure you zap it securely from any media you put it on.确保从放置它的任何媒体上安全地删除它。

I have a note in my wiki from 09 March 2022 saying "Automatic Provisioning doesn't work" but even I'd take that with a grain of salt, and I wrote it (plus there's a new version of Visual Studio for the Mac that's been released since then).从 2022 年 3 月 9 日起,我的 wiki 中有一条注释说“自动配置不起作用”,但即使我对此持保留态度,我也写了它(另外还有一个新版本的适用于 Mac 的 Visual Studio从那时起被释放)。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Apple Developer帐户和配置文件 - Apple Developer account and provisioning profile 是否可以在不支付Apple开发人员帐户的情况下将其添加为Enterprise Apple开发人员团队的成员? - Can I be added as a team member to Enterprise Apple developer team without having paid Apple developer account? 无法使用免费的Apple开发人员帐户下载配置文件 - Can not download provisioning profile with a free apple developer account 在 React Native 中实现 Login with Apple 是否需要付费的苹果开发者帐户? - Is paid apple developer account needed for implementing Login with Apple in React Native? Apple Developer帐户上缺少配置文件 - Provisioning Profiles missing on Apple Developer account 开发者和帐户持有人都需要付费的 Apple Developer 帐户吗? - Do both the developer and account holder need paid Apple Developer accounts? 如何在没有付费Apple开发人员帐户的情况下通过终端在真实设备中运行iOS应用程序? - How to run iOS application in real device through terminal without a paid apple developer account? “您的 Apple ID 未启用 iTunes Connect。” 对于新的付费开发者帐户 - “Your Apple ID isn't enabled for iTunes Connect.” for new paid developer account 在Xcode中,如何在没有付费的Apple Developer帐户的情况下注册设备以对其进行测试? - In Xcode, how can I register a device to test on it, without having a paid Apple Developer account? 我是否需要付费的苹果开发者帐户才能将 Firebase 连接到 Xcode? - Do I need a paid apple developer account to connect Firebase to Xcode?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM