【问题标题】:Xamarin: publish iOS to App Store from Visual Studio no workingXamarin:从 Visual Studio 将 iOS 发布到 App Store 不起作用
【发布时间】:2020-09-15 14:04:35
【问题描述】:

我正在积极使用 Visual Studio 16.6 windows / 8.6.1 macOS 在 Xamarin Forms 中构建和测试 iOS / Android 应用程序。 macOS 正在运行 Xcode 11。

我无法直接从“签名和分发”推送到 AppStoreConnect。

一切都在逐步进行:为 iDevice 构建版本,接受签名和分发配置文件,导出到 IPA 文件,并通过 Xcode->Organizer 上传。但我想简单地从 Visual Studio 中做到这一点;在我的 PC 或 Mac 上。

上传到 AppStoreConnect 时,我在 Visual Studio / windows 上出现以下错误:

Error: unable to create IPA file for distribution of archive myApp
MessagingRemoteException: error happened on client Build160001055 during execution of an answer for category xvs/Build/16.6.0.1055/execute-task/myApp.iOS/c1cf1c8002fCopy
TypeInitializationException: The type initializer for 'Microsoft.Build.Tasks.Copy' threw an exception.
PlatformNotSupportedException: Operation is not supported on this platform.

上传到 AppStoreConnect 时,我在 Visual Studio / macOS 上出现以下错误:

Publication failure: we are unable to create an authentification session.

注意 Visual Studio / macOS 要求信用(我使用的是开发者帐户),而 Visual Studio / windows 不是(我肯定之前注册过,但我不记得了)。

【问题讨论】:

  • 请不要将错误发布为图片
  • 确保VS和Xcode的版本是最新的。另外,请检查您当前是否登录过 Apple Developer 帐户。
  • @LucasZhang-MSFT thx,它们是最新的。 Windows 错误很奇怪,而 macOS 错误似乎与凭据有关 - 但显示信息的窗口太小,我无法阅读,也许我错过了重点。如果我能在这个窗口上找到更多细节,我会尝试在文档中查看,也许我至少可以让这个功能在 macOS 中工作。
  • 我在尝试在新项目中首次构建 .ipa 时遇到了同样的问题。这一定是一个新问题,因为我找不到任何其他引用此确切消息的帖子。
  • 与 Visual Studio / mac 中的第二条消息有关,这是因为,对于 VS mac(而不是 Xcode!),我需要一个链接到此应用程序的“应用程序密码”,您可以在appleid.apple.com/account/manage/安全/应用程序密码中生成。与最初的麻烦无关。修复后,Visual Studio PC 也需要它。

标签: xamarin ipa distribute


【解决方案1】:

此问题似乎已在今天发布的修补程序 (16.6.1) 中得到解决,根据此错误报告:https://developercommunity.visualstudio.com/content/problem/961282/xamarinios-fails-to-build-with-messagingremoteexce.html

【讨论】:

    猜你喜欢
    • 2021-10-09
    • 1970-01-01
    • 2015-10-27
    • 1970-01-01
    • 2016-01-18
    • 2017-07-23
    • 2018-12-30
    • 1970-01-01
    • 2020-11-21
    相关资源
    最近更新 更多