Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone SDK location on hard drive

Tags:

iphone

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 the lost space?

like image 808
Atma Avatar asked Jan 05 '10 22:01

Atma


People also ask

Where is iOS SDK located?

iOS & the Apple SDK (Xcode) will have the default location when the location box is left blank. These defaults are as follows: Xcode: /Applications/Xcode. app.

How do I know what version of Xcode SDK I have?

To find out the version number of each framework, navigate to the . framework file, locate and open the Info. plist file. If you are using an IDE (Integrated Development Environment), such as Xcode, look for the value for the key Bundle versions string.


3 Answers

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
like image 108
Mats Avatar answered Jan 03 '23 18:01

Mats


There are SDK folders for each SDK version at:

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

and

 /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs
like image 38
Ken Aspeslagh Avatar answered Jan 03 '23 19:01

Ken Aspeslagh


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/
like image 23
Max MacLeod Avatar answered Jan 03 '23 18:01

Max MacLeod