155

I am having some problem in installing my app on the iphone as I am constantly getting the following error message

The service is invalid

Please check your setup and try again

(0XE8000022)

It was running perfectly well till yesterday but since yesterday I am having this problem.

icodebuster
  • 8,890
  • 7
  • 62
  • 65
Atulkumar V. Jain
  • 5,102
  • 9
  • 44
  • 61
  • 11
    I have solved the problem... Only needed to restart the iphone – Atulkumar V. Jain Jan 29 '10 at 06:50
  • Restarting the iPhone worked for me too. "Clean All Targets" and restarting Xcode didn't work. – noodl_es Jan 31 '10 at 12:36
  • Don't assume its the device your working with. Unplug all devices, then plug in one by one to determine which one it is (restart Xcode each time) or restart all connected devices. I had an iPad and iPhone plugged in, was using the iPhone, but it was my iPad I had plugged in to charge. – Mark Dec 27 '11 at 02:43
  • @KarSho I have already solved this problem way back in 2010 when I faced this issue. You can check my answer for the same – Atulkumar V. Jain Dec 12 '16 at 07:09

13 Answers13

147

Xcode and the GDB connection is quite temperamental. The device and your Mac can become unsynchronised with each other. My checklist for this sort of thing:

  1. Restart Xcode.
  2. Delete the .app from your iOS device, do a Clean then Rebuild.
  3. Disconnect, reconnect device.
  4. Restart iOS device (90% of the time it fixes things)
  5. If all else fails, restart your Mac (unlikely but it did fix an issue once for me).
Brock Woolf
  • 46,656
  • 50
  • 121
  • 144
99

I have solved the problem... Only needed to restart the iphone...

Restarting the Xcode wont work in this case. So just restart your iPhone and everything will be fine.

EDIT:

If you have an iPhone 5 running iOS 6.0 and have installed the "iOS Updater" app, you will also have this message.

Finishing the update process to iOS 6.0.1 will resolve the problem.

Atulkumar V. Jain
  • 5,102
  • 9
  • 44
  • 61
  • 28
    I believe Arenim answered this question several days before you. You should mark his answer as the official and not add another answer saying that his suggestion worked. Marking an answer is enough to tell people what solved your problem. – karlphillip Jan 05 '11 at 15:48
  • 1
    Agree with the above comment. Please select the answer given as the correct one. – memmons Nov 12 '12 at 22:20
  • Restarting won't fix it. @Brock Woolf gave perfect answer. All those steps are necessary. – Vijay Kumar Kanta Apr 10 '19 at 12:24
  • It's strange but it's working. Any specific reason? – Paresh Thakor Dec 30 '19 at 11:58
11

If you have an iPhone 5 running iOS 6.0 and have installed the "iOS Updater" app, you will also have this message.

Finishing the update process to iOS 6.0.1 will resolve the problem.

j0ris
  • 171
  • 2
  • 8
  • 1
    Although this problem can occur for other reasons, being halfway through the iOS Updater app install is definitely one of them. – memmons Nov 08 '12 at 14:54
4

It can be a couple of things, the first and inmediate thing I'd check is to see if your IPhone is currently Downloading or "Preparing Update..." whilst this is running you generally get the "Device is invalid (0xe8000084)" / Error MT1006.

This i found to be the most common thing. so try this first.

And if that fails: Restart your IPhone, and then if that fails restart your Mac/Xcode and do a clean then Rebuild and deploy..

Hope this helps

Egli Becerra
  • 961
  • 1
  • 13
  • 25
4

This error also happens if the iPhone provisioning profile has expired.

Freeman
  • 5,810
  • 3
  • 47
  • 48
3

This error happens when you try to debug an application in your IPod/IPhone and the device is code-locked or executing another application.

Make sure you can see the menu with all the app icons on the device and try to run again.

Regards

Carlos
  • 2,883
  • 2
  • 18
  • 19
3

If nothing works then check if your device os is compatible with your Xcode version.

Eric Aya
  • 69,473
  • 35
  • 181
  • 253
Aklesh Rathaur
  • 1,837
  • 18
  • 19
3

I confirm that restarting your device solves the issue. But if your device is jailbroken with a Semi-tethered jailbreak you will loose it after a reboot.

To prevent this, do a ldrestart(soft reboot).

In order to perform it, download a terminal application from Cydia, then type:

su

Input your password when asked, the default password is "alpine".

Then type

ldrestart
metronic
  • 455
  • 5
  • 15
2

Unplugged the device and connected again with Mac solved my issue. Did not need to clean, build or restart XCode. XCode 10.2.1, iOS 12.3.1 version.

i.AsifNoor
  • 587
  • 5
  • 14
1

SnowLeopard w/ XCode 4.2's Instruments will give this message on newer iOSes.

pTymN
  • 53
  • 4
1

First remove the app from iPhone before building the app from xcode. Then Clean All Targets from xcode and then try to build your app again.

Atulkumar V. Jain
  • 5,102
  • 9
  • 44
  • 61
Ruchir Shah
  • 898
  • 3
  • 13
  • 31
1

I had luck by disconnecting my iPhone from my mac, and then Analyzing (Shift + Command + B or Product -> Analyze).

After that I plugged my iPhone back in and did a clean (Command + k) and then run. Worked!

Jon Vogel
  • 5,244
  • 1
  • 39
  • 54
1

Simply restarting the device (as the alert suggests) fixed the problem, at least on iOS 12.

Daniel Danielecki
  • 8,508
  • 6
  • 68
  • 94