xcode 找不到 iPhone 模拟器路径

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8738019/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 22:54:18  来源:igfitidea点击:

iPhone simulator path not found

iphonexcodemacos

提问by Gajendra K Chauhan

Currently I am working on video uploading app..my problem is that ,when I try to search simulator path in spotlight(I've also try this manually),I've got only iPhoneSimulator.platformfile but in this file there are no any folders or path like 5.0/Media/DCIMetc.

目前,我的工作在视频上传app..my问题是,当我试图寻找在聚光灯模拟路径(我也试试这个手动),我只拿到了iPhoneSimulator.platform文件,但这个文件不存在任何文件夹或路径,如5.0/Media/DCIM等。

If I Reset Contents and Settingsfrom iOS Simulator menu. I found above path in my trashfolder. I think it should not be hidden at all.

如果我从 iOS 模拟器菜单重置内容和设置。我在我的垃圾文件夹中找到了上面的路径。我认为它根本不应该被隐藏。

Any idea..?

任何的想法..?

XCODE 4.2

Xcode 4.2

THANKS.

谢谢。

回答by mAc

When You are working on Simulator, you Machine OS runs Behind it. :)

当你在模拟器上工作时,你的机器操作系统在它后面运行。:)

This is the Path where you can Find every thing Related to your Device Installation or apps Deployed by you on the Simulator :

这是您可以在模拟器上找到与您的设备安装或应用程序相关的所有内容的路径:

/Users/"Your Home NAme "/Library/Application Support/iPhone Simulator/Which version you use(4.3.2 "this is mine")/Applications   

Hope you find your way now.. if any problem Reply plz.. :)

希望你现在找到自己的路..如果有任何问题请回复plz..:)

回答by Gajendra K Chauhan

finally I solved it.If you can't access directory.try this

最后我解决了。如果你不能访问目录。试试这个

1)go to iPhone simulator

1)去iPhone模拟器

2)reset it

2)重置它

3)open trash

3)打开垃圾桶

4) you see 4.0 / 4.2 or 5.0(me).

4) 你看到 4.0 / 4.2 或 5.0(me)。

5)copy it to /Developer/Platforms/iPhoneSimulator.platform folder

5)复制到/Developer/Platforms/iPhoneSimulator.platform文件夹

6) reset simulator again

6)再次重置模拟器

7)open trash

7)打开垃圾桶

8) right click on 5.0/put back

8) 右键单击​​ 5.0/放回

9)that's it

9)就是这样

10)now u have fix....

10)现在你已经修复了......

-------------------------I've done.working perfect for me..Thanks

-------------------------I've done.working 对我来说很完美..谢谢

note : Generally this Problem found After upgrading mac osx 10.xx to 10.xx.

注意:通常在将 mac osx 10.xx 升级到 10.xx 后发现此问题。

回答by Mike K

you want to look in "/Users/yourusername/Library/Application Support/iPhone Simulator/". in there you'll find one or more directories corresponding to the version of iOS used. in your case you should have a "5.0" directory. in there you'll find a bunch of dirs. if you're storing data in your application's Documents directory, go to "Applications/your app's ID/Documents".

您想查看“/Users/yourusername/Library/Application Support/iPhone Simulator/”。在那里你会找到一个或多个与所使用的 iOS 版本相对应的目录。在您的情况下,您应该有一个“5.0”目录。在那里你会发现一堆目录。如果您将数据存储在应用程序的 Documents 目录中,请转到“应用程序/您的应用程序的 ID/文档”。