Xamarin ios模拟器安装失败 [英] Xamarin ios simulator failed to install
问题描述
当我尝试在ios上运行应用程序时,出现此错误.我是Windows用户,谁能帮助我
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
请检查以下错误
无法安装
//users/library/apple/cachee/Xamarin/mtbs/builds/project.ios/28dsdkjw323wm323dsddsdn232k23/bin/iphonesimulator/debug/project.ios.app 到DO3c105/无法优化该模拟器
//users/library/apple/cachee/Xamarin/mtbs/builds/project.ios/28dsdkjw323wm323dsddsdn232k23/bin/iphonesimulator/debug/project.ios.app to DO3c105/Failed to lanuch this simulator
推荐答案
一种快速的解决方案是; (这假设您有一个项目,如果您有一个以上的项目,则在进行批量删除时应格外小心,最有可能的是下面的说法有点过头)
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)
-
确保在Mac上可以看到隐藏文件夹和库文件夹.如果没有,请在google中搜索.
Make sure you can see hidden folders and library folders on mac. If not search google for it.
在您的Mac中,转到文件夹"/Users/USER_NAME/Library/Caches/Xamarin"
Inside your mac, go to folder" /Users/USER_NAME/Library/Caches/Xamarin"
您将看到一堆文件夹,例如XMA,mtbs,模拟器
You will see bunch of folders like XMA, mtbs, Simulator
全部删除.这样会删除所有模拟器应用程序,并进行缓存,以便系统重新创建它们.
Delete all of them. This removes all your simulator apps, caches so system would recreate them.
(可选)在macOS上清除Simulator内容.在模拟器菜单上,依次转到设备>擦除所有内容和设置...
(Optional) Clean Simulator content on macos. On simulator menu go to Device > Erase All Content and Settings...
从Windows清洁/重建解决方案.您应该看到XMA文件夹已重新压缩.
Clean / Rebuild solution from Windows. You should see XMA folder recrated.
在选定模拟器上的Windows上运行项目,这将重新创建其他文件夹并在模拟器中启动您的应用.
Run project on Windows on the selected simulator, this should re-create other folders and launch your app in simulator.
这篇关于Xamarin ios模拟器安装失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!