Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>To get Xcode 4.2 on Snow Leopard to run code on a device running 5.1 you can do this:</p> <p>If you have another Mac running Lion + XCode 4.3.1 you can copy the files from:</p> <pre><code>/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176) </code></pre> <p>to the equivalent place on your SL Mac: probably</p> <pre><code>/Developer/Platforms/iPhoneOS.platform/DeviceSupport </code></pre> <p>and also copy <code>version.plist</code> from the Lion machine in the <code>iPhoneOS.platform</code> folder to the SL machine.</p> <p>Re-start XCode on the SL machine and re-connect the devices and it seems happy enough.</p> <p>[Edit: If you don't have access to a machine with Lion+4.3.1 you can get the files out of the 4.3.1 DMG which can be downloaded from Apple here: <a href="http://adcdownload.apple.com/Developer_Tools/xcode_4.3.1_for_lion/xcode_4.3.1_for_lion.dmg" rel="noreferrer">http://adcdownload.apple.com/Developer_Tools/xcode_4.3.1_for_lion/xcode_4.3.1_for_lion.dmg</a></p> <p>then mount the DMG, Show Package Contents on the XCode icon and drill down to </p> <pre><code>/Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport to </code></pre> <p>find the files mentioned above.]</p> <p>In steps:</p> <ol> <li>Stop XCode on SL machine</li> <li>Disconnect your iphone</li> <li>Mount the Xcode 4.3.1 image (.dmg that you can download from Apple dev site)</li> <li>Show package contentes of the Xcode 4.3.1</li> <li>copy <code>XCode/Xcode/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)</code> to <code>&lt;HD&gt;/Developer/Platforms/iPhoneOS.platform/DeviceSupport</code></li> <li>copy <code>XCode/Xcode/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/version.plist</code> to <code>&lt;HD&gt;/Developer/Platforms/iPhoneOS.platform/</code></li> <li>Start Xcode</li> <li>connect your iphone and it should work.</li> </ol>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload