xcodebuild-设置生成目录不会生成dSYM [英] xcodebuild - setting build dir doesn't generate dSYM
问题描述
我正在通过命令行使用xcodebuild(xcode 5)进行存档:
I am doing an archive with xcodebuild (xcode 5) through the command line as so:
xcodebuild -project MyProject.xcodeproj -scheme MyScheme -sdk iphoneos7.0 -configuration Release archive CODE_SIGN_IDENTITY="iPhone Distribution: My ID" -archivePath archive/MyArchive.xcarchive -xcconfig Config/MyReleaseConfig.xcconfig CONFIGURATION_BUILD_DIR=$SRCROOT/build/$CONFIGURATION$EFFECTIVE_PLATFORM_NAME
运行此命令时,我生成了xcarchive,控制台输出似乎正常.但是,当我浏览档案的内容时,dSYM下没有任何内容.项目设置已通过验证.如果我运行与上述相同的命令,但省略了CONFIGURATION_BUILD_DIR
位,则将按预期方式获得dSYM.您是否知道是否有解决方案(即应设置其他设置).我想控制构建目录.
When I run this, I get my xcarchive generated and console output seems ok. However, when I explore the contents of the archive there is nothing under dSYM. Project settings are verified ok. If I run the same command as above BUT omit the CONFIGURATION_BUILD_DIR
bit, I get the dSYM as expected. Do you know if there's a solution for this (i.e. should anything else be set). I want to have control over the build dir.
我尝试从命令行中进行显式设置(与我的方案设置相对):
I've tried setting explicitly from command line (as opposed to in my scheme settings):
DEBUG_INFORMATION_FORMAT="dwarf-with-dsym"
和 pos处理为是.仍然没有喜悦.
and pos-processing to YES. Still no joy.
谢谢.
推荐答案
再次检查构建设置.看一下 Debug Information Format (调试信息格式),它应该具有带有dSYM文件的DWARF
Check again build settings. Take a look at Debug Information Format, it should have DWARF with dSYM file
有关更多信息,请查看 OS X手册页xcodebuild 和 Xcode构建设置参考
For futher information take a look OS X Man Pages xcodebuild and Xcode Build Setting Reference
这篇关于xcodebuild-设置生成目录不会生成dSYM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!