{"id":250,"date":"2009-12-29T01:43:02","date_gmt":"2009-12-29T07:43:02","guid":{"rendered":"http:\/\/www.philhassey.com\/blog\/?p=250"},"modified":"2010-01-28T15:49:09","modified_gmt":"2010-01-28T21:49:09","slug":"how-to-run-your-xcode-universal-binary-under-rosetta-on-an-intel-mac","status":"publish","type":"post","link":"https:\/\/www.philhassey.com\/blog\/2009\/12\/29\/how-to-run-your-xcode-universal-binary-under-rosetta-on-an-intel-mac\/","title":{"rendered":"How to run your Xcode universal binary under Rosetta on an Intel Mac"},"content":{"rendered":"<p>Here&#8217;s the trick.  First, build your universal binary, let&#8217;s say under Debug mode.  Then from a terminal &#8230;<\/p>\n<pre>cd build\/Debug\r\n\/usr\/bin\/arch -arch ppc MyApp.app\/Contents\/MacOS\/MyApp<\/pre>\n<p>This will launch your app using the Rosetta PPC emulator.  This way you can test your Universal binaries from an i386 system \ud83d\ude42<\/p>\n<p>I&#8217;m doing it this way, because for some reason the &#8216;Right Click on Your App &gt; Get Info &gt; General &gt; Open using Rosetta&#8217; checkbox is grayed out.  Oh well!<\/p>\n<p>-Phil<\/p>\n<p>P.S. Another technique is to go into Project &gt; Edit Project Settings &gt; Build &gt; check &#8216;Build Active Architecture Only&#8217; .. Then you can change your active Arch to PPC and the build will only include PPC and will run. \u00a0Just be sure to uncheck the box before you send a build to your users.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s the trick. First, build your universal binary, let&#8217;s say under Debug mode. Then from a terminal &#8230; cd build\/Debug \/usr\/bin\/arch -arch ppc MyApp.app\/Contents\/MacOS\/MyApp This will launch your app using the Rosetta PPC emulator. This way you can test your Universal binaries from an i386 system \ud83d\ude42 I&#8217;m doing it this way, because for some [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-250","post","type-post","status-publish","format-standard","hentry","category-development"],"_links":{"self":[{"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/posts\/250","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/comments?post=250"}],"version-history":[{"count":3,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/posts\/250\/revisions"}],"predecessor-version":[{"id":286,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/posts\/250\/revisions\/286"}],"wp:attachment":[{"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/media?parent=250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/categories?post=250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/tags?post=250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}