简体   繁体   中英

Xamarin ios simulator failed to install

When I try to run the application on ios I'm getting this error is occur. I'm windows user can anyone please help me

Please check following error

Failed to install

//users/library/apple/cachee/Xamarin/mtbs/builds/project.ios/28dsdkjw323wm323dsddsdn232k23/bin/iphonesimulator/debug/project.ios.app to DO3c105/Failed to lanuch this simulator

I would give you some suggestions:

1.Delete your app in the simulator, reset the simulator, delete the obj and bin folder, clean and rebuild the project again.

2.Restart your VS and try to update your Visual-Studio to the latest version.

3.Try the solution listed in the document :

MT1008: Failed to launch the simulator

This error is reported if mtouch failed to launch the simulator. This can happen sometimes because there is already a stale or dead simulator process running.

The following command issued on the Unix command line can be used to kill stuck simulator processes:

$ launchctl list|grep UIKitApplication|awk '{print $3}'|xargs launchctl remove

One quick solution is; (This assumes you have one project, if you have more then one you should be more careful with mass deleting, most likely below is a bit overkill)

  1. Make sure you can see hidden folders and library folders on mac. If not search google for it.

  2. Inside your mac, go to folder" /Users/USER_NAME/Library/Caches/Xamarin"

  3. You will see bunch of folders like XMA, mtbs, Simulator

  4. Delete all of them. This removes all your simulator apps, caches so system would recreate them.

  5. (Optional) Clean Simulator content on macos. On simulator menu go to Device > Erase All Content and Settings...

  6. Clean / Rebuild solution from Windows. You should see XMA folder recrated.

  7. Run project on Windows on the selected simulator, this should re-create other folders and launch your app in simulator.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM