开发者

iPhone SDK location on hard drive

I attempted to reinstall the iphone sdk on my mac. I figured the reinstallation would just override my previous installation but it seems that more hard drive space was eaten up after the second install. Does anyone know how I can refresh my installation and start from scratch to free up all t开发者_Go百科he lost space?


Certainly at least as of Xcode 4.4, this has changed. It's now:

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

and

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


It is also possible to get the path with the xcrun tool. In Terminal.app type the following:

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

and

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

This will have the following results:

$ 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


There are SDK folders for each SDK version at:

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

and

 /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜