problem about universal-binary-Collection of common programming errors

boliva
objective-c xcode universal-binary
I’m writing an Universal App that will run natively on both iPad and iPhone. I also need it to be targeted to older devices (those that cannot run 4.0) so 3.1 is a must.I have already set up the Base SDK to the latest available version (4.2), and the Deployment Target to 3.1. I am making lots of runtime checks in order to call the corresponding methods only on the right device/version.One of the things I am making use of in the iPad is an UISplitViewController. When assigning the splitViewContro
Knodel
iphone ipad universal-binary
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!
vodkhang
iphone ios4 universal-binary
I am building a universal for iphone/ipad and I already set the deployment target to 3.0. It can run well on iPad 3.2 and iphone 4.1. However, when I build and run it on my iPod 3.1.3, the runtime automatically picks the iPad code path and tell me that it cannot find UIPopOverController and UIMenuItem. In my iPhone path code, I don’t use anything like that.It builds successfully and only when trying to run, it says error and cannot find:dyld: Symbol not found: _OBJC_CLASS_$_UIPopoverControllerRe
Andrew Jefferson
osx universal-binary byte-order
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 and Power-PC CPU’s. ie, through the Universal Binary format on MAC, I wanna build a program using Intel-CPU and run it under PPC CPU.The logic in my program that
Moshe
iphone ipad delegates universal-binary
How do I access the shared delegate or the device specific “delegate” in a Universal App? I want to store properties on the Shared delegate and put basic logic there, but if I want to do, say iPhone specific stuff on the iPhone delegate, I would assume that I need to access the two delegates separately. Is this correct? How do I access these delegates in code?
Engin Kurutepe
ios iphone-sdk-3.0 uigesturerecognizer universal-binary
I am working on making an existing iPhone/iPad project backwards compatible down to iPhoneOS 3.0.My current test device is an iPod Touch with 3.1.3 on it.The following bit of code is causing problems:Class gestureRecognizer = NSClassFromString(@”UISwipeGestureRecognizer”);if (gestureRecognizer != nil) {UISwipeGestureRecognizer * leftSwipeRecognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(didSwipeLeft:)];leftSwipeRecognizer.direction = UISwipeGestureRecognizerDire
Ryan Poolos
xcode ipad ios4 universal-binary
we have an iPad app crashing without. However it is a universal app using the same Views as an iPhone app and the iPhone isn’t crashing. The iPad crashes randomly in the sim and the actual device. And the Console provides ZERO reason or even that it has stopped working. Its just blank. So all i have is a crash report I don’t understand. Please help if you can! Thanks!Incident Identifier:E0C2B9A1-7BAB-4D51-998A-5E46F7A210C2CrashReporter Key:7a38ec6be758028f72704776762ed92147621215Hardware M
Markus
python architecture osx-snow-leopard scipy universal-binary
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 setupWith 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. (I managed to make some universal binaries of a few libraries I wanted using lipo.) That all works. I then installed scipy according to the instructions on hyperjeff’s article,
Julie
iphone universal-binary static-libraries
Hi I’m trying to create a static library that can added to any ios project, but I can only get it to work such that if I build the library in ios3, it’ll work for ios3 projects but not ios4 and vice versa. The errors I get are:Undefined symbols:”.objc_class_name_UIImage”, referenced from:literal-pointer@_OBJC@_cls_refs@UIImage in Test3-Release.a(TestViewController.o)”.objc_class_name_NSNotificationCenter”, referenced from:literal-pointer@_OBJC@_cls_refs@NSNotificationCenter in Test3-Release.a(T
Web site is in building