Finding the iOS SDK

curiouswebster
curiouswebster used Ask the Experts™
on
Now that I use Xcode 4.3, the SDK is no longer in the /Developer folder. So were can I find it?

I found the following link containing these path's, and suspect the path is here. I just do not know how to get it to input into DreamWeaver.

http://forums.runrev.com/viewtopic.php?f=49&t=11333

(search for "iPhoneOS.platform" to find the following)

Thanks.

sudo cp -R /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
sudo cp -R /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/
sudo cp -R /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1\ \(9B176\) /Developer/Platforms/iPhoneOS.platform/DeviceSupport/
cd /Developer/Platforms/iPhoneOS.platform/DeviceSupport/
sudo rm -f ./Latest
sudo ln -s ./5.1\ \(9B176\) ./Latest
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
The latest version of XCode had hidden all the SDK elements inside the APP itself.

In OSX an application is usually a folder with a name ending in ".app"

Your XCode is sitting in the Applications folder .. if you right click you will see an option in the top of the contextual menu called "Show package Contents"
This opens the APP folder and you can now browse the contents of XCode

The commands you quote above are not correct as they are designed to copy the SDK folders from a Mounted disk image called XCode .. whereas your SDK folder is now at

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

The 3 commands above should read ..
sudo cp -R /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/

sudo cp -R /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/

sudo cp -R /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1\ \(9B176\) /Developer/Platforms/iPhoneOS.platform/DeviceSupport/
curiouswebsterSoftware Engineer

Author

Commented:
Thanks. I see the 3 folder inside of:
/Applications/Xcode.app/Contents/Developer/Platforms/

I never would have found this on my own!

So I should execute the three sudo commands you provided? Once I do so, where will the folders be located? I need the actual path which I can then enter into DreamWeaver.

Thanks!
Those 3 commands COPY the folders from INSIDE the XCode application to the Developer folder on the root of your iMac ... in effect the same location that the older versions of XCode were located.
I am guessing that Dreamweaver was setup to look in the old location of XCode .. /Developer/....
curiouswebsterSoftware Engineer

Author

Commented:
I tried to execute the first one, but got this:

cp: /Developer/Platforms/iPhoneOS.platform/Developer/SDKs: No such file or directory

times 10 thousand!
That destination folder clearly does not exist so it cannot copy the folder from inside the XCode app

You'll have to create the destination folders first ... unless there is some way to point Dreamweaver at the correct location inside the XCode.app and save yourself some work
curiouswebsterSoftware Engineer

Author

Commented:
It looks like to create all those nested folder by hand is a lot of work.  And error prone.

I would much prefer to point to the Xcode exe folders. I think that may work, since I can browse to the folder tree inside the Xcode executable from within DreamWeaver. But when I chose this folder

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)


I get the attached error.  The iOS is not found. So either I have the wrong folder or DreamWeaver does not treat this folder as a standard folder.

iOS-not-found.tiff
More likely the former (wrong folder selected) ... as the folder should be a standard folder.
curiouswebsterSoftware Engineer

Author

Commented:
How might I find the exact folder it's looking for? Or is there a certain file that needs to exist?

I have tried a bunch.

Why do I feel like I'm the first to configure DreamWeaver to work with the iOS SDK??
Did you follow the tip here?
http://groups.google.com/group/phonegap/browse_thread/thread/7dc6d039309f33a6/5cff82b8a7fd6033?lnk=raot

Try this in your Site > Configure application framework >  iOS.  
Set the path to ....
/Applications/Xcode.app/Contents/Developer
curiouswebsterSoftware Engineer

Author

Commented:
Perfect!

Thanks!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial