Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone running iOS 8.3 shows up as ineligible in Xcode 6.2

Tags:

xcode

ios

iphone

Current setup:

  • iPhone 6+ updated to iOS 8.2
  • iMac running Mavericks (10.9) with Xcode 6.2
  • Deployment target set to 8.2

When I connect the iPhone, it shows up as ineligible.

Also, it shows this warning:

enter image description here

I've tried:

  • to reboot both iPhone & iMac -> Not solved
  • to manually select iPhone from: Product > Destination > Ineligible Devices

Many other answers in this question, but all for problems using Xcode 6.3, not 6.2.

I know I can solve this:

  • upgrading to Yosemite & installing Xcode 6.3
  • using an iPhone running 8.2

But is there any possibility that mounting the Xcode 6.3 DMG and copying some libs / symlinking something it will work?

like image 225
Diego Freniche Avatar asked Apr 10 '15 08:04

Diego Freniche


2 Answers

Just copy the folder DeviceSupport/8.3 from Xcode 6.3 to Xcode 6.2.

Details:

  • Download Xcode 6.2 and 6.3, install as /Applications/Xcode_6.2.app and /Applications/Xcode_6.3.app (or similar names)
  • In both installations, there's a folder Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
  • In Xcode 6.2, this folder contains packages for iOS 8.2 and many lower versions, but not for 8.3.
  • In Xcode 6.3, this folder also contains a package for iOS 8.3. In my case, the folder is called 8.3 (12F69)
  • Copy the iOS 8.3 package from Xcode 6.3 to Xcode 6.2 (this command is one line, of course):

cp -r '/Applications/Xcode_6.3.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/8.3 (12F69)' '/Applications/Xcode_6.2.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport'

  • Or even better, create a link:

ln -s '/Applications/Xcode_6.3.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/8.3 (12F69)' '/Applications/Xcode_6.2.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport'

  • Now restart Xcode 6.2 and connect your device through USB. Xcode should allow you to test apps on it.

Diego Freniche's solution (copying the whole iPhoneOS.platform folder) was a great help, but when I ran my app from Xcode 6.2, it looked slightly different than it did when I deployed an ipa file on the phone (buttons in wrong positions, status bar display wrong). I guess Xcode got confused and built the app as if it was targeted at a different iOS version.

With this solution (only copy one folder in DeviceSupport), it looks like the app works exactly as it is supposed to. I'll let you know if I encounter problems, but I haven't seen any so far.

like image 74
jcsahnwaldt Reinstate Monica Avatar answered Nov 20 '22 02:11

jcsahnwaldt Reinstate Monica


A little progress, but this is a WIP.

Looks like in Yosemite Xcode 6.2 works correctly with 8.3 devices. Need to test on Mavericks

Testing with Xcode 6.2 in Yosemite (need to test also in Mavericks, any feedback would be appreciated)

  • Go to your Xcode 6.2 folder and rename

/Applications/Xcode-6.2 copia.app/Contents/Developer/Platforms/iPhoneOS.platform

into

/Applications/Xcode-6.2 copia.app/Contents/Developer/Platforms/iPhoneOS.platform.old

  • Mount your Xcode 6.3 DMG, install it
  • Copy from Xcode 6.3 this folder:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform

inside your Xcode 6.2 folder.

  • you'll probably find an error telling you rootuser does not own the simulator / OS Platform folder. To solve that just open Terminal, then:

    $ cd /Applications/Xcode6.2.app/Contents/Developer/Platforms

    $ sudo chown -R root iPhoneSimulator.platform/

    $ sudo chown -R root iPhoneOS.platform/

  • now you can run your app inside your iOS 8.3 device from Xcode 6.2 but you have no simulators in the target tdestination menu

UPDATE: I'm getting weird errors while ibtool tries to compile the storyboards:

/Users/dfreniche/Desktop/Test/Test/Base.lproj/Main.storyboard: The operation couldn’t be completed. (com.apple.InterfaceBuilder error 2001.)

So finally give up and update to Yosemite. If there's any new info on this, please share.

like image 10
Diego Freniche Avatar answered Nov 20 '22 03:11

Diego Freniche