xcodebuild

Setting a #define from the command line in xcode 4.6

混江龙づ霸主 提交于 2019-12-03 06:46:34
I'm trying get set a #define macro when doing a command line build using xcodebuild and having no luck. I've tried -DMYMACRO=1 and MYMACRO=1 everything else I can think of and nothing works. How do you set a #define from the command line? Roger, What you are looking for is a way to set GCC_PREPROCESSOR_MACROS via the command line tool xcodebuild. The man page for xcodebuild shows the format for applying these settings, however the SYNOPSIS section only refers to this as "setting=value ..." xcodebuild [-project projectname] -scheme schemename [-configuration configurationname] [-sdk

Xcode Build Error Jenkins: Your session has expired. Please log in

Deadly 提交于 2019-12-03 06:32:41
I'm trying to build my application using jenkins pipeline using shell command. Below is the command i'm using to build the app. sh 'xcodebuild -workspace projectname.xcworkspace - allowProvisioningUpdates -scheme projectname_UAT -sdk iphoneos - configuration Debug clean build' Below is the error i'm getting i console. note: Using new build system note: Planning build 2018-10-11 11:19:36.638 xcodebuild[92399:5181481] DVTPortal: Service '' encountered an unexpected result code from the portal ('1100') 2018-10-11 11:19:36.638 xcodebuild[92399:5181481] DVTPortal: Error: Error Domain

xcodebuild fails when run from Jenkins (works in terminal)

拈花ヽ惹草 提交于 2019-12-03 06:30:18
I am trying to use Jenkins CI (on a Mac Mini with Mavericks) using the xcodebuild command to build my iOS projects. I played around with it for hours, but can't get my head around this issue. The following command builds my project on the command line without any issues, but fails when it gets run within Jenkins. xcodebuild -workspace ./MyProject.xcworkspace -scheme MyProject -configuration AdHoc -sdk iphoneos DSTROOT=/Users/me/myproject OBJROOT=/Users/me/myproject SYMROOT=/Users/me/myproject ONLY_ACTIVE_ARCH=NO OTHER_CODE_SIGN_FLAGS="--keychain /Users/me/Library/Keychains/temporary.keychain"

Separate build directory using xcodebuild

我是研究僧i 提交于 2019-12-03 05:18:45
The man page for xcodebuild reads: Run xcodebuild from the directory containing your project (i.e. the directory containing the projectname.xcodeproj package). I would like to keep my source directory (which is a Subversion external) clean and unmodified, and build my object files and executables to a location completely outside of the source directory. Is there any way to build into a separate build directory from a terminal using xcodebuild like you can do with make tools or even msbuild on Windows? You can set build settings from the command line. The CONFIGURATION_BUILD_DIR will set the

Converting a xcodeproj in-app purchase to a pkg file from terminal (Bash) or how to convert a xcarchive file to a pkg file?

微笑、不失礼 提交于 2019-12-03 04:58:00
I am trying to create a bash script to automate the creation of in-app purchase pkg files. I am at a point that the script creates successfully all in-app purchase xcodeproj projects and then archive them using this command xcodebuild -scheme $nameOfProject archive $nameOfProject is a variable that holds, inside a loop, the name of the xcodeproj file correspondent to the in-app purchase. After doing this, I have to open the archive part of Xcode and manually export all archives to create the pkg files that I need to have to upload to iTC. Is there any command that I can use to do this

How to debug dylib with Xcode?

流过昼夜 提交于 2019-12-03 03:27:00
I have a Xcode project for library arith. I could build it with debug configuration, and I need to debug it. How can I do that? The ideal method would be to set up a test code to build an execution in a project file, and then set a breakpoint in a source code in arith library. However, it seems that Xcode arith project doesn't allow to add another use_arith project that uses the arith library. What method people use to debug a dynamic library in Xcode? ADDED I googled and found some ways to debug dll. Attaching to a running process can be one way of debugging dynamic library. And, for iPhone

xcodebuild corrupts test result output when output redirected to file

南笙酒味 提交于 2019-12-03 03:22:58
I have Jenkins with the Xcode plugin configured to run unit tests by adding the test build action to the Custom xcodebuild arguments setting. For more information on getting Jenkins to run the unit tests at all with Xcode 5, see this question . Now that I have it running, it seems to mix console output from NSLog statements or the final ** TEST SUCCEEDED ** message with the test results, thus occasionally tripping up the parser that converts unit test results to the JUnit format required for Jenkins. For example, the Jenkins log shows output like this: Test Case '-[Redacted_Conversion_Tests

How do I determine which iOS SDK I have?

こ雲淡風輕ζ 提交于 2019-12-03 03:03:14
问题 I'm sure this is simple, but how do I determine which version of the iOS SDK I currently have installed? 回答1: If you type this: $> xcodebuild -showsdks it gives something like this: $> OS X SDKs: OS X 10.8 -sdk macosx10.8 OS X 10.9 -sdk macosx10.9 iOS SDKs: iOS 6.1 -sdk iphoneos6.1 iOS 7.0 -sdk iphoneos7.0 iOS Simulator SDKs: Simulator - iOS 6.0 -sdk iphonesimulator6.0 Simulator - iOS 6.1 -sdk iphonesimulator6.1 Simulator - iOS 7.0 -sdk iphonesimulator7.0 回答2: If you care about the build

Xcode 4 build succeeds, command line build fails?

烈酒焚心 提交于 2019-12-03 02:17:57
问题 I have a project in Xcode 4 (the latest non-beta version) that builds fine when built in Xcode itself. Specifically, the Ld command correctly uses the derived data directory (where build products, including a dependent static library, are placed). However, when I build the same project from the command line, the Ld command fails, as it is trying to use the /build folder within the project, which is not being populated. I've tried adjusting every build setting I know about, both in the parent

Unable to execute tests from command line via xcodebuild

你离开我真会死。 提交于 2019-12-03 01:34:41
I am trying to build and run test cases using command line for iOS test cases. I have given the following command: xcodebuild -target AppEngineTests -configuration Debug -sdk iphonesimulator TEST_AFTER_BUILD=YES clean build It builds the app but the testcases are not run. could someone please help? Thanks tooluser I've found the name property to require more specification. xcodebuild test -workspace #{WORKSPACE_FILE} -scheme #{TEST_SCHEME} -destination 'platform=iOS Simulator,name=iPhone Retina (4-inch),OS=7.0' Was what finally worked for me. iPhone was limited and/or unpredictable. As another