用一个台老ITouch进行真机调试时,xcode无法认到,换不同版本的xcode也不行,且在organizer中提示No such file or directory, at ‘/SourceCache/DVTiOSFrameworks/DVTiOSFrameworks-5053/DTDeviceKitBase/DTDeviceKitBase_Utilities.m:1572’
出问题 ITouch的IOS版本是5.1.1,而另外一台ITouch的IOS版本为6.0,能正常使用,后来发现是在/Users/dongzi/Library/Developer/Xcode/iOS DeviceSupport/5.1.1 (9B206)/Symbols/System/Library/Caches/com.apple.dyld没有现有的库文件,
而在相似目录中/Users/dongzi/Library/Developer/Xcode/iOS DeviceSupport/6.0 (10A403)/Symbols/System/Library/Caches/com.apple.dyld看到以下文件
drwxr-xr-x 5 dongzi staff 170 7 9 20:53 . drwxr-xr-x 4 dongzi staff 136 7 9 20:53 .. -rw-r--r-- 1 dongzi staff 0 7 9 20:53 .copied_dyld_shared_cache_armv7 -rw-r--r-- 1 dongzi staff 0 7 9 20:53 .processed_dyld_shared_cache_armv7 -rw-r--r-- 1 dongzi staff 242173366 7 9 20:53 dyld_shared_cache_armv7
在terminal中执行下面的命令
cd /Users/dongzi/Library/Developer/Xcode/iOS DeviceSupport/5.1.1 (9B206)/Symbols/System/Library/Caches/com.apple.dyld touch .copied_dyld_shared_cache_armv7 touch .processed_dyld_shared_cache_armv7 touch dyld_shared_cache_armv7
再次打开xcode的organizer,不在有错误提示了,且xcode能正常认到设备了
ITouch在xcode下提示‘No such file or directory, at ‘/SourceCache/DVTi...',布布扣,bubuko.com
ITouch在xcode下提示‘No such file or directory, at ‘/SourceCache/DVTi...'
原文地址:http://blog.csdn.net/jonahzheng/article/details/37692733