应用程序无法上传到设备

Application could not be uploaded to the device

以下是关于 Xamarin、studio 和 Mac 的详细信息: Visual Studio Mac 社区 2019 版本 8.6.8(构建 2) Xamarin.Mac6.18.0.23 .NET 核心开发工具包 SDK: /usr/local/share/dotnet/sdk/3.1.302/SDKs SDK 版本:3.1.302 MSBuild SDK:/Library/Frameworks/Mono.framework/Versions/6.10.0/lib/mono/msbuild/Current/bin/Sdks

.NET 核心运行时 运行时间:/usr/local/share/dotnet/dotnet 运行时版本: 3.1.6 2.1.20

Xamarin.Profiler 版本:1.6.15.68 位置:/Applications/Xamarin 探查器。app/Contents/MacOS/Xamarin 探查器

更新程序 版本:11 苹果开发者工具 Xcode12.0 (17189.4) 构建 12A8169g

Xamarin.iOS 版本:13.18.2.1(Visual Studio 社区) 操作系统 Mac OS X 10.15.6 Darwin 19.6.0 达尔文内核版本 19.6.0

问题: /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mlaunch -sdkroot "/Applications/Xcode-beta.app/Contents/Developer" --installdev "/Users/*******/Projects/testApp/testApp/bin/iPhone/Debug/device-builds/iphone11.6-13.5.1/testApp.app" --device ios "--devname=iPhone XS Max" --install-progress 错误 HE0004:无法加载框架 'IDEKit'(路径:/Applications/Xcode-beta.app/Contents/Frameworks/IDEKit.framework/IDEKit):dlopen(/Applications/Xcode-beta.app/Contents/Frameworks/IDEKit.framework/IDEKit, 1): 库未加载: @rpath/DVTAnalyticsKit.framework/Versions/A/DVTAnalyticsKit 参考自:/Applications/Xcode-beta.app/Contents/Frameworks/IDEKit.framework/Versions/A/IDEKit 原因:找不到图像

所有路径都正确并且文件存在。

这只是一个示例项目,无法在物理设备上部署。我可以通过 XCode 部署,但通过 Mac Visual Studio 部署失败。这里需要一些帮助。我要安装不同版本的 XCode 并尝试一下。

如果您使用的是 Xcode 12 beta,您需要来自 xcode12 branch. Quoting from the wiki 的 Xamarin.iOS 的更新版本,了解如何从上述分支获取构建:

If you go to our commits page you should be able to see a green checkmark (✔) or a red cross mark (✘) at the right side of the committer's handle. If you click the checkmark (it's usually best to use builds with green checkmarks, but in some cases there may be none, in which case you can likely use builds with red checkmarks as well) you should see a details link which will provide download links for both Xamarin.iOS and Xamarin.Mac packages for that specific commit. Once in a while a commit may not have associated builds (this can occur both for red and green builds) - just try a different commit.

确保下载“公证”版本的 pkgs。

卸载 Xcode 12 beta 并安装 Xcode 11.6(托管在 VM 中)。 它工作成功。 现在我可以从 Visual Studio 2019 运行 开始在 windows.

进行部署