Re: Target change problem
Re: Target change problem
- Subject: Re: Target change problem
- From: Caleb Strockbine <email@hidden>
- Date: Sun, 31 Aug 2008 03:09:56 -0400
On Aug 30, 2008, at 12:30 AM, email@hidden wrote:
A program I have developed will not run on a PPC machine (G5
iMac) using OS 10.4.11. It was developed on Xcode 3.0 on an Intel
machine running OS 10.5.4. Initially the projects "Cross_Develop
Using Target SDK" was set to "Current Mac OS", so it's not surprising
that it wouldn't run on the G5 machine. When I changed the target SDK
to Mac OS 10.4 (Universal), "cleaned" the project, and rebuilt it,
the G5 PPC still would not run it.
I suspect there is still some setting in XCode that I need to
change, but I don't see anything obvious. Other programs that I've
developed with the same system do run nicely on the G5. Their Target
SDK setting started out set to 10.4 (Universal).
James-
I don't have Xcode 3 available just now, so I'm not certain that my
advice applies, but in Xcode 2 there's an "Architectures" build
setting that by default is set to $(NATIVE_ARCH), which on your Intel
machine will be 'i386'. You probably want to build a universal
binary, so double-click the Architectures line and make sure that
both PowerPC and Intel are selected. Once you dismiss that sheet, the
value next to Architectures should be 'ppc i386'.
You may want to see the "Building a Universal Binary" document for
more information:
http://developer.apple.com/documentation/MacOSX/Conceptual/
universal_binary/universal_binary_compiling/chapter_2_section_3.html
cheers,
Caleb
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden