xcodebuild - setting build dir doesn't generate dSYM

只谈情不闲聊 提交于 2019-12-04 17:25:50

问题


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

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.

EDIT:

I've tried setting explicitly from command line (as opposed to in my scheme settings):

DEBUG_INFORMATION_FORMAT="dwarf-with-dsym"

and pos-processing to YES. Still no joy.

Thanks.


回答1:


Check again build settings. Take a look at Debug Information Format, it should have DWARF with dSYM file

For futher information take a look OS X Man Pages xcodebuild and Xcode Build Setting Reference




回答2:


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

what's your config about DEBUG_INFORMATION_FORMAT in MyReleaseConfig.xcconfig?



来源:https://stackoverflow.com/questions/21850269/xcodebuild-setting-build-dir-doesnt-generate-dsym

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!