universal-binary

Create a "Universal Binary" from two apps?

Hello, 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 able to find an answer so it may not be possible. Due to reasons I won't go into...

Loading a universal binary with Java

Hi Everyone, I have an Java applet that loads native code through JNI. Everything worked just fine until I made the upgrade to Snow Leopard, and then Safari decided to be dumb. It turns out Safari will only load 64 bit binaries when in 64 bit mode. (You can put it in 32 bit mode, but that is not an option.) I changed my build system (g++...

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 run the example code provided with the Python interface I get an error complaining about...

Boost: MacOSX binaries for Boost

Are there any MacOSX universal binaries (at least i386/ppc for >=macosx10.3) for Boost? ...

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 Binary format, using my MAC with Intel-CPU. And this program is expected to run on both Intel...

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

Hi folks, 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 the intention of using the arch command to select between the architectures. ...

How to build C++ for OSX 10.4, 10.5 and 10.6 in Xcode with dynamic libraries

Hello, I'm building a C++ command line tool in Xcode. The project contains dylibs for curl, boost and log4cpp. Ideally id like to build an i386 universal binary that supports 10.4 through to 10.6. I cant seem to get Xcode to compile, when I target 10.4 it says things like no such file or directory. When i target 10.6 x_64 it builds ...

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

Hi, 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 phase, during the CreateUniversalBinary step. For each .o file of the libraries tha...

Turning Separate iPad/iPhone Targets into Universal App

I, when I got my hands on the iPad SDK Beta, thought the universal binary would be to much work, so i opted for the separate targets. I realized halfway through making the iPad portion of my app, that making a universal application would be easy as pie. The issue is, I can't use Apple's option to convert my iPhone Target to Universal. Th...

iPhone SDK 3.2 Universal App issue with .xib files

Hello! So I am finding this process of universalizing my iPhone app to be a big headache! Am I alone in this? I sure hope not. Anyway, my question is regarding the .xib files for my universal application. I had my iPhone OS 3.1 running app all ready to make the universal switch. I went up to Project/Upgrade Current Target for iPad/Univ...

How to create an Universal Binary for iTunes Connect Distribution?

I created an app that was rejected because Apple say that my App was not showing the correct iPad window and it was showing the same iPhone screen but top left aligned. Running on simulator, I get my App to show exactly what it should, a big iPad View. my app as Apple referees that is showing on device: my app running the simulator ...

Submit an universal app as iPad only app to Apple

Hello, 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, etc.?) ...

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 only contains arm and i386 architectures (and I am not sure to what arm refers: is v6 or v...

compile Boost as static Universal binary lib

I want to have a static Universal binary lib of Boost. (Preferable the latest stable version, that is 1.43.0, or newer.) I found many Google hits with similar problems and possible solutions. However, most of them seems outdated. Also none of them really worked. Right now, I am trying sudo ./bjam --toolset=darwin --link=static --threa...

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 <iostream> using namespace std; int main() { cout << "Hello" << endl; } This works fine: % g++ test.cpp -arch i386 -arch ppc -arch x86_64 -o test % file test test: Mach-O universal binary...

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 Universal binary thing really works: 1) When I want to submit an app binary for review, wh...

How to port existing iPhone application to iPad

Hi all, 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 appreciated. Thanks in advance :) ...

iPhone universal app. MoviePlayer.framwork problem.

I have application based on 3.0 iPhone OS SDK One of tasks is playing video (I use MPMoviePlayerController for this task) Now I try to make universal app working on both 3.0 and 3.2 OS I did all steps described in apple documentation: Upgrade Current Target for iPad; make run-time checking for symbols using [[UIDevice currentDevice] res...

How to keep iPhone app out of iPad store?

I have an iPhone app that I have started to turn into a universal app, however the process is not complete and I want to release an update to the iPhone version. I know that you can specify device capabilities in the Info.plist file to restrict your app to certain devices, but how can I do this to prevent the unfinished universal versio...

iPhone SDK - How is data shared in a universal app

Stack overflow I want to make a universal version of my app available, but I am wondering how is data managed between the iPad and the iPhone versions? -Are they completely independent? or if I have a plist in the iPad app, does it also appear in the iPhone app. If so, is there any syncing etc etc. I have a few months experience with ...