Programming/Non programming

Thursday, April 25, 2013

Make iOS 6.x devices to detect in Xcode 4.x in Snow Leopard

Hi,

The issue basically have been found is, we can't get the iPhone or iPad 6.x devices connected actively in Xcode 4.x versions in Snow Leopard 10.6.x version Mac's. These version devices won't be able to get detected in Xcode 4.x versions in Snow Leopard.

The actual solution would be, we have to download respective Xcode 4.5.x versions and install on the Mac and get these devices detected.

To reduce all these procedures every time to download and install, the below approach would be easier and way of hack to get such version iOS 6.x devices can be detected in Xcode older 4.x version or older.

Shortcut procedure would be,

1. Go to any machine where Xcode 4.5 or 4.6 installed
    (or)
    Download Xcode 4.5 ot 4.6 version setup (.DMG) from Downloads for Apple Developers.

2. If you find .dmg setup, run it, it will be open Xcode.app in an view

3. Right click this xcode.app and choose 'Show Package Contents'

4. Go to this path and copy
     Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/6.x (9B176)

[Here, it is mentioned '/DeviceSupport/6.x', you can choose whichever 6.x version you want]

5. Place (paste) these files in this path:  /Developer/Platforms/iPhoneOS.platform/DeviceSupport
 on your machine directry.

6.  Also, copy 'version.plist' from "Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform"  to your Snow Leopard machine directory in the same path.

7. Also, copy 6.x SDK folder and paste it in current system same SDK path. For ex: Copy sdk path from,  Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk and paste in your machine in the same path

8. Re-start Xcode on your Snow Leopard machine

9. Connect your iOS 6.x version device

You can see Xcode lower version 4.2 like that, will be able to detect iOS 6.x device and show in your Xcode. Let me know if any issues, i'll sort it out!

Cheers!

Prabakar.


Thursday, March 21, 2013

Solve Xcode iOS Project Set as "My Mac 64-bit"

Issue:

Sometime we may observe that the iOS based Xcode project is shown with "My Mac 64-bit"/"My Mac 32-bit" Mac OS X Destination in Xcode instead of "iPhone/iPad Simulator/Device" Settings.

Solution 1:

1. Right click your particular Xcode project file, "myproject.xcodeproj" and choose "Show Package Contents"
2. Delete all the files from "xcuserdata"

Solution 2:
Sometimes changing the target to iPhone/iPad device solves this issue.

You are ready to get "iPhone/iPad Simulator/Device" Destination Settings in Xcode project.

Solution 3:
You may have selected wrong deployment device target in the build settings. So, make sure to select the right device deployment target.

Cheers!

-Prabakar.M.P.