Xcode 6 / iOS 8 Simulator数据和Bundle文件夹脚本 [英] Xcode 6 / iOS 8 Simulator Data and Bundle folder script

查看:85
本文介绍了Xcode 6 / iOS 8 Simulator数据和Bundle文件夹脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

随着对xcode 6的最新更改,看起来.app文件和文档文件夹不再位于iPhone模拟器目录中的同一文件夹中。

With the latest changes to xcode 6, it looks like the .app file and document folder no longer resides in the same folder in the iPhone simulator directory.

以前,我们可以访问目录和.app文件

Previously, we can access the directory and .app file at

/Users/me/Library/Application Support/iPhone Simulator/7.1/Applications/SomeCrpyticNumber

但在Xcode 6中,模拟器目录完全不同:

but in Xcode 6, the simulator directory is completely different:

~/Library/Developer/CoreSimulator/Devices/CrypticNumber1/data/Containers/Bundle/CrypticNumber2/MyApp.app

~/Library/Developer/CoreSimulator/Devices/CrypticNumber1/data/Containers/Data/CrypticNumber3/Documents    

其中CryptNumber 1,2 ,和3都是不同的。有没有办法在找到包含.app文件的文件夹后可以获取相应的Documents文件夹?我遇到了这个问题。

where CryptNumber 1,2, and 3 are all different. Is there a way where I can get the corresponding Documents folder after I find the folder that contains the .app file? I"m having trouble with this.

为什么......?

如果我在iOS 7模拟器,文档目录和.app文件至少在同一个文件夹中,但iOS 8将它们分开。

If I built the app on an iOS 7 simulator, the documents directory and .app file are in the same folder atleast like before, but iOS 8 separates them.

我能想到的唯一解决方案是配对2个具有最新创建/修改日期的文件夹。

The only solution I can think of right now is to pair up 2 folders that have the latest creation/modification dates.

编辑:

一边请注意,此工具对于在xcode 6上查找模拟器文件夹非常有用: http://simpholders.com/

on a side note, this tool is very useful for finding your simulator folders on xcode 6 now: http://simpholders.com/

推荐答案

这一直困扰着我。我无法100%解决它但我创建了一个快速而又脏的应用程序来帮助我我总能找到设备目录,但我还没有找到一种方法可靠地跟踪bundle / sandbox目录。来源: https: //github.com/somegeekintn/SimDirs

This has been bugging me as well. I've not been able to solve it 100% but I created a quick and dirty app to help a bit. I can always find the device directory, but I've not yet found a way to track down the bundle / sandbox directories reliably. Source: https://github.com/somegeekintn/SimDirs

编辑:走在前面tarted扫描mobile_installation.log以查找其他位置。似乎现在找到了一切。

Went ahead and started scanning mobile_installation.log to find additional locations. Seems to find everything now.

这篇关于Xcode 6 / iOS 8 Simulator数据和Bundle文件夹脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆