Hi All,
Previously, when I built my AS Studio application as universal build I get Application (Universal) when I look at the file information. Now, some downloaders say that what they get is Application (Intel), the app does not seem to work with PPCs and some other problems pop up. I checked this out and indeed, I see the same thing with my latest builds: (Intel).
I did not change the way I build my app since I upgraded from the older Xcode to v. 2.2.1. I upgraded recently to Mac OX 10.4.9. When I check the build configuration before any new compilation in Xcode, it see that both PPC and Intel are selected.
What could be the problem? Is there something I must do to make sure I get the universal build?
Thanks for the help.
archseed
BTW, I have read the previous posts in this forum on this same problem.
It does seem like this is a universal problem with Universal build (pardon the pun). Question is: is there a standard (yet easy) way to solve this issue instead of tinkering with things I do not know much about in Xcode?
Thanks for the help.
archseed
Hi All (again),
Sorry, I keep posting a reply to my own post. Just fyi, the problem that I had is now resolved.
Thanks, Mikey-san, for the link to this: http://developer.apple.com/documentation/MacOSX/Conceptual/universal_binary/universal_binary_compiling/chapter_2_section_1.html#//apple_ref/doc/uid/TP40002217-CH206-TPXREF101
As it turned out, the only thing I had to do is make sure of this:
¢ Your Xcode target is a native Xcode target. If it isn’t, in Xcode you can choose Project > Upgrade All Targets in Project to Native.
That did the trick. The previous build that always indicated as “Application (Intel)” is now “Application (Universal)”. There is no problem after all. Sorry, Apple, Inc.
archseed
what are you clicking? I dont have that menu!? :mad:
Im in my project, i click the Project button up the top of the screen and there is no “Upgrade All Targets in Project to Native”
Can you send a screenshot or something of where you are clicking?
Hi Captainhams,
I am using Xcode 2.2.1.
If you have an open Project in Xcode, you will see between menu bar “Find” and “Build” the menu “Project”.
Click the “Project” menu to see the option "“Upgrade all targets in project to native”, That’s all I did to get back the universal build.
If you don’t have this menu option under “Project” menu, then there must be something missing in your Xcode. Are you in Xcode 2.2.1?
Good luck.
archseed
Here is what i have in my Project menu:
http://www.cns-world.com/external/xcode.png
I think my Xcode is an updated version of yours, in the Xcode about window it says it is Version 2.4 but in the finder about window it says it is version 2.3
thanks if you can find the problem, this is a big issue in my application as well
Hi,
You have it there…right on top of the menu option “New build phase”.
In your png screenshot, it is greyed out. However, I think if you have an open project the option “Upgrade all targets in project to native” should be selectable in that drop-down menu.
Good luck.
archseed.
i have tried clicking everywhere! It does not come active (the menu button)
Hi,
I don’t have an older Xcode than 2.4, too - but I’d say this hasn’t changed since your version:
- in ‘Project Settings’ go to the ‘Build’ tab and choose
- Configuration → ‘Active Configuration’
- Collection → ‘All Settings’
- then enter ‘i386 ppc’ in the first row (‘Architecture’)
… the description says: ‘A list of the architectures for which the product will be built. By default only the native architecture (the one for the machine on which Xcode is running) is produced. If more than one architecture is specified, a universal binary will be produced. [ARCHS]’
Hope that helps
D.
Thanks heaps!
Worked just like i wanted it too.