Questions tagged [universal-binary]

A universal binary is an executable file or application bundle that runs natively on either PowerPC or Intel-manufactured IA-32 or Intel 64-based Macintosh computers

A universal binary is an executable file or application bundle that runs natively on either or Intel-manufactured or Intel 64-based Macintosh computers.

Universal Binaries were announced in 2005, when Apple announced that a transition from PowerPC to Intel processors would begin.
Universal binaries typically include both PowerPC and versions of a compiled application. The operating system detects a universal binary by its header, and executes the appropriate section for the architecture in use. This allows the application to run natively on any supported architecture, with no negative performance impact beyond an increase in the storage space taken up by the larger binary.

145 questions
157
votes
6 answers

How do I determine the target architecture of static library (.a) on Mac OS X?

I'm interested in verifying if a given iPhone static library has been built for ARM or Intel. It's more curiosity than anything. Is there some kind of Mac OS X or BSD specific tool to do this? This post gives an example in Linux.
Justicle
  • 14,761
  • 17
  • 70
  • 94
94
votes
8 answers

How can we restore ppc/ppc64 as well as full 10.4/10.5 SDK support to Xcode 4?

Since Apple only ships SDK 10.6 with Xcode4, developing PPC applications with Xcode4 became impossible. While it is possible to develop applications with Xcode4 that can also run on 10.5 and maybe even on 10.4 systems (by selecting SDK 10.6, but…
Mecki
  • 125,244
  • 33
  • 244
  • 253
25
votes
2 answers

Converting iPhone app to a Universal app in Xcode 4

I am trying to upgrade my existing iPhone app project to an Universal app but I can not find any option in Xcode 4 to do so. Where is it?
iOS.Lover
  • 5,923
  • 21
  • 90
  • 162
20
votes
3 answers

iOS: Universal App - Release as iPhone only

A customer is interested in releasing a universal app. However, the first release will contain only the iPhone version, the second release will contain both versions. I found a few links where ppl figured out how to make this work in the simulation…
Tomen
  • 4,854
  • 5
  • 28
  • 39
19
votes
4 answers

How do i compile a static library (fat) for armv6, armv7 and i386

I know this question has been posed several times, but my goal is slightly different with regard to what I have found searching the web. Specifically, I am already able to build a static library for iPhone, but the final fat file I am able to build…
Massimo Cafaro
  • 25,429
  • 15
  • 79
  • 93
16
votes
9 answers

iOS Development: How can I prevent an iPad from running a universal app in iPad mode?

I'm diving into iOS development and I created a universal app that turned into an iPhone-only app. When it runs on the iPad, it just loads a white screen since there's no iPad code written yet. What I'd like is for it to run in "iPhone" mode on…
BeachRunnerFred
  • 18,070
  • 35
  • 139
  • 238
15
votes
3 answers

How to compile universal libraries on Mac OS X?

This may be a very silly question, but I'm new to developing on Macs and am having a hard time with the universal binaries. I've got an application that I'm compiling in QT Creator, which according to lipo is producing i386 architecture outputs. As…
Nantucket
  • 1,647
  • 3
  • 14
  • 25
15
votes
1 answer

Fat libraries in XCode 5

I've been trying to build a static library and then create a binding project from it in Xamarin. Everything was working fine until iOS 7 hit. I had to grab the latest version of the native library and try and build it in XCode 5, but it's been…
Matt Burland
  • 44,552
  • 18
  • 99
  • 171
12
votes
4 answers

Use @2x retina images for ipad in universal app? and does apple prefer native apps?

I know there were some discussions about this but i could not find good answer? My questions are - I know that - [UIImage imageNamed:@"blabla"] will automatically search for the correct image to display (retina or not) on iPhone. I have a…
shannoga
  • 19,649
  • 20
  • 104
  • 169
11
votes
4 answers

One XCode project, two target, two apps (iPhone/iPad) not universal app

We have an XCode project that was first build as an universal app, and then on the road we changed our mind on having the two app in the same binary, so we created two targets. The first one is called: AppName and is for iPhone: the base SDK is 4.2…
clide313
  • 1,507
  • 2
  • 18
  • 27
11
votes
4 answers

How should I approach building a Universal iOS app that will include iOS 4 features, even though the iPad doesn't yet run iOS 4?

I'd like build a game for both the iPhone and iPad. As such, it would make sense to start this project from scratch as a universal app. However, iPhone and iPad currently run two different versions of the iOS since iOS 4 isn't available for the…
BeachRunnerFred
  • 18,070
  • 35
  • 139
  • 238
10
votes
1 answer

convert ipad app to run on iphone (universal app)

I have a working iPad app which I now need to make work on iPhone. I've been reading around a fair bit on this, but haven't found a good answer. On this site, I saw some discussion... but again, no definite answers. Does anyone know of any…
Matt Facer
  • 3,103
  • 11
  • 49
  • 91
9
votes
3 answers

Windows 8 fat binary (exe for x86 & ARM)

Does anyone (here) know if Windows 8 will have a sort of fat exe that one can compile with Visual Studio 2012 that will be supported on both ARM and x86 machines? I am guessing not, since you can't create fat binaries that will execute 32 or 64 bit…
Joshua W
  • 1,103
  • 12
  • 29
8
votes
1 answer

Unable to link ppc after upgrading to XCode 4

I followed these instructions on how to get the 10.4 SDK working with PPC after upgrading to XCode 4. I am able to compile, but it errors out at link time. As an added wrinkle, I'm not using XCode per se, but the gcc toolchain that comes with it. …
paleozogt
  • 6,393
  • 11
  • 51
  • 94
8
votes
3 answers

How to build universal ios static library

I'm trying to build a static library that I can use with both ios3.x and ios4.x. I can build a static library with ios3.0 that works with another project in ios3.0 but won't compile in ios4. The same is true going from ios4 to ios3. Here's how to…
Julie
  • 195
  • 1
  • 7
1
2 3
9 10