接收消息“已添加,修改或删除已签名的资源”在尝试在iPhone上调试应用程序时 [英] Receive message "A signed resource has been added, modified, or deleted" when trying to debug an App on iPhone

查看:902
本文介绍了接收消息“已添加,修改或删除已签名的资源”在尝试在iPhone上调试应用程序时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在尝试调试在iPhone设备上使用3.2 SDK创建的版本时,我收到消息已添加,修改或删除已签名的资源。。

While attempting to debug a build created using the 3.2 SDK on an iPhone device I receive the message "A signed resource has been added, modified, or deleted.".

我可以清理,重建,然后安装没有错误,但如果我尝试安装而不清除错误显示。

I can clean, rebuild, then install with no error, but if I try to install without cleaning the error shows.

任何人都知道可能是什么造成这种情况?

Anyone have an idea as to what might be causing this?

推荐答案

我找到了该错误的解决方法。

I found a workaround for the bug.

如果在构建设备之前删除build / Debug-iphoneos /中的.app文件,则应用程序安装时没有错误。
在每次构建之前都有一种简单的方法。

If you delete the .app file in build/Debug-iphoneos/ before building for the device, the app gets installed without errors. And there is a simple way to do that before every build.

确保在下拉菜单中选择了设备。
在XCode中转到Project> New target ...
然后在MacOSX / Other下找到Shell Script target
命名并将其添加到当前项目

Make sure you have selected "Device" in the dropdown overview menu. In XCode go to Project > New target... Then find "Shell Script target" under MacOSX/Other Name it and add it to the current project

现在,在左侧导航面板的目标下,展开新创建的目标,然后双击Run Script。
在打开的窗口中,将#shell script goes here替换为rm -fr build / Debug-iphoneos / * .app(不带引号)。
现在打开主目标首选项,在Direct Dependencies下添加新创建的目标。
Build and Go! :)

Now, in the left navigation panel, under targets, expand your newly created target and double-click on Run Script. In the window that opens replace "# shell script goes here" with "rm -fr build/Debug-iphoneos/*.app" (without the quotes). Now open your main target preferences and under Direct Dependencies add your newly created target. Build and Go! :)

这篇关于接收消息“已添加,修改或删除已签名的资源”在尝试在iPhone上调试应用程序时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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