iOS simulator not starting up

2019-02-25 07:57发布

问题:

I am trying to run the sample example for Xamarin.Forms. I have made the sample application. I have added the required packages in the project.But for some reason I am getting the the error

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.

I am using XCode 8 beta on my Mac Xamarin studio 6.1.1

I have set the paths for the SDK correctly in the Xamarin preferences and it is saying that the SDK is available at the path that has been mentioned. Whenever I try to run the application it compiles well but just before the simulator is expected to start it shows the above message.

How should I resolve this issue ?

回答1:

You need to update Xamarin Studio (and/or Visual Studio). This is the release that fixes it. Here is the post about the issue with the corresponding bugs that match your exactly.

Summary, Xcode 8.1 changed the location of the library so it caused Xamarin to error. Xamarin released a hotfix to the stable channel that resolves it.



回答2:

Try updating to a stable version of Xcode.

From the Xamarin.iOS 10.0 release notes:

  • The latest features and API requires Xcode 8.0 GM and the bundled iOS, tvOS and watchOS SDKs
  • Apple Xcode 8.0 requires a Mac running OSX 10.11.5 (El Capitan) or newer

Builds supporting the final release of Xcode 8.1 have just been released, so that is also an option.