Xamarin VS2019 无法使用配对 mac 测试 iOS 应用

Xamarin VS2019 cannot test iOS app using paired mac

我在 windows 电脑上的 VS2019 中有一个 xamarin 项目,我正在尝试在配对的 mac.

上进行测试

当我尝试在模拟器中开始测试应用程序时,我收到以下消息:


Xamarin 模拟器

Failed to install //Users/administrator/Library/Caches/Xamarin/mtbs/buildsxxx.Touch/c186893d4554f91f3322b4d0409a1518/bin/iPhoneSimulator/Debug/xxxTouch.app to D18C5658-ECBB-4492-A7B9-14710340A89F. The app directory '/Users/administrator/Library/Caches/Xamarin/mtbs/builds/xxx.Touch/c186893d4554f91f3322b4d0409a1518/bin/iPhoneSimulator/Debug/xxxTouch.app' does not exist.

这是什么意思?这是否意味着 mac 上没有构建文件? iPhone 模拟器中是否缺少文件夹?

有时我也会遇到以下错误:

Could not find any available provisioning profiles for ApplicationName on iOS.

因为我只想在虚拟设备上测试它,所以真的有必要进行此配置吗? 我是 运行 使用调试配置文件和 iPhone 模拟器

的应用程序

感谢您的帮助!

感谢您的建议!最后,我能够通过使用 IOS 捆绑签名项目属性选项卡中的自动配置使其正常工作。

我了解到,如果没有 Apple Developer Program 帐户,您将无法使用此选项。 我没有开发者计划帐户,但它似乎仍然有效。