Xcode 6 GM with iPhone 5s (iOS 8 GM) - 0xE8000070 - ios8

I'm using Xcode 6 GM Seed (build 6A313) with iPhone 5s (Model A1530, iOS 8 build 12A365). I connect the iPhone via USB lightning cable. But in Xcode, it shows as: "iPhone 5s (unavailable)".
Further investigation: I open Xcode menu > Window > Devices, it shows the following error:
An error was encountered while enabling development on this device.
Please try rebooting and reconnecting the device. (0xE8000070)
I reboot and reconnect my iPhone 5s, the same error is shown. This device was used for development in previous Xcode 5, and shows no problem at all.
What should I do? I want to try my apps in iOS 8 device.

If you are using Xcode-beta 7.1 and want to run app on iOS 9.0 like me you will also get the same error. The solution is:
Use corresponding iOS 9.1-beta.
Use Xcode 7.0
Run on simulator.

The problem is resolved after I updated iTunes to version 11.4 via Software Updates.
The Xcode error message is misleading.

In my case, during 2 years developing, my phone has several test app with name (null). you can only see a default Xcode app icon in app list in Setting. I had tried updating Xcode, but not work. finally I delete these null name apps, then Xcode - device can connect it without warning sign. Run test app won't get the error in question. only my case. share it in case you encounter in future.

Related

Apple TV wireless debugging Unable to connect

I am trying to pair my apple TV (4th Gen) running tvOS 11.1 with Xcode 9. After entering the pairing code, Xcode tries to setup the Apple TV for wireless debugging and enabling development mode, but fails with the error
"An error was encountered while attempting to communicate with this device. (End of file.)" See below image
Note that I was able to pair with my apple TV successfully and run an app on it couple of weeks ago using Xcode 9 wireless debugging feature. Wireless debugging works fine for iphone and iPad. Now, I seem to be having problem with my Apple TV.
UPDATE: Now I have tried even resetting my AppleTV, still same issue.
Xcode 9 Devices and Simulators Window
I have tried restarting my apple TV and tried reconnecting it with Xcode multiple times, but I get the same error always.
Do I need to reset my apple TV or is there any other work around available to fix this issue ?
As it turned out, I had to use Xcode beta version, as I was installing app on the beta tvOS version. I didn't notice that Apple TV was updated to tvOS 11.1 which is in beta at the moment.
Solution: Using Xcode 9.1 (beta) to install the app on Apple TV 4 worked perfectly.

how to connect applewatch os1 with xcode 7.1 simulator

I want to run my apple watchkit(OS1) app on a watchsimulator, but i could not connect my app simulator becuase i could not find watch option on the external diplay. my app ios is 9.1 and my xcode is 7.1.1. onother issue here is i can not see applewatch OS1 as an option in xcode 7.1 when i try to add new simulator device.
my question is:
1. why cann't i see the the applewatch on external display? (possible reason)
2. Is it possible to run Applewatch OS 1 using xcode 7.1?
here is thedisplay

Xcode 6.2 not showing simulator devices in run destinations menu

I have created a new iOS project; by default the deployment target is iOS 8.2, but I don't have the option to use the simulator. I went to the Xcode preferences, and I don't have the option to download the iOS 8.2 simulator. I'm using Xcode Version 6.2 (6C131e).
If I tried to open the simulator via developer tools. I get this error:
I rename Xcode.app and rebooted my mac but didn't help.
I ran "xcrun simctl list" and I got this list:
== Device Types ==
iPhone 4s (com.apple.CoreSimulator.SimDeviceType.iPhone-4s)
iPhone 5 (com.apple.CoreSimulator.SimDeviceType.iPhone-5)
iPhone 5s (com.apple.CoreSimulator.SimDeviceType.iPhone-5s)
iPhone 6 Plus (com.apple.CoreSimulator.SimDeviceType.iPhone-6-Plus)
iPhone 6 (com.apple.CoreSimulator.SimDeviceType.iPhone-6)
iPad 2 (com.apple.CoreSimulator.SimDeviceType.iPad-2)
iPad Retina (com.apple.CoreSimulator.SimDeviceType.iPad-Retina)
iPad Air (com.apple.CoreSimulator.SimDeviceType.iPad-Air)
Resizable iPhone (com.apple.CoreSimulator.SimDeviceType.Resizable-iPhone)
Resizable iPad (com.apple.CoreSimulator.SimDeviceType.Resizable-iPad)
== Runtimes ==
iOS 8.1 (8.1 - 12B411) (com.apple.CoreSimulator.SimRuntime.iOS-8-1)
iOS 8.2 (8.2 - 12D508) (com.apple.CoreSimulator.SimRuntime.iOS-8-2)
== Devices ==
-- iOS 8.1 --
-- iOS 8.2 --
Any of you know why I don't have the option to run my project in the simulator?
You are likely experiencing the issue mentioned in the release notes:
Renaming Xcode.app after running any of the Xcode tools in that bundle
may cause iOS simulator to be no longer be available. Either rename
Xcode.app back to what it was when first launched or restart your Mac.
(16646772)
Additionally, it may be the case that you really don't have any devices configured (did you delete them?). Look at the output of xcrun simctl list and try creating devices using xcrun simctl create. Also take a look in ~/Library/Developer/CoreSimulator/Devices. Is there anything there?

"Installation of apps is prohibited by a policy on the device." error when running an Xcode 6 app on an iPad (iOS 8)

I've been developing an app on my iPhone recently and today I upgraded our iPad to iOS 8 so I could test the app on it. Xcode gave me the following error, though:
Any ideas what could be causing this error?
Try checking restrictions in your device Settings.
Recently in XCode 10.1, while attempting to run a project on a device, was presented with this same message.
In iOS 12.1.3, the device setting to allow installation of the app, is:
Settings->Screen Time->Content and Privacy Restrictions->iTunes and App Store Purchases->Installing Apps-->Allow

Can the iOS 7 Simulator work with Xcode 4.6.3?

Tried copying over the iOS 7.0 Simulator to the Xcode 4.6.3 bundle in the correct location. It does show up in the Device List, and the simulator starts, but then pinwheels.
I had to hard stop the simulator and Xcode. I'm mainly just curious, but wanted to know if this should work or can work.
Here is how to run the IOS 7.0 Simulator under the Xcode 4.6.3 version.
0) Make a backup point for the Mac
1) Download and install the Xcode 5 Beta X
2) Make sure that the IOS 7 simulator is working for Xcode 5 with IOS 7 Simulator
3) Stop all simulators and Xcodes
3.5) Make duplicate of the current Xcode 4 and do 4) to the duplicate app bundle
4) Copy
/Applications/Xcode5-DP3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/
to
/Applications/Xcode copy.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/
5) Start the proper simulator in 7.0 mode using Xcode 5 and a sample app, etc.
6) Stop Xcode 5
7) Start Xcode 4 COPY and choose the same 7.0 simulator and run your app (Xcode 4 is not "smart" enough to start the 7.0 simulator).
8) Should show up in the 7.0 simulator
Simple!
Open the iOS7 simulator from the XCode 5 Pacakage folder
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications
Keep the iOS7 Simulator open. Now Open your XCode 4.6 build your project with Simulator selected. The app will be now opened in the iOS7 Simulator.
If the app quits or not running, Try Reseting the Simulator contents or Clean the project and keep trying. It works for me.
Nope. iOS7 only works with Xcode 5 DP.
Here is another way to run the IOS 7.0 Simulator under the Xcode 4.6.3 version, after copyint it to the right location described above:
Start XCode 5 running a sample app within the iOS simulator
Change settings of the simulator to keep it in dock
Quit XCode 5
Change requested hardware in iOS simulator which is still running
Start XCode 4.6.3 running your app within the iOS simulator after selecting the hardware set within the simulator - they must be equal.
That´s it !
Furtheron you only need to start the simulator first, set the requested hardware, start XCode 4.6.3 with equal hardware set in the simulator and RUN.
Simpler answer to run a Xcode 4 project on iOS7:
Backup your 4.6 project. (either physical backup or commit to github or svn)
Open your project in Xcode 5 DP
Xcode 5 will make changes to the files, but that's OK because you made a backup
Run the app with Xcode5 and iOS7
When you are done, restore your project with the backup you made earlier
???
Profit

Resources