{"id":4890,"date":"2014-03-30T16:27:22","date_gmt":"2014-03-30T16:27:22","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/problem-about-universal-binary-collection-of-common-programming-errors\/"},"modified":"2014-03-30T16:27:22","modified_gmt":"2014-03-30T16:27:22","slug":"problem-about-universal-binary-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/problem-about-universal-binary-collection-of-common-programming-errors\/","title":{"rendered":"problem about universal-binary-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/aNqxd.jpg?s=32&amp;g=1\" \/><br \/>\nboliva<br \/>\nobjective-c xcode universal-binary<br \/>\nI&#8217;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<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/670f2cbd58acf41a63ccca5dd6f38a8a?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nKnodel<br \/>\niphone ipad universal-binary<br \/>\nI have got an iPhone and an iPad app &#8211; 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!<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/874c1b0de39f3a9937e2744ad2431bf3?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nvodkhang<br \/>\niphone ios4 universal-binary<br \/>\nI 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&#8217;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<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/3f3fb8801cf5cb79c09c5fc46dfb2d8b?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAndrew Jefferson<br \/>\nosx universal-binary byte-order<br \/>\nHow does a C program determine, at RUN time (not compile time), whether it&#8217;s running on Little-Endian or Big-Endian CPU?The reason why it must be &#8220;run-time&#8221; check, not &#8220;complie-time&#8221;, is because I&#8217;m building the program in MAC OSX&#8217;s Universal Binary format, using my MAC with Intel-CPU. And this program is expected to run on both Intel and Power-PC CPU&#8217;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<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/84559e48485dff51efec45c763f760e4?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMoshe<br \/>\niphone ipad delegates universal-binary<br \/>\nHow do I access the shared delegate or the device specific &#8220;delegate&#8221; 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?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/3696fede5f92c721a9733d63bed9efde?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nEngin Kurutepe<br \/>\nios iphone-sdk-3.0 uigesturerecognizer universal-binary<br \/>\nI 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(@&#8221;UISwipeGestureRecognizer&#8221;);if (gestureRecognizer != nil) {UISwipeGestureRecognizer * leftSwipeRecognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(didSwipeLeft:)];leftSwipeRecognizer.direction = UISwipeGestureRecognizerDire<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/21704f466a6471215318482292a41138?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nRyan Poolos<br \/>\nxcode ipad ios4 universal-binary<br \/>\nwe have an iPad app crashing without. However it is a universal app using the same Views as an iPhone app and the iPhone isn&#8217;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&#8217;t understand. Please help if you can! Thanks!Incident Identifier:E0C2B9A1-7BAB-4D51-998A-5E46F7A210C2CrashReporter Key:7a38ec6be758028f72704776762ed92147621215Hardware M<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/1e139769df8110d96c6ea008772dcc2e?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMarkus<br \/>\npython architecture osx-snow-leopard scipy universal-binary<br \/>\nI can&#8217;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&#8217;s article,<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/b5fb4e4ab18d63509bde67bf12ddb1f1?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJulie<br \/>\niphone universal-binary static-libraries<br \/>\nHi I&#8217;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&#8217;ll work for ios3 projects but not ios4 and vice versa. The errors I get are:Undefined symbols:&#8221;.objc_class_name_UIImage&#8221;, referenced from:literal-pointer@_OBJC@_cls_refs@UIImage in Test3-Release.a(TestViewController.o)&#8221;.objc_class_name_NSNotificationCenter&#8221;, referenced from:literal-pointer@_OBJC@_cls_refs@NSNotificationCenter in Test3-Release.a(T<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>boliva objective-c xcode universal-binary I&#8217;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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4890","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4890","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4890"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4890\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4890"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4890"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4890"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}