Link to home
Start Free TrialLog in
Avatar of curiouswebster
curiouswebsterFlag for United States of America

asked on

Finding the iOS SDK

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
Avatar of Eoin OSullivan
Eoin OSullivan
Flag of Ireland image

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/
Avatar of curiouswebster

ASKER

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/....
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
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.
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??
ASKER CERTIFIED SOLUTION
Avatar of Eoin OSullivan
Eoin OSullivan
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Perfect!

Thanks!