iOS模拟器无法启动

3
我正在尝试运行Xamarin.Forms的示例例子,我已经创建了这个示例应用程序,并在项目中添加了所需的软件包。但由于某些原因,我遇到了以下错误:

Failed to launch the simulator: Could not load the framework 'libswiftCore.dylib' (path: /Applications/Xcode8beta.app/Contents/Frameworks/libswiftCore.dylib): not found. error MT1008: Failed to launch the simulator: Could not load the framework 'libswiftCore.dylib' (path: /Applications/Xcode8beta.app/Contents/Frameworks/libswiftCore.dylib): not found.

我在我的Mac上使用了XCode 8 beta和Xamarin Studio 6.1.1。

我已正确设置了SDK路径的Xamarin首选项,并且显示该SDK可用于已提及的路径。每次我尝试运行该应用程序时,它都能成功编译,但就在模拟器即将启动之前,它会显示以上消息。enter image description here

我该如何解决这个问题?

2
升级至至少Xcode 8.0(非Beta版本)和Xamarin Cycle 8,这支持iOS 10和Xcode 8的最终Apple发布。或者升级至Xcode 8.1和最新的Xamarin Cycle 8 Service Release 0(Xamarin.iOS 10.2.0.4)(请参见:https://releases.xamarin.com/stable-release-cycle-8-service-release-0-w-xcode8-1-support/) - SushiHangover
2个回答

7
你需要更新Xamarin Studio(和/或Visual Studio)。这里是修复此问题的版本。这里是关于此问题的帖子,其中包含与您完全匹配的相应错误。
简而言之,Xcode 8.1更改了库的位置,因此导致Xamarin出错。 Xamarin发布了一个热修复程序到稳定频道来解决这个问题。

谢谢。它起作用了。我能够启动iOS模拟器。但是项目的Android部分在编译过程中仍然会出现错误。我刚刚创建了一个简单的项目,并升级了我的Android Studio以反映最新的更改。 - LearneriOS

0

尝试更新到稳定版本的Xcode。

Xamarin.iOS 10.0发布说明中:

  • 最新功能和API需要Xcode 8.0 GM和捆绑的iOS、tvOS和watchOS SDK
  • Apple Xcode 8.0需要运行OSX 10.11.5(El Capitan)或更新版本的Mac

支持Xcode 8.1最终版本的构建刚刚被发布, 所以这也是一个选择。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接