xcode 我可以将文件放在 iPad 模拟器上吗?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3339294/
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
Can I put files on the iPad simulator?
提问by mclark1129
I need to create an app that plays a video on the iPad. Is there a way that I can put an FLV (or any other files for that matter)on the iPad simulator so that I can test the app that will open the video file?
我需要创建一个在 iPad 上播放视频的应用程序。有没有办法可以在 iPad 模拟器上放置 FLV(或任何其他与此相关的文件),以便我可以测试将打开视频文件的应用程序?
Thanks,
谢谢,
Mike
麦克风
回答by Ben Zotto
Sure. Look under ~/Library/Application Support/iPhone Simulator
for the file system of the simulator. Look under Applications. One of the UUIDs will be your app, and you'll find its Documents folder, etc in there.
当然。查看~/Library/Application Support/iPhone Simulator
模拟器的文件系统。在应用程序下查看。UUID 之一将是您的应用程序,您会在其中找到它的 Documents 文件夹等。
(The poor man's way of doing this for testing is of course by just sticking it in your Xcode project and loading it from the bundle.)
(这个可怜的人进行测试的方法当然是将它粘贴到您的 Xcode 项目中并从包中加载它。)