You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何解决VS2022通过API Connect证书添加个人Apple开发者账户的错误

无法添加Apple个人开发者账户问题

操作流程

  • 按官方指引操作:依次点击Tools > Options > Xamarin > Apple Accounts,点击Add按钮并选择Individual Account...
  • 需填写信息包括:Name、Issuer ID、Key ID、私钥路径,这些信息取自App Store Connect中Users and Access下的Keys标签页

错误现象

操作后弹出Error adding account错误,无内置解决指引

日志中的错误详情

查看C:\Users\<username>\AppData\Local\Xamarin\Logs\17.0\下的日志文件,得到以下错误信息:

Xamarin.Messaging.Client.MessagingClient Error: 0 : An error occurred on the receiver while executing a post for topic xvs/idb/add-developer-account and client vs22896admin
Xamarin.Messaging.Exceptions.MessagingRemoteException: An error occurred on client private2ceaa0bafb while executing a reply for topic xvs/idb/add-developer-account ---> Xamarin.Messaging.IDB.Contracts.AppleProvisioningException: Provide a properly configured and signed bearer token, and make sure that it has not expired. Learn more about Generating Tokens for API Requests https://developer.apple.com/go/?id=api-generating-tokens
   at Xamarin.Messaging.IDB.AppleProvisioningManager.<GetUpdatedAccountAsync>d__13.MoveNext() in D:\a\_work\1\s\src\Messaging\Xamarin.Messaging.IDB.Local\AppleProvisioningManager.cs:line 129
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.Messaging.IDB.AppleProvisioningManager.<AddDeveloperAccountAsync>d__10.MoveNext() in D:\a\_work\1\s\src\Messaging\Xamarin.Messaging.IDB.Local\AppleProvisioningManager.cs:line 53
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.Messaging.IDB.Local.AddDeveloperAccountHandler.<ExecuteAsync>d__4.MoveNext() in D:\a\_work\1\s\src\Messaging\Xamarin.Messaging.IDB.Local\Handlers\AddDeveloperAccountHandler.cs:line 37
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.Messaging.Client.RequestHandler`2.<HandleAsync>d__5.MoveNext() in D:\a\_work\1\s\src\Xamarin.Messaging.Client\Handlers\RequestHandler.cs:line 0
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.Messaging.Client.MessageHandlerManager.<>c__DisplayClass16_1`2.<RegisterHandlerAsync>b__2.MoveNext() in D:\a\_work\1\s\src\Xamarin.Messaging.Client\MessageHandlerManager.cs:line 0
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.Messaging.Client.MessagingClient.<ReplyAsync>d__32`2.MoveNext() in D:\a\_work\1\s\src\Xamarin.Messaging.Client\MessagingClient.cs:line 0
   --- End of inner exception stack trace ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Xamarin.Messaging.Client.ApplicationMessageExtensions.<>c__DisplayClass10_0`1.<OfResponse>b__1(MqttApplicationMessage m) in D:\a\_work\1\s\src\Xamarin.Messaging.Client\Extensions\ApplicationMessageExtensions.cs:line 194
   at System.Reactive.Linq.ObservableImpl.Select`2.Selector._.OnNext(TSource value)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Xamarin.Messaging.Client.MessagingClient.<PostAsync>d__21`2.MoveNext() in D:\a\_work\1\s\src\Xamarin.Messaging.Client\MessagingClient.cs:line 190: 09/02/2023 17:37:10Z
    DateTime=2023-09-02T17:37:10.6819570Z: 09/02/2023 17:37:10Z
Xamarin.Messaging.Ssh.MessagingClientPro Warning: 0 : An error occurred while executing the operation. The host connection is active and running so no retries will be attempted.: 09/02/2023 17:37:10Z
    DateTime=2023-09-02T17:37:10.6829658Z: 09/02/2023 17:37:10Z

已尝试的无效方案

  • 搜索各类公开解决方案均无效果
  • 参考Stack Overflow上的相关问题回答,无法解决问题,且因账号声望不足无法补充评论

内容的提问来源于stack exchange,提问作者Brett Whittaker

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.11 20:22:41