• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: XCODE: Problem compiling first Hello World App
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XCODE: Problem compiling first Hello World App


  • Subject: Re: XCODE: Problem compiling first Hello World App
  • From: Dave Reed <email@hidden>
  • Date: Thu, 01 Oct 2009 13:55:48 -0400


On Oct 1, 2009, at 4:08 AM, Jaideep Chakravorty wrote:

Hi Dave,

Thanks for your answer.

Earlier I had bought my first MacBook in India. It did not come pre- loaded with Snow Leopard, but with Mac OS 10.5. Snow Leopard was then installed on it, by the Apple reseller.

I had then downloaded the installer for Xcode 3.2 and iPhone SDK 3.1 (in a single installer file) from the Apple Developer site.

Currently, as per your advise, I had completely uninstalled Xcode from my system, and then removed the /Developer directory also. Reinstalled xcode again. But still getting the same error. I am totally confused as to why is this happening?

I am also attaching the error screen shot for your reference.

Please help.

Thanks,
JC.


Did you install both Xcode 3.2 AND the iPhone SDK file? They are two separate installs as I understand it now (under Leopard, the iPhone SDK contained Xcode and the iPhone stuff). Now as I understand it, the iPhone SDK doesn't have all the Xcode stuff so you need to first install Xcode 3.2 then the iPhone SDK.

Dave




On Thu, Oct 1, 2009 at 4:29 AM, <email@hidden> wrote:

On Sep 30, 2009, at 5:13 AM, Jaideep Chakravorty wrote:

Hi,

I am new to XCode, Mac OS and iPhone Development.

I had already installed the earlier iPhone SDK (version prior to the latest 3.1) into my Mac OS 10.6. I was not able to run
the hello world program through xCode as while loading the simulator it was giving me an error saying that it cannot find the right SDK.


I had assumed that the old SDK is not compatible with the new Mac OS 10.6 (Snow Leopard). I had then uninstalled the old
iPhone SDK using Terminal tool, using the command line given in the xCode uninstall guide.


Installed the latest iPhone SDK (version 3.1), and then tried to compile the hello world app through xCode. Now I am getting the following error:

error: can't exec '/Developer/Platforms/iPhoneSimulator.platform/ Developer/usr/bin/gcc-4.2' (No such file or directory)

I had located the above mentioned directory and could not find the file: "gcc-4.2" as mentioned in the error. Instead
executable files like "i686-apple-darwin10-gcc-4.2.1" are present there. Looking at the detailed error message (given below),
it seems my PATH variable is totally messed up and not pointing to the correct compiler EXE.


I am totally confused here, as I don't know how to correctly set up the ENV, as I thought the iPhone installer SDK does that automatically.

Please help me out.

Thanks in advance for your time,
JC.

****************************************
Error Messages:

Build helloworldxc of project helloworldxc with configuration Debug

ProcessPCH /var/folders/P-/P-zMg0EzHree36VYyqKEvU+++TI/-Caches-/ com.apple.Xcode.501/SharedPrecompiledHeaders/helloworldxc_Prefix- gylsydenhucpkgfnujlgvzvhfhzd/helloworldxc_Prefix.pch.gch helloworldxc_Prefix.pch normal i386 objective-c com.apple.compilers.gcc.4_2
cd "/Users/jaideepchakravorty/Jaideep/R&D/helloworldxc"


setenv LANG en_US.US-ASCII

setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/ usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ gcc-4.2 -x objective-c-header -arch i386 -fmessage-length=0 -pipe - std=c99 -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn- type -Wunused-variable -D__IPHONE_OS_VERSION_MIN_REQUIRED=30000 - isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/ SDKs/iPhoneSimulator3.1.sdk -fvisibility=hidden -mmacosx-version- min=10.5 -gdwarf-2 -iquote /Users/jaideepchakravorty/Jaideep/R&D/ helloworldxc/build/helloworldxc.build/Debug-iphonesimulator/ helloworldxc.build/helloworldxc-generated-files.hmap -I/Users/ jaideepchakravorty/Jaideep/R&D/helloworldxc/build/helloworldxc.build/ Debug-iphonesimulator/helloworldxc.build/helloworldxc-own-target- headers.hmap -I/Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/ build/helloworldxc.build/Debug-iphonesimulator/helloworldxc.build/ helloworldxc-all-target-headers.hmap -iquote /Users/ jaideepchakravorty/Jaideep/R&D/helloworldxc/build/helloworldxc.build/ Debug-iphonesimulator/helloworldxc.build/helloworldxc-project- headers.hmap -F/Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/ build/Debug-iphonesimulator -I/Users/jaideepchakravorty/Jaideep/R&D/ helloworldxc/build/Debug-iphonesimulator/include -I/Users/ jaideepchakravorty/Jaideep/R&D/helloworldxc/build/helloworldxc.build/ Debug-iphonesimulator/helloworldxc.build/DerivedSources/i386 -I/ Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/build/ helloworldxc.build/Debug-iphonesimulator/helloworldxc.build/ DerivedSources -c /Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/ helloworldxc_Prefix.pch -o /var/folders/P-/P-zMg0EzHree36VYyqKEvU++ +TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/ helloworldxc_Prefix-gylsydenhucpkgfnujlgvzvhfhzd/ helloworldxc_Prefix.pch.gch


while compiling hellowworldxc_Prefix.pch,

error: can't exec '/Developer/Platforms/iPhoneSimulator.platform/ Developer/usr/bin/gcc-4.2' (No such file or directory)


Did you install Xcode 3.2 (it's on the Snow Leopard DVD). You may need to reinstall it (possibly again) after you deleted the old iPhone SDK.


You need to install Xcode 3.2 and iPhone SDK 3.1 for Snow Leopard. I'd probably delete /Developer and then reinstall both of those.

HTH,
Dave

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

<xcode32_error.jpg>

_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Stripping
  • Next by Date: Re: trouble using tgmath
  • Previous by thread: Re: Stripping
  • Next by thread: Doxygen generated DocSets and Quick Help
  • Index(es):
    • Date
    • Thread