Reputation: 5828
After i updated iPhone SDK to 4.1 I can no longer compile neither for Simulator or Device. I get the following message:
error: can't exec '/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2' (No such file or directory)
Solution for this?
Upvotes: 2
Views: 2809
Reputation: 4434
I had this happen to me. So for xcode 3.2.5:
gcc-4.2 is definitely installed by the installer. ie:
ls /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g* =>
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++ /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.0 /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.2
Upvotes: 1
Reputation: 5828
I solved this by doing:
sudo cp /usr/bin/gcc-4.2 /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2
Upvotes: 2
Reputation: 18333
Check to see if it is there and accessible, sudo ls -l /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2
. Mine has these permissions: -rwxr-xr-x 1 root wheel 166128 Jul 26 15:05 /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2
Have you tried reinstalling yet?
Upvotes: 2