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
7
votes
3 answers

Naming conventions for Universal Applications

I'm writing a universal iOS application (iPad and iPhone) and find myself with massively long names for classes that can't be shared between the two…
Luther Baker
  • 7,236
  • 13
  • 46
  • 64
7
votes
2 answers

Building/Testing a Universal iPhone/iPad application

I have a project configured (I think) to produce Universal binaries. The base SDK is set to 3.2 and the Deployment Target is set to 3.1. Target Device Family is iPhone/iPad and the architecture is armv6 armv7. I had a few questions about how this…
psychotik
  • 38,153
  • 34
  • 100
  • 135
7
votes
2 answers

Submit an universal app as iPad only app to Apple

I created an universal app with the window template in xcode. Now I want submit just the iPad version of my app, because the iPhone version is not yet fully programmed. How is this possible? What do I have to change? (target settings, info.plist,…
Flocked
  • 1,898
  • 2
  • 36
  • 57
7
votes
2 answers

Run an OS X universal binary in 32-bit mode

I have a third-party library (the interface to Xerox's Finite State tools) which come as universal binaries with two variants internally: a PPC and an i386 variant. I also have a Python interface to the library (which uses ctypes). But when I try to…
arnsholt
  • 851
  • 7
  • 17
6
votes
1 answer

How to build a static library on M1 mac that supports iOS simulator on Intel mac?

I have a fat iOS library which supports both real devices (arm64...) and iOS simulator of Intel Mac (x86_64). But when I switched to M1 mac, things get tough. If I use the old library, I will fail with error saying xxx.a (xxx.o) building for iOS…
Rookie
  • 313
  • 2
  • 10
6
votes
3 answers

How to build boost 1.45 universal binaries?

How to build boost 1.45 universal binaries? on leopard/ snow leopard ?
Rajeshaz09
  • 348
  • 5
  • 14
6
votes
1 answer

Device-Specific Resources in iPhone

According to the iOS Reference Library: In iOS 4.0 and later, it is possible to mark individual resource files as usable only on a specific type of device. Does this mean that if you're creating an Universal app for 3.X devices, and the 3.2…
hpique
  • 119,096
  • 131
  • 338
  • 476
6
votes
2 answers

Run a universal app as a 'legacy' iPhone app on an iPad

I do most development testing on my iPad. When I test an iPhone app, it runs in 'compatibility' mode where the little iPhone app runs in a small window or x2 magnification. Now that I've created a universal app it runs as a native iPad app. For…
Paul Alexander
  • 31,970
  • 14
  • 96
  • 151
6
votes
2 answers

Mac 10.6 Universal Binary scipy: cephes/specfun "_aswfa_" symbol not found

I can't get scipy to function in 32 bit mode when compiled as a i386/x86_64 universal binary, and executed on my 64 bit 10.6.2 MacPro1,1. My python setup With the help of this answer, I built a 32/64 bit intel universal binary of python 2.6.4 with…
Markus
  • 3,447
  • 3
  • 24
  • 26
6
votes
4 answers

Create a "Universal Binary" from two apps?

Short question: How do you take two apps, one for intel and the other ppc, and package them into one Universal Binary? My current thoughts on this problem: I have read though the apple developer documentation on universal binaries and haven't been…
marshallpenguin
  • 167
  • 2
  • 8
6
votes
1 answer

Why are Universal Binaries/FatElf not part of Linux kernel?

Apple's concept of universal binaries allow easily shipping a single file containing both 32 and 64 bit versions of a binary. Although this is possible in Linux using FatElf, FatElf and the concept of universal binaries are not baked in the kernel…
pdeva
  • 43,605
  • 46
  • 133
  • 171
5
votes
1 answer

How to create a mac universal binary with bundled JRE?

I am creating a JAVA desktop app for Mac computers, using jpackage to bundle the desired JRE into the app and finally shipping a .app to the customers. With the new m1 apple arm silicon computers I do not want to create different apps for each…
trainrobbery
  • 500
  • 3
  • 14
5
votes
1 answer

g++ on MacOSX doesn't work with -arch ppc64

I am trying to build a Universal binary on MacOSX with g++. However, it doesn't really work. I have tried with this simple dummy code: #include using namespace std; int main() { cout << "Hello" << endl; } This works fine: % g++…
Albert
  • 65,406
  • 61
  • 242
  • 386
5
votes
1 answer

Turning Separate iPad/iPhone Targets into Universal App

When I started my universal application, I thought the one target option would be too much work, so i opted for separate targets. I realized halfway through making the iPad portion of the app, that making a universal application would be easier. The…
conradev
  • 1,074
  • 1
  • 14
  • 31
5
votes
2 answers

Building iPhone static library for armv6 and armv7 that includes another static library

I have an Xcode project that has a "master" static library target, that includes/links to a bunch of other static libraries from other Xcode projects. When building the master library target for "Optimized (armv6 armv7)", an error occurs in the last…
Martijn Thé
  • 4,674
  • 3
  • 29
  • 42
1
2
3
9 10