Info.plist文件处理修改可执行文件 [英] Info.plist file processing modifies executable

查看:339
本文介绍了Info.plist文件处理修改可执行文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在开发iPhone应用程序时遇到了一个问题,即dSYM文件生成对我来说是错误的.

I've been working on an iPhone application had an issue where dSYM file generation was seg faulting on me.

GenerateDSYMFile/Users/kaom/Projects/build/Release-iphoneos/NodeAppGen.app.dSYM/Users/kaom/Projects/build/Release-iphoneos/NodeAppGen.app/NodeAppGen cd/用户/kaom/项目/应用/NodeAppGen setenv PATH"/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Developer/usr/bin/dsymutil/Users/kaom/Projects/build/Release-iphoneos/NodeAppGen.app/NodeAppGen -o/Users/kaom/Projects/build/Release-iphoneos/NodeAppGen.app.dSYM

GenerateDSYMFile /Users/kaom/Projects/build/Release-iphoneos/NodeAppGen.app.dSYM /Users/kaom/Projects/build/Release-iphoneos/NodeAppGen.app/NodeAppGen cd /Users/kaom/Projects/Apps/NodeAppGen setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Developer/usr/bin/dsymutil /Users/kaom/Projects/build/Release-iphoneos/NodeAppGen.app/NodeAppGen -o /Users/kaom/Projects/build/Release-iphoneos/NodeAppGen.app.dSYM

命令/Developer/usr/bin/dsymutil失败,退出代码为11

Command /Developer/usr/bin/dsymutil failed with exit code 11

我将此错误归结为该应用程序的Info.plist文件中的错误.

I tracked this bug down to an error in the application's Info.plist file.

代替

<key>CFBundleVersion</key>
<string>1.0</string>

我有

<key>CFBundleVersion</key>
<real>1.0</real>

据我所知,dSYM文件的生成仅取决于可执行文件,而plist文件应该会影响可执行文件.所以我的问题是,为什么这会中断dSYM文件的生成?

To my knowledge, dSYM file generation is only dependent on the executable and the plist file should not affect the executable. So my question is why did this break dSYM file generation?

推荐答案

在构建日志中查找错误,可能是Xcode实际上没有将其解析为显式错误.

Look for an error earlier in the build log, possibly one that didn't actually get parsed out as an explicit error by Xcode.

很有可能,Info.plist上出现了一些问题,并且很难找到<real/>而不是<string/>值.

More likely than not, something was chomping on the Info.plist and was mighty confused to find a <real/> instead of a <string/> value.

无论如何,请通过 http://bugreport.applec.om 提交错误,因为开发工具产生有用的错误消息总是可取的.

In any case, file a bug via http://bugreport.applec.om, as having the dev tools produce a useful error message is always desirable.

这篇关于Info.plist文件处理修改可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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