xcode 应用未安装...因为其资源已被修改
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2819492/
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
App not installed...because its resources have been modified
提问by user230949
One user cannot install my app because they continue to receive the error:
一位用户无法安装我的应用,因为他们继续收到以下错误:
The application “myapp” was not installed on the iPhone “myPhone” because its resources have been modified
I've read the error occurs because of adding files after the app is built. I have not added any files. Last week, the user could install the ad hoc without issue. I've tried clean and rebuilt with no luck. As the developer, the ad hoc installs fine on my device from iTunes, even after deleting all profiles. Any ideas?
我已经阅读了由于在构建应用程序后添加文件而发生的错误。我没有添加任何文件。上周,用户可以毫无问题地安装 ad hoc。我试过干净和重建,但没有运气。作为开发人员,即使在删除所有配置文件后,临时安装也可以从 iTunes 很好地安装在我的设备上。有任何想法吗?
采纳答案by Andiih
IF this is an adhoc distribution, I'd clean and re-build it, then give it to the user again, along with the provisioning profile : basically make sure they have a clean set of everything.
如果这是一个临时发行版,我会清理并重新构建它,然后再次将其与配置文件一起提供给用户:基本上确保他们拥有一套干净的所有内容。
There is also a reported issue on Vista / Win7 where windows corrupts the Zip. It may be worthwhile distributing it as a ipa file rather than a zip
在 Vista / Win7 上还有一个报告的问题,其中 Windows 损坏了 Zip。将其作为 ipa 文件而不是 zip 分发可能值得
回答by John Cruz
For me the issue was the .Double files being added to every directory on a shared network drive. We are primarily a Windows environment, and the Mac was saving .Double files on the drive, in every directory.
对我来说,问题是 .Double 文件被添加到共享网络驱动器上的每个目录。我们主要是一个 Windows 环境,Mac 将 .Double 文件保存在驱动器上的每个目录中。
Literally, to fix the issue referenced above, I simply deleted the .Double files in every directory (of the app being copied to iTunes) and it fixed it.
从字面上看,为了解决上面提到的问题,我只是删除了每个目录(被复制到 iTunes 的应用程序的)中的 .Double 文件并修复了它。
Hope this helps someone!
希望这对某人有帮助!
回答by Learner
This issue also occurs when the person trying to install the .app file has double clicked on the appname.app folder (its shown as a folder in windows environment). When they do it, a thumbnail file is created in the windows environment. This in turn means that the resources have been modified and hence the error. We have always instructed our clients not to double click on the .app folder when they extract it from the zip file.
当尝试安装 .app 文件的人双击 appname.app 文件夹(在 Windows 环境中显示为文件夹)时,也会出现此问题。当他们这样做时,会在 windows 环境中创建一个缩略图文件。这反过来意味着资源已被修改,因此出现错误。我们一直指示我们的客户在从 zip 文件中解压缩 .app 文件夹时不要双击它。