更新时间:2023-01-14 21:44:08
我在使用手动构建和签署iOS应用程序包时看到此错误一个Makefile。在这种情况下,我的 Info.plist
缺少 CFBundleResourceSpecification
键(应该具有值 ResourceRules.plist
)。我现在做了一些测试,如果缺少键 CFBundleExecutable
,也会发生这种情况。
I have seen this error when I manually built and signed an iOS application bundle using a Makefile. In that case my Info.plist
was missing the CFBundleResourceSpecification
key (should probably have the value ResourceRules.plist
). I did some more testing now and it also happens if the key CFBundleExecutable
is missing.
CFBundleResourceSpecification
应该在Xcode的某个构建阶段添加,但是在构建目录中检查生成的 Info.plist
是否是个好主意。确实存在。
CFBundleResourceSpecification
should be added in some build phase by Xcode but maybe it's a good idea to check the resulting Info.plist
in the build directory if it's really there.
也许这篇博文可能有所帮助,它是关于 codesign
找错了 Info.plist
文件(一个没有 CFBundleResourceSpecification
)
http://infinite-sushi.com/2010/08/the-case-of-the-missing-cfbundleresourcespecification/
Maybe this blog post could help, it's about codesign
finding the wrong Info.plist
file (one without CFBundleResourceSpecification
)
http://infinite-sushi.com/2010/08/the-case-of-the-missing-cfbundleresourcespecification/