2010-01-05 63 views
8

我试图在我的Mac上重新安装iPhone SDK。我想重新安装只会覆盖我以前的安装,但似乎更多的硬盘空间在第二次安装后被吃掉了。有谁知道我可以如何刷新我的安装,并从头开始释放所有失去的空间?在硬盘驱动器上的iPhone SDK位置

+1

这可能属于对superuser.com – 2010-01-05 22:23:27

+1

由于这是关于开发者工具(iPhone SDK)我认为它应该留在这里,不要移到superuser.com,我认为它更适合非开发者系统的东西... – epatel 2010-01-05 23:35:05

回答

4

有每个SDK版本的SDK文件夹在:

/Developer/Platforms/iPhoneOS.platform/Developer/SDKs 

/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs 
34

当然至少为4.4的Xcode的,这种情况已经改变。它现在:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/ 

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/ 
+2

虽然选择的答案是相关的ct在/Applications/Xcode.app/Contents/目录的上下文中;具有完整路径的这个答案比在所选答案中提供的相对路径更明确和易于理解。 – Patrick 2015-06-10 17:13:08

13

也可以得到与xcrun工具的路径。在Terminal.app键入以下内容:

xcrun --sdk iphoneos --show-sdk-path 

xcrun --sdk iphonesimulator --show-sdk-path 

这将导致以下结果:

$ xcrun --sdk iphoneos --show-sdk-path 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk 
$ xcrun --sdk iphonesimulator --show-sdk-path 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk 
+0

这应该是一个可接受的答案,因为该方法独立于Xcode版本的安装方式。由于Xcode本身使用它来管理路径问题。 – 2016-03-22 13:14:58