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
1
vote
1 answer

How can I make a universal binary using non-universal libs?

I'm trying to build a universal/fat executable binary and I'm linking against ncurses. I'm using ncurses from homebrew because the built in one doesn't support wide characters. The problem seems to be -L/path/to/arm/libs -L/path/to/intel/libs never…
majinnaibu
  • 2,832
  • 1
  • 18
  • 22
1
vote
0 answers

Switching a live App Store app from Universal to arm7 only

Let's say I have an application in the App Store that has been approved and has been available for sale for some amount of time. The application is a universal (arm6+arm7) binary. Now I want to release a new version, but drop support for arm6…
pjohansson
  • 17,796
  • 3
  • 17
  • 18
1
vote
0 answers

Detect current architecture when cross-compiling Apple Universal Binary with CMake

I want to build a Apple Universal Binary (=an executable that natively runs on Apple Silicon as well as on Intel Macs) with CMake. Therefore, I have enabled the compilation of arm64 and x64 via if (APPLE) # Create Universal Binary …
thomasreiser
  • 180
  • 2
  • 13
1
vote
1 answer

How to understand the comments about fat_arch_64 in 'mach-o/fat.h'

Recently, I'm learning some materials related to Mach-O and noticed the comment When a slice is greater than 4mb or an offset to a slice is greater than 4mb then the 64-bit fat file format is used. in 'mach-o/fat.h' about struct fat_acrh_64 I know…
yuyeqingshan
  • 381
  • 3
  • 13
1
vote
0 answers

CMake-generated Xcode project how to produce universal dSYM

I'm using CMake with Xcode generator to generate Xcode project to build framework for iOS and tvOS (and other platforms too). I'm setting IOS_INSTALL_COMBINED to generate a framework that contains both device and simulator architectures…
Paul
  • 13,042
  • 3
  • 41
  • 59
1
vote
1 answer

Add unique icons or scale icons for ipad version in universal app?

My dilemma - I have a universal app that holds a lot of images and icon (about 1,000). In many cases i use the @2x version as is for the iPad version, in other cases it is to big even for the iPad. I see 2 options: Add a unique images for the ipad…
shannoga
  • 19,649
  • 20
  • 104
  • 169
1
vote
2 answers

trouble building universal binary with autotools

I have a project that I'm building on OS X using autotools. I'd like to build a universal binary, but putting multiple -arch options in OBJCFLAGS conflicts with gcc's -M (which automake uses for dependency tracking). I can see a couple workarounds,…
Kirk Kelsey
  • 4,259
  • 1
  • 23
  • 26
1
vote
3 answers

Update two independent apps to single universal app?

We currently have two independent apps (one iPhone only and one iPad only) and want to migrate to a single universal app. Does anyone know if it is possible to do this without killing off one of the apps? Someting like releasing an update to each…
nomad00
  • 401
  • 3
  • 10
1
vote
1 answer

Is there a general term for "non-universal" iOS binaries?

I'm currently developing both universal and "non-univeral" apps for iOS. As you may know, "universal" apps are those that run on iPhone, iPad, and iPod touch. I'm curious if there's a general term for apps that run on only one type of iOS…
Old McStopher
  • 6,295
  • 10
  • 60
  • 89
1
vote
1 answer

Possible to create universal linux program?

In mac os x, you can combine 32bit, powerpc and 64bit binaries in one executable using "lipo" is something like this possible in linux?
Daniel
  • 3,017
  • 12
  • 44
  • 61
1
vote
1 answer

How to make a Universal Binary out of two separate projects?

I have got an iPhone and an iPad app - both are separate fully working XCode projects. What I want to do is make a universal binary app out of these two. how can I do it? Thank you!
Knodel
  • 4,359
  • 8
  • 42
  • 66
1
vote
0 answers

Building a universal app for iOS 3.1, iOS 3.2 using iOS SDK 4.2

I have a universal app which was originally built for iOS4.2. Since this project does not use many 4.0+ specific APIs, I would like to build this app with deployment target set to 3.1. It gets built with no problems. But when I install and start…
Engin Kurutepe
  • 6,719
  • 3
  • 34
  • 64
1
vote
1 answer

Parsing universal/fat binary files

I'm working on a project to implement a basic nm using memory-mapping mmap. I have been able to parse 64-bit binaries using the code: void handle_64(char *ptr) { int ncmds; struct mach_header_64 *header; …
akinf3mi
  • 13
  • 3
1
vote
2 answers

iPhone - How to use #define in Universal app

I'm creating universal app that runs oniphone and ipad. I'm using #define to create CGRect. And I want to use two different #define - one for iPhone and one for iPad. How can I declare them so that correct one will be picked by universal…
Satyam
  • 15,493
  • 31
  • 131
  • 244
1
vote
2 answers

How to compile LibJpeg in universal binary in Mac OSX 10.4

I want to compile jpeg-8b in universal binary (ppc,i386). It should be supported in 10.4 and later OSs. I could do it in 10.5 and 10.6, but the binary is not compatible with 10.4. Thus I tried to compile it in 10.4, but it fails. This is my code cd…
Dhanaraj
  • 987
  • 1
  • 10
  • 26