简体   繁体   中英

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.

在此输入图像描述

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, eg "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

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.

Try building and deploying an Xcode app and see what happens.

I believe Xcode will popup a helpful dialog if you need to do something Xcode can't do automatically.

  • First you have to register the UDID of the device in iOS member center and add with the provisioning profile and install the provisioning profile

  • In versions of Xcode prior to Xcode 6, you can connect the device to your computer over USB, open Xcode -> Organizer and select Use for Development .

  • Use for Development was removed from Xcode in Xcode 6 and later. It is no longer possible to do this for devices using Xcode 6 or later, even with the Devices page

  • Try going to Window->Devices . You should see your attached device in the list so right click on the device and select Show Provisioning Profiles .It will show a window where you can add your profile.

After that you will be able to install your app in that device.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM