Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/xamarin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xamarin:从Visual Studio将iOS发布到应用商店不工作_Xamarin_Ipa_Distribute - Fatal编程技术网

Xamarin:从Visual Studio将iOS发布到应用商店不工作

Xamarin:从Visual Studio将iOS发布到应用商店不工作,xamarin,ipa,distribute,Xamarin,Ipa,Distribute,我正在积极使用Visual Studio 16.6 windows/8.6.1 macOS以Xamarin的形式构建和测试iOS/Android应用程序。macOS正在运行Xcode 11 我无法直接从“签名和分发”推送到AppStoreConnect 一切都在一步一步地正常工作:iDevice的内置版本,接受签名和分发配置文件,导出到IPA文件,并通过Xcode->Organizer上传。但我只想在VisualStudio中实现这一点;在我的PC或mac上 上载到AppStoreConnect

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

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

一切都在一步一步地正常工作:iDevice的内置版本,接受签名和分发配置文件,导出到IPA文件,并通过Xcode->Organizer上传。但我只想在VisualStudio中实现这一点;在我的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.
Publication failure: we are unable to create an authentification session.
上载到AppStoreConnect时,Visual Studio/macOS上出现以下错误:

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.
Publication failure: we are unable to create an authentification session.

请注意,Visual Studio/macOS正在询问creds(我使用的是Developer帐户),而Visual Studio/windows没有(我肯定以前注册过,但我不记得了)。

今天发布的修补程序(16.6.1)似乎已经解决了此问题,根据此错误报告:

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