Xcode Organizer 设备状态“TakingInstallLock”并挂起,唯一的解决方法是完整的 iOS 恢复

发布于 2024-12-28 19:13:39 字数 240 浏览 6 评论 0原文

我正在构建使用 UILocalNotifications 进行警报的应用程序。为了测试调度逻辑,我经常必须按分钟或小时增量更改系统时间,或者更改时区等。

问题是,在执行几次此操作后,管理器设备选项卡会显示名为“TakingInstallLock”的状态进度指示器无限期挂起。

1)是否是由于更改系统时间导致的? 2)如果不是,那又怎样? 3)或者如果是,我还能如何测试间隔从几分钟到几周的 UILocalNotifications?

I'm building apps that use UILocalNotifications for alerts. To test scheduling logic, I frequently have to change the system time by minute or hour increments, or change the time zone, etc.

The problem is that after a few sessions of doing this, the Organizer device tab shows a status called "TakingInstallLock" with an indefinite hang in the progress indicator.

1) Is this caused by changing the system time?
2) If not, then what?
3) Or if it is, how else can I test UILocalNotifications that are spaced anywhere from minutes to weeks apart?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

GRAY°灰色天空 2025-01-04 19:13:39

“TakingInstallLock”挂起可能是由于 iPhone 上运行的安装过程较长所致。例如,当您在设备上下载并安装大型游戏时,如果您尝试同时运行项目,XCode 将显示此消息。

A hanging on "TakingInstallLock" can be caused by a long installation process running on the iPhone. For example while you download and install a large game on the device, XCode will show this message if you try to run a project at the same time.

溺渁∝ 2025-01-04 19:13:39

我刚才遇到了这个问题,(在未定义的时间内获取InstallLock消息)

我所做的是重新启动xCode和设备,但我仍然有该消息。造成差异的是使用 Activity Monitor 强制退出 xCode,并从手机中删除该应用程序。然后我打开 Xcode,可以毫无问题地重新运行我的项目。

希望这对某人有帮助。

-

作为OP的注释,当我修改手机日期以测试未来事件时,我也遇到了这个问题。可能有什么关系。

I had this problem a moments ago, (TakingInstallLock message for undefined time)

What I did was restart xCode and the Device, but I still had the message. What made the difference was to force quit xCode with the Activiy Monitor, and delete the application from the phone. Then I opened Xcode and could re-run my project with no problems.

Hope this help someone.

-

As a note to the OP , I also had this problem when I was modifying my phone date to test future events. It may have something to do.

不必你懂 2025-01-04 19:13:39

它与修改日期有关。如果您在晚上 10:20 安装应用程序,然后将日期向后或将来设置并尝试再次运行该应用程序,您将遇到此问题。

It has to do with modifying the date. If you install your app at say 10:20PM and then set your date back or in the future and try to run the app again, you will get this issue.

瑾兮 2025-01-04 19:13:39

当我接过一位同事的 iPad 时,他之前安装了相同的应用程序,就发生了这种情况。再次尝试之前终止 Xcode 并从设备中卸载应用程序可以修复此问题。

之后,我遇到了“使用错误权利签名的应用程序”问题,我通过安装适当的配置文件修复了该问题。

后来我发现 iPad 时钟设置为 1970 年 1 月 1 日,因此这可能是一个影响因素,但我仍然能够在调整时钟之前调试我的应用程序。

This happened to me when I took over a colleague's iPad on which he had previously installed the same app. Terminating Xcode and uninstalling the app from the device before trying again fixed this problem.

After this I got a "application signed with wrong entitlements" problem which I fixed by installing the appropriate provisioning profile.

I later discovered that the iPad clock was set to January 1 1970, so that may be a contributing factor, but I was nonetheless able to debug my app before adjusting the clock.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文