警告对话框“服务无效"在 XCode 4 中构建和运行应用程序时 [英] Warning dialog "The Service is Invalid" when building and running App in XCode 4

查看:23
本文介绍了警告对话框“服务无效"在 XCode 4 中构建和运行应用程序时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次我想运行我正在开发的应用程序时,XCode 4 都会显示一个警告对话框让我很恼火……它说:

I'm being annoyed by a warning dialog XCode 4 shows everytime I want to run the App I'm developing... it says:

服务无效.

请检查您的设置并重试.

Please check your setup and try again.

(0xE8000022)."

(0xE8000022)."

见附图:

有时该应用程序会在 iPhone 4 上加载,有时则不会.这是一个巨大的浪费时间!如果有人知道如何帮助它,请告诉我.

Sometimes the App will load on the iPhone 4, sometimes it won't. It's a huge waste of time! Please if anyone knows how to help it let me know.

我认为这是因为我启用了 iOS 设备发现以支持无线连接设备.当我看到它是一个无用的功能时,我将其禁用,但仍然显示相同的对话框.

I though it was because I enabled iOS Device Discovery to Support Wirelessly Connected Devices. When I saw it was an useless feature I disabled it, but still have the same dialog showing up.

推荐答案

好吧,我决定在这个问题上投入一些时间......我想我有一个答案,重新启动 XCode 4 或在 XCode 的版本之间交换4 没有帮助.

Well, I decided to invest some time on the issue... and I think I have an answer to it, restarting XCode 4 or swapping between versions of XCode 4 didn't helped it.

我在运行 iOS 5.0.1 (Build 9A405) 的两台不同的 iPhone 上收到警告对话框,这两款 iPhone 都是 iPhone 4.然后,我用运行 iOS 5.0.1 (Build 9A405) 的 iPad 2 进行了测试,对话框确实停止弹出,所以 我重新启动了 iPhone 4s 并且问题不再发生,我可以构建和再次顺利运行.

I was getting the warning dialog with two different iPhones, both iPhone 4, running iOS 5.0.1 (Build 9A405). Then, I tested with an iPad 2 running iOS 5.0.1 (Build 9A405) and the dialog did stopped popping out, so I restarted the iPhone 4s and the problem is not happening anymore, I can build and run smoothly again.

正如我所怀疑的,问题一定是一些后台进程正在侦听 XCode 4 需要与之对话的设备.此过程在开发过程中或手机正常使用过程中的某个时间点停止,并且不会自行重启,您需要关闭设备并重新打开.

Just as I suspected, the issue must be some background process listening on the device that XCode 4 needs to talk with. This process dies at some point during development or during normal usage of the phone and does not restarts by itself, you need to turn off the device and turn it on again.

这篇关于警告对话框“服务无效"在 XCode 4 中构建和运行应用程序时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆