Error : The service is invalid

2019-01-13 02:19发布

问题:

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.

回答1:

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).


回答2:

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.



回答3:

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.



回答4:

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



回答5:

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



回答6:

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.



回答7:

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



回答8:

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!



回答9:

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



回答10:

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