objective-c 错误:服务无效
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2160299/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Error : The service is invalid
提问by Atulkumar V. Jain
I am having some problem in installing my app on the iphone as I am constantly getting the following error message
我在 iphone 上安装我的应用程序时遇到一些问题,因为我不断收到以下错误消息
The service is invalid
Please check your setup and try again
(0XE8000022)
服务无效
请检查您的设置并重试
(0XE8000022)
It was running perfectly well till yesterday but since yesterday I am having this problem.
直到昨天它都运行得很好,但从昨天开始我就遇到了这个问题。
采纳答案by Atulkumar V. Jain
I have solved the problem... Only needed to restart the iphone...
我已经解决了问题...只需要重新启动iphone...
Restarting the Xcode wont work in this case. So just restart your iPhone and everything will be fine.
在这种情况下,重新启动 Xcode 将不起作用。所以只需重启你的 iPhone,一切都会好起来的。
EDIT:
编辑:
If you have an iPhone 5 running iOS 6.0 and have installed the "iOS Updater" app, you will also have this message.
如果您有运行 iOS 6.0 的 iPhone 5 并安装了“iOS 更新程序”应用程序,您也会收到此消息。
Finishing the update process to iOS 6.0.1 will resolve the problem.
完成到 iOS 6.0.1 的更新过程将解决问题。
回答by Brock Woolf
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:
Xcode 和 GDB 的连接很有气质。设备和 Mac 可能会彼此不同步。我对这类事情的清单:
- Restart Xcode.
- Delete the .app from your iOS device, do a Clean then Rebuild.
- Disconnect, reconnect device.
- Restart iOS device (90% of the time it fixes things)
- If all else fails, restart your Mac (unlikely but it did fix an issue once for me).
- 重新启动Xcode。
- 从您的 iOS 设备中删除 .app,执行清理然后重建。
- 断开连接,重新连接设备。
- 重新启动 iOS 设备(90% 的时间它会修复问题)
- 如果一切都失败了,请重新启动您的 Mac(不太可能,但它确实为我解决了一次问题)。
回答by j0ris
If you have an iPhone 5 running iOS 6.0 and have installed the "iOS Updater" app, you will also have this message.
如果您有运行 iOS 6.0 的 iPhone 5 并安装了“iOS 更新程序”应用程序,您也会收到此消息。
Finishing the update process to iOS 6.0.1 will resolve the problem.
完成到 iOS 6.0.1 的更新过程将解决问题。
回答by Freeman
This error also happens if the iPhone provisioning profile has expired.
如果 iPhone 配置文件已过期,也会发生此错误。
回答by Carlos
This error happens when you try to debug an application in your IPod/IPhone and the device is code-locked or executing another application.
当您尝试调试 iPod/IPhone 中的应用程序并且设备被代码锁定或正在执行另一个应用程序时,会发生此错误。
Make sure you can see the menu with all the app icons on the device and try to run again.
确保您可以在设备上看到带有所有应用程序图标的菜单,然后再次尝试运行。
Regards
问候
回答by Egli Becerra
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.
这可能是几件事,我首先要检查的第一件事是查看您的 iPhone 当前是否正在下载或“正在准备更新...”,而这正在运行时,您通常会收到“设备无效(0xe8000084)” / 错误 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..
如果失败:重新启动你的 iPhone,然后如果失败重新启动你的 Mac/Xcode 并进行清理,然后重新构建和部署..
Hope this helps
希望这可以帮助
回答by Aklesh Rathaur
If nothing works then check if your device os is compatible with your Xcode version.
如果没有任何效果,请检查您的设备操作系统是否与您的 Xcode 版本兼容。
回答by metronic
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).
为防止这种情况,请执行 ldrestart(软重启)。
In order to perform it, download a terminal application from Cydia, then type:
为了执行它,从 Cydia 下载一个终端应用程序,然后输入:
su
Input your password when asked, the default password is "alpine".
询问时输入您的密码,默认密码为“alpine”。
Then type
然后输入
ldrestart
回答by Daniel Danielecki
Simply restarting the device (as the alert suggests) fixed the problem, at least on iOS 12.
只需重新启动设备(如警报所示)即可解决问题,至少在 iOS 12 上是这样。
回答by i.AsifNoor
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.
拔下设备并再次与 Mac 连接解决了我的问题。不需要清理、构建或重新启动 XCode。XCode 10.2.1,iOS 12.3.1 版本。

