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

Xcode universal library build phase - Lipo can't find files

I've read several tutorials and guides on how to have Xcode create a universal library. Basically you add an aggregate target with a bash script build phase to build the separate targets and lipo them together. I have my own small script (which…
dzan
  • 425
  • 3
  • 14
3
votes
1 answer

Convert ipad application to iphone. Universal app

Convert iPad application to iPhone- Universal app. I already have one iPad application, now I want to make a universal app of that iPad application. How to convert? Is it possible? Or do I have to start a new app?
Rakesh Bhatt
  • 4,606
  • 3
  • 25
  • 38
3
votes
2 answers

How to manually build a universal ruby on Mac OS X? How about with rvm?

I got the ruby sources from the official git mirror, then checked out the ruby_1_9_2 branch. git clone http://github.com/ruby/ruby.git git checkout ruby_1_9_2 So, for now, I want to compile 1.9.2-head. But as you'll see later I'm hoping for a…
kch
  • 77,385
  • 46
  • 136
  • 148
3
votes
2 answers

How do I build Universal binaries (ppc/i386) using Xcode 3.2.2 for OSX?

I am trying to build a universal binary for a project at work, but I can't seem to get Xcode set up properly to do so. I am familiar with the Apple Documentation regarding this, but apparently I am not reading it correctly. The Xcode build options…
Rumbeck
  • 31
  • 1
  • 3
3
votes
2 answers

ios static library Undefined symbols for architecture x86_64

lipo -info libXxxx.a Architectures in the fat file: libXxxx.a are: armv7 i386 arm64 But compiler in the dependant project is giving linking error, Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_ClassXXXX", referenced from: …
karim
  • 15,408
  • 7
  • 58
  • 96
3
votes
2 answers

Turning an iPad app into a universal app

I've created an iPad app, and want to turn it into a universal app (i.e. one app that works for iPhone and iPad). The Apple docs seem to only talk about the "Upgrade Current Target for iPad" option. Is there an option to go the other way?
jkooker
  • 574
  • 3
  • 13
3
votes
1 answer

How to port existing iPhone application to iPad

I have an iPhone application, now i want to convert that application to a universal application which runs on all the devices iPhone/iPod/iPad. So, where to start, what things i need to do? Any help, link, sample app, anything, will be highly…
Ansari
  • 1,907
  • 2
  • 23
  • 34
3
votes
0 answers

How to compile universal libraries on Mac OS X with separate compile or link option for i386 and x86_64 binary part?

I'm compiling a program that use luajit library(in static link way) for Mac OSX with Xcode 5.02. The runtime memory mechanism of luajit makes it required to add the link option "-pagezero_size 10000 -image_base 100000000" on x86_64 build for Mac OSX…
SONIC3D
  • 489
  • 4
  • 6
3
votes
4 answers

check CPU type at RUN time for C program on MAC

How does a C program determine, at RUN time (not compile time), whether it's running on Little-Endian or Big-Endian CPU? The reason why it must be "run-time" check, not "complie-time", is because I'm building the program in MAC OSX's Universal…
3
votes
0 answers

Static Library architecture stripping

I have some static libraries compiled for iOS platforms. Libraries are compiled for iPhone device (armv6, armv7) and iPhone Simulator (i386) and then packaged into a single universal library static library (armv6, armv7, i386). The advantage of…
David Andreoletti
  • 4,485
  • 4
  • 29
  • 51
2
votes
2 answers

Convert non terminating binary number to decimal

I don't know how to convert a non terminating binary number(fraction) to decimal . Can anybody guide me how to do with an example?
2
votes
2 answers

iOS Universal App - Access different Nibs for iPad and iPhone

I am writing my first universal app, I have converted my nibs so that there are iPad and iPhone versions. The iPad version is in the Resources-iPad folder and called 'InfoViewController-iPad.xib'. The iPhone version in the main folder and called…
CarlG
  • 47
  • 6
2
votes
0 answers

How to add a UISplitViewController to a window-based app

If I create a new project in Xcode 3 - a "Universal" window based project, I can't seem to instantiate the UISplitViewController outlet I am adding to the iPad's XIB. Starting with a brand new "window-based" project, I select "Universal" from the…
Luther Baker
  • 7,236
  • 13
  • 46
  • 64
2
votes
1 answer

How to get architecture of running Python interpreter on MacOS with Apple Silicon?

When running a Python universal binary (x86_64, arm64), how can I check from within Python whether it is running the x86_64 or arm64 executable? It seems that os.uname() and platform.machine() would always give the actual system architecture (i.e.…
Florian Krause
  • 183
  • 1
  • 2
  • 8
2
votes
1 answer

How to change UIToolbar button icons to hi-res on a Universal app if the device supports retina display?

I am working on a Universal app, there is a UIToolbar with the 20x20px icon as images, but I need to switch this to their hi-res counterpart (40x40px) if the device supports retina display, any tips how can I achieve this?
Ricardo Sanchez
  • 4,935
  • 11
  • 56
  • 86