Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 8, How to use device for development?

I have a new iPad Retina and I'd like to use it for development with Xamarin Studio and XCode 6. In the past, with XCode 5 you simply connect the device and click the button that says "Use for Development". But XCode 6 doesn't have that button anymore and when I try to build my application to the device in Xamarin Studio i get the error message saying "Could not install the application '/Users/jzacherl/Projects/CyCom/CyCom/CyCom/bin/iPhone/Debug/CyCom.app' on the device iPad: Your application failed code-signing checks. Check your certificates, provisioning profiles, and bundle ids. Probably your device is not part of the selected provisioning profile (error: 0xe8008015). ".

My application should support both iOS 7 and iOS 8. I've tried changing target deployment to and from 7 & 8 and I've tried restarting my mac/device and build/cleaning my project.

enter image description here

like image 241
LampShade Avatar asked Sep 23 '14 15:09

LampShade


People also ask

Does iPhone 8 have developer options?

Developer Mode Options also gives you the ability to control additional aspects changes to the settings, or enable USB debugging for advanced functions. Hold the “Home” + “Power” buttons on your iPhone 8 at the same time for 10 seconds.

Do you need an Apple device to develop for iOS?

Developer RequirementsTo develop iOS apps, you need a Mac computer running the latest version of Xcode. Xcode is Apple's IDE (Integrated Development Environment) for both Mac and iOS apps. Xcode is the graphical interface you'll use to write iOS apps.


2 Answers

Despite the hints here and elsewhere, it took me awhile to find the exact solution. So, for others who are new to Xcode:

The navbar at the top of the main Xcode 6 window has a triangle run/play button, a square stop button, the app's name, then a target name, e.g. "iPhone 6" for one of the simulator options. The target name is actually a drop-down menu! That is where to select your actual device.

Now click the triangle button to build & run. Likely result: "No non-expired provisioning profiles are installed" with a button to "Fix Issue". Click that, wait a bit ... done!

Hat tip (and screenshots): http://www.bignerdranch.com/we-teach/how-to-prepare/ios-device-provisioning/#loc-provisioning-easy

Cross reference to a later question with a more descriptive title: There is NO Use for Development in Xcode's Organizer window

like image 122
Scott Lawton Avatar answered Sep 18 '22 18:09

Scott Lawton


You can register a device with your Developer ID at:

https://developer.apple.com/account/ios/device/deviceList.action

(You will have to be logged into the developer site to do so.)

After that, everything should work fine. You can get your device's UDID from iTunes.

like image 26
Ideasthete Avatar answered Sep 17 '22 18:09

Ideasthete