Can't Find Ios Sdk

Hi

When trying to do an iOS build I get this error:

The iOS SDK located at  is missing the following component(s):

copypng

codesign_allocate

codesign

Please (re)install the iOS SDK.

Then I get this when trying to build again:

The iOS SDK located at  is missing the following component(s):

(null)Please (re)install the iOS SDK.

on the terminal it says:

xcrun: Error: could not stat active Xcode path ‘/Applications/Xcode.app/Contents/Developer’. (No such file or directory)

Xcode is in the /Applications folder.

I’ve tried reinstalling Xcode and the issue is the same on the latest public release.

Thanks

Max

Hi Max, I had this problem when I upgraded my version of x-code. I eventually dicovered that it was down to the fact that I hadn’t properly installed the update… I’m not sure if you’ve updated recently, but if you have, make sure that you delete the old framework from your applications folder and when you click the DMG from your new installer, make sure that the subsequent (unarchived) application is dragged into the applications folder to replace it.

I haven’t updated my Xcode - and its all in the right place.

I’m stuck for ideas.

Max

I think this could be a certificates/keys problem?

http://stackoverflow.com/questions/5619874/ios-code-signing-error

Hmm. Have you tried uninstalling it first and then installing xcode fresh?

Hi Max, I had this problem when I upgraded my version of x-code. I eventually dicovered that it was down to the fact that I hadn’t properly installed the update… I’m not sure if you’ve updated recently, but if you have, make sure that you delete the old framework from your applications folder and when you click the DMG from your new installer, make sure that the subsequent (unarchived) application is dragged into the applications folder to replace it.

I haven’t updated my Xcode - and its all in the right place.

I’m stuck for ideas.

Max

So I have uninstalled Xcode and then reinstalled (4.6.2) - it worked fine - UNTIL I opened Xcode (after install) – something is happening after I open it. 

The same is happening with xcode 4.5 too. 

@mdcapps, can you open the terminal and do:

cd /Applications/Xcode.app/Contents

 

and do a:

ls -l

And see what files are there?

Got this:

    total 24 drwxr-xr-x@  8 maxprice  admin    272 30 Oct 18:30 Applications drwxr-xr-x@  9 maxprice  admin    306 30 Oct 18:36 Developer drwxr-xr-x@  5 maxprice  admin    170 30 Oct 18:30 Frameworks -rw-r--r--@  1 maxprice  admin  15289 19 Oct  2012 Info.plist drwxr-xr-x@  3 maxprice  admin    102  5 Aug  2012 Library drwxr-xr-x@  3 maxprice  admin    102 30 Oct 18:10 MacOS drwxr-xr-x@ 16 maxprice  admin    544 30 Oct 18:37 OtherFrameworks -rw-r--r--@  1 maxprice  admin      8 19 Oct  2012 PkgInfo drwxr-xr-x@ 56 maxprice  admin   1904 30 Oct 18:36 PlugIns drwxr-xr-x@ 52 maxprice  admin   1768 30 Oct 18:46 Resources drwxr-xr-x@ 17 maxprice  admin    578 30 Oct 18:46 SharedFrameworks drwxr-xr-x@  4 maxprice  admin    136 17 Oct  2012 XPCServices drwxr-xr-x@  3 maxprice  admin    102 30 Oct 18:10 \_CodeSignature -rw-r--r--@  1 maxprice  admin    523 30 Oct 18:10 version.plist  

Well the Developer folder is there.  Let me ask and see if anyone has a better idea on what is going on.

There is a command that you can type:

xcode-select --print-path

that will show you where Xcode is looking for things.  If it’s not:

/Applications/Xcode.app/Contents/Developer

Then do:  xcode-select --switch /Applications/Xcode.app/Contents/Developer

and see if that helps.

That’s fixed it! It was looking in /Developer for some reason.

Thanks a lot! 

I think this could be a certificates/keys problem?

http://stackoverflow.com/questions/5619874/ios-code-signing-error

Hmm. Have you tried uninstalling it first and then installing xcode fresh?

So I have uninstalled Xcode and then reinstalled (4.6.2) - it worked fine - UNTIL I opened Xcode (after install) – something is happening after I open it. 

The same is happening with xcode 4.5 too. 

@mdcapps, can you open the terminal and do:

cd /Applications/Xcode.app/Contents

 

and do a:

ls -l

And see what files are there?

Got this:

    total 24 drwxr-xr-x@  8 maxprice  admin    272 30 Oct 18:30 Applications drwxr-xr-x@  9 maxprice  admin    306 30 Oct 18:36 Developer drwxr-xr-x@  5 maxprice  admin    170 30 Oct 18:30 Frameworks -rw-r--r--@  1 maxprice  admin  15289 19 Oct  2012 Info.plist drwxr-xr-x@  3 maxprice  admin    102  5 Aug  2012 Library drwxr-xr-x@  3 maxprice  admin    102 30 Oct 18:10 MacOS drwxr-xr-x@ 16 maxprice  admin    544 30 Oct 18:37 OtherFrameworks -rw-r--r--@  1 maxprice  admin      8 19 Oct  2012 PkgInfo drwxr-xr-x@ 56 maxprice  admin   1904 30 Oct 18:36 PlugIns drwxr-xr-x@ 52 maxprice  admin   1768 30 Oct 18:46 Resources drwxr-xr-x@ 17 maxprice  admin    578 30 Oct 18:46 SharedFrameworks drwxr-xr-x@  4 maxprice  admin    136 17 Oct  2012 XPCServices drwxr-xr-x@  3 maxprice  admin    102 30 Oct 18:10 \_CodeSignature -rw-r--r--@  1 maxprice  admin    523 30 Oct 18:10 version.plist  

Well the Developer folder is there.  Let me ask and see if anyone has a better idea on what is going on.

There is a command that you can type:

xcode-select --print-path

that will show you where Xcode is looking for things.  If it’s not:

/Applications/Xcode.app/Contents/Developer

Then do:  xcode-select --switch /Applications/Xcode.app/Contents/Developer

and see if that helps.