New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Xcode Applications on other computers


Post Reply New Thread Subscribe

 
Thread Tools
Elan

 
Member Since: Feb 02, 2008
Posts: 22
Elan is on a distinguished road
Mac Specs: Powermac G4, 1GHZ, 1.5GB Ram, 320GB, 320GB, 250GB HDs, Mac OS 10.4.11

Elan is offline
Hi.

I am learning to use Xcode and have made the classic Currency Converter application using Cocoa and Objective C.

I am running Xcode version 2.5 on mac os x 10.4.11.

I set the Currency Converter application as a universal program so that it would work on intel computers.

The problem is, after sending the application to my friend on an Intel MacBook running mac os x 10.4.9, he couldnt open it.

I have set it to compile for Mac os 10.4(Universal), so shouldn't it work on all versions of 10.4?

What am I doing wrong?

Thanks.
QUOTE Thanks
zahnast

 
Member Since: Jan 12, 2008
Posts: 15
zahnast is on a distinguished road
Mac Specs: 24" iMac Intel Core 2 Duo 2.4ghz 4GB Ram

zahnast is offline
You can strip universal apps of their x86 or PPC code. (ie. if you want to make an app intel only or ppc only.)

To get rid of x86 code, type the following into the terminal:
ditto --rsrc --arch ppc (application).app (application)_PPC.app

To get rid of PPC code, type:
ditto --rsrc --arch x86 (application).app (application)_x86.app
QUOTE Thanks
Elan

 
Member Since: Feb 02, 2008
Posts: 22
Elan is on a distinguished road
Mac Specs: Powermac G4, 1GHZ, 1.5GB Ram, 320GB, 320GB, 250GB HDs, Mac OS 10.4.11

Elan is offline
Thanks Zahnast, i'll keep that i mind.

I would prefer that my applications work on both PPC and Intel at the moment though. In Xcode, I did i tick both Intel and PPC options, so I don't really get why it isn't working on my friends computer..

It must have something to do with the compiler?
QUOTE Thanks
xstep

 
xstep's Avatar
 
Member Since: Jun 25, 2005
Location: On the road
Posts: 3,231
xstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to all
Mac Specs: 2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid

xstep is offline
Do a Get File Info on the file file and see if Kind is Universal. Also check to see if you have the XCode project set to Debug mode or Prodruction. I think that is the terminlogy.
QUOTE Thanks
Elan

 
Member Since: Feb 02, 2008
Posts: 22
Elan is on a distinguished road
Mac Specs: Powermac G4, 1GHZ, 1.5GB Ram, 320GB, 320GB, 250GB HDs, Mac OS 10.4.11

Elan is offline
In the Get Info it is universal.

It could be in debug mode, would that cause it to not work?

Ill look into that as soon as i get the stuff back from my old 40gb Hard Drive.

Thanks.
QUOTE Thanks
Elan

 
Member Since: Feb 02, 2008
Posts: 22
Elan is on a distinguished road
Mac Specs: Powermac G4, 1GHZ, 1.5GB Ram, 320GB, 320GB, 250GB HDs, Mac OS 10.4.11

Elan is offline
Yep that worked

I deleted the debug build configuration so that the release build configuration was the default.

Thanks for the help
QUOTE Thanks

Post Reply New Thread Subscribe


« Any cocoa developers for hire (project based)? | XCode Noob »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Xcode 1.5 alejandrico OS X - Development and Darwin 0 06-03-2006 05:56 PM
How to make applications run without sticking them in the applications folder andrew.glesener OS X - Apps and Games 12 05-25-2006 05:40 PM
Applications showing up as volumes? oinkydoodle Switcher Hangout 5 08-13-2005 02:15 PM
Xcode doesn't run application correctly dr_springfield OS X - Development and Darwin 5 04-06-2004 11:22 PM
New Xcode plug-in helps developers reuse code Murlyn OS X - Development and Darwin 0 11-10-2003 12:16 PM

All times are GMT -4. The time now is 11:39 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?