可以通过付费的Apple开发人员帐户获得Apple供应

发布于 2025-02-10 19:21:00 字数 2048 浏览 2 评论 0 原文

尝试在Windows PC上尝试

我正在使用Xamarin,并想在PC Visual Studio上登录我的Apple Developer帐户,以在iPhone上测试应用程序。 Apple Developer帐户已注册为其年度会员资格。但是,供应过程非常具有挑战性:

从下面的图片中可以看到。自动配置失败。当我查看帐户的详细信息时,没有加载供应资料 - >无法做手动提供。该角色最初是“ xcode_free_user”,我更改了JSON文件,因此现在看起来像“代理”,但没有帮助。

日志报告以下内容:核心消息是“ xamarin.macdev.applesigning.appleserverexception:出于安全原因:身份验证错误。”

dateTime = 2022-06-27T00:44:07.0554913Z:06/27/2022 00:44:07Z xamarin.messaging.client.agentconsolererrunner {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.getMobiledeviceConfigurationMessageHandlerMessageHandlerMessageHandlerMessageHandlerMessageHandlerMessageHandlerMessageHandler 信息:0:Apple支持 - iTunes已安装:'false', 安装类型:'无':06/27/2022 00:44:07Z dateTime = 2022-06-27T00:44:07.1043626Z:06/27/2022 00:44:07Z xamarin.messaging.messaging.client.client.messaging.client.messagingclient错误:0:发生错误 在执行主题回复时,在客户端iDblocal上 XVS/IDB/CHECKPROVISIONING-STATUS xamarin.macdev.applesigning.appleserverexception:此请求是 由于安全原因而禁止的:身份验证错误。 XCode 7.3或 以后需要继续使用Apple ID开发。在 Xamarin.macdev.AppleSigning.AppleDeveloperPortal.HandleServerError(jobject serverjson)in /users/builder/azdo/_work/1/s/external/maciostools/xamarin.macdev.applesigning/appledeveloperportal/appledeveloderportal.cs.cs:line 1212


尝试在Mac上尝试

通过将我的Xamarin代码加载到Mac上的Visual Studio,而是在Mac上加载我的Xamarin代码来更改方法t甚至有用于选择2因子身份验证的电话号码...

任何帮助的帮助将不胜感激。

Attempt on Windows PC

I am using Xamarin and want to log into my Apple developer account on PC Visual Studio to test app on iPhone. Apple developer account is registered into its annual membership. 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.

The log reports the following: the core message is "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}
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. Xcode 7.3 or
later is required to continue developing with your 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

enter image description here


Attempt on 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...
enter image description here

Any amount of help would be appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

橘亓 2025-02-17 19:21:00

是的,这很难。每次我必须处理这是一场斗争。

这就是我使它在机器上工作的方式。可能会有一些更简单的方法,所以我会感兴趣地观看这个问题。

我建议您首先使Xcode起作用。您需要拥有Xcode和Visual Studio。

启动XCode然后选择Xcode / periverences,然后选择“帐户”。让该页面快乐。这可能涉及下载代码签名或开发人员证书(适用于您),以及从developer.apple.com上下载供应配置文件(适用于您的应用程序)并将其导入到钥匙扣中。

然后关闭XCode并再次打开,然后检查帐户页面。

一旦Xcode感到高兴,请前往Mac上的Visual Studio。

重要的是,在我的Mac上,Apple IDS列表在Visual Studio 中是空的。此安装将我的应用程序运行在Mac上的iPhone上(我只需要再次启动它以验证它)。由于当时有意义的原因,我们没有在这台计算机上构建该应用程序以在这台计算机上释放。但这听起来好像您不想在此阶段构建发布应用程序。

但是您 do < / em>需要告诉Visual Studio使用您的配置资料:

右键单击您的iOS项目,选项 / iOS捆绑签名(在build build)。选择签名身份。我们的“自动”用于配置配置文件。

这足以使它起作用。

请注意,由于它在 .csproj 文件中,因此将其检查到您的源代码repo中(只是签名身份的名称,而不是实际的身份本身)。因此,如果您不仅在该应用程序上工作,每个人都必须在其机器上具有相同的配置配置文件。如果您想这样做,那么您需要从供应文件的钥匙链访问中导出私有密钥,然后将其复制到另一台计算机并安装。确保您可以从任何媒体上牢固地将其删除。

我在2022年3月9日的Wiki中有一张笔记,说“自动供应不起作用”,但即使我用一粒盐来服用,我也写了这一点(加上Mac的新版本的Visual Studio版本从那以后发布)。

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. You need to have Xcode as well as Visual Studio.

Launch Xcode then choose Xcode / Preferences, then choose 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.

Then close Xcode and open it again and check the accounts page.

Once Xcode is happy, go to Visual Studio on the Mac.

Importantly, on my Mac, the Apple IDs list in Visual Studio is empty. This install runs my app on an iPhone attached to the Mac (I just had to fire it up again to validate that). 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. 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:

Right click on your iOS project, Options / iOS Bundle Signing (under 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). 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. 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).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文