xcode - xcodebuild of cocoapods project with PRODUCT_NAME fails -
I can construct my cocopode project using this command:
base = $ (basename * .xcworkspace .xcworkspace) xcodebuild -sdk "iphonesimulator $ ios_version" \ CONFIGURATION_BUILD_DIR = "$ build_dir / build" \ -workspace $ base.xcworkspace -scheme $ base-configuration AdHoc \ DSTROOT = $ build_dir \ OBJROOT = $ build_dir \ SYMROOT = $ However, if I use this command it fails: base = $ (basename * .xcworkspace. xcworkspace) xcodebuild -sdk "iphonesimulator $ ios_version" \ CONFIGURATION_BUILD_DIR = "$ build_dir / build" \ -workspace $ base.xcworkspace -scheme $ base configuration adhoc \ PRODUCT_NAME = App \ & LT; ========== === This extra line ===== DSTROOT = $ build_dir \ OBJROOT = $ build_dir \ SYMROOT = $ build_dir \ ONLY_ACTIVE_ARCH = No \ "$ @"
< / Pre> The more weird, if I use the first command and the second command will work. (Delete the build directory to reset.)
Is the others facing the same problem? And is it possible to make a cocopode project using PRODUCT_NAME and CONFIGURATION_BUILD_DIR in any other way?
. Config file and PRODUCT_NAME and move CONFIGURATION_BUILD_DIR variable a xcconfig flag in your xcodebuild command
For example your xcconfig text file would look like this:
PRODUCT_NAME = 'This is my app 'CONFIGURATION_BUILD_DIR = / users / myusername / document / myiosproject / Construction
the Pass your xcodebuild:
xcodebuild [options and other args] - Xcconfig mynewconfig.xcconfig
Want to clean DerivedData properly, and maybe try the Build command for some time Please. Xcodebuild command line looks pretty beautiful
EDIT: If you can, then I suggest giving a shot xctools. It has made my headache with xcodbild.
Comments
Post a Comment