xcodebuild

Building with xcodebuild Timed out waiting for <IDEWorkspace, 0x2004cebc0>/“runContextManager.runContexts”

二次信任 提交于 2019-12-02 17:00:19
I am setting up my iphone project to run with hudson, my build script works fine locally, but when executing the following command on my snow leopard server mac xcodebuild -sdk iphoneos4.3 -workspace Moments.xcworkspace/ -scheme Moments -configuration DistributionTest I get the following error messages. Build settings from command line: SDKROOT = iphoneos4.3 2011-05-11 10:32:17.729 xcodebuild[4151:903] WARNING: Timed out waiting for /"runContextManager.runContexts" (10.010780 seconds elapsed) xcodebuild: error: The workspace 'Moments.xcworkspace/' does not contain a scheme named 'Moments'.

How do I determine which iOS SDK I have?

做~自己de王妃 提交于 2019-12-02 15:01:58
I'm sure this is simple, but how do I determine which version of the iOS SDK I currently have installed? 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 If you care about the build number (like "10B61"), especially during betas, the best place to check which version of Xcode and related SDKs you

Xcode 4 build succeeds, command line build fails?

蓝咒 提交于 2019-12-02 14:14:53
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 and the dependent project. Any ideas on where to start debugging this? I can provide more info as

Setting a provisioning profile from within xcodebuild when making iPhone apps

佐手、 提交于 2019-12-02 13:51:39
I'm using xcodebuild to compile my iPhone app from the command line. Is there a way to pass in some sort of option to set the provisioning profile? There seems to be not very much information about xcodebuild in general. Documentation It seems from the doc, you can't set the provisioning file BUT you can specify the target: [-target targetname] So, if you create a target for each provisioning file, you could select the proper target from the command line. This would basically accomplish what your asking. Actually, you should be able to just add it to the XCode command line setting. xcodebuild

“libRestKit.a, file was built for archive which is not the architecture being linked (armv7)”

南笙酒味 提交于 2019-12-02 00:25:28
I'm trying to use xcodebuild to build a project, but RestKit and GPUImage are giving issues below: ld: warning: ignoring file /project/libGPUImage.a, missing required architecture armv7 in file /project/libGPUImage.a (2 slices) ld: warning: ignoring file /project/libRestKit.a, file was built for archive which is not the architecture being linked (armv7): /project/libRestKit.a Please help! Set Build Active Architecture Only to NO for static Library in project target setting. I guess you are not using latest versions of the libraries, though I am not sure about this that the latest one supports

How do I run a Cocoa app after building it from the command line with xcodebuild?

别说谁变了你拦得住时间么 提交于 2019-12-02 00:16:54
问题 I'm building a Mac OS X Cocoa application from the command line using an Xcode project like this: xcodebuild -scheme MyApp -configuration Debug How do I run it once it's done building? 回答1: I wrote a script to do this: #!/bin/bash x=$( xcodebuild -showBuildSettings -project MyApp.xcodeproj | grep ' BUILD_DIR =' | sed -e 's/.*= *//' ) DYLD_FRAMEWORK_PATH=$x/Debug DYLD_LIBRARY_PATH=$x/Debug $x/Debug/MyApp.app/Contents/MacOS/MyApp (I figured this out by running the application from Xcode and

how to pass the user-defined macro to xcodebuild?

妖精的绣舞 提交于 2019-12-01 19:45:19
问题 I build my project by xcodebuild in command line. Not in xCode. I want to pass some marc to the project so that it can affect the code. Such as code below: #if (API_TYPE == 1) #define URL_API @"https://dapi.xxx.com/1.1/" #elif (API_TYPE == 2) #define URL_API @"https://tapi.xxx.com/1.1/" #elif (API_TYPE == 3) #define URL_API @"https://api.xxx.com/1.1/" #else #error "API_TYPE value error! should be only value 1,2,3 !" #endif I want pass the define of API_TYPE outside the code files. Such as

how to pass the user-defined macro to xcodebuild?

江枫思渺然 提交于 2019-12-01 19:37:10
I build my project by xcodebuild in command line. Not in xCode. I want to pass some marc to the project so that it can affect the code. Such as code below: #if (API_TYPE == 1) #define URL_API @"https://dapi.xxx.com/1.1/" #elif (API_TYPE == 2) #define URL_API @"https://tapi.xxx.com/1.1/" #elif (API_TYPE == 3) #define URL_API @"https://api.xxx.com/1.1/" #else #error "API_TYPE value error! should be only value 1,2,3 !" #endif I want pass the define of API_TYPE outside the code files. Such as through xcodebuild command. But It doesn't work like this: xcodebuild -sdk xxx -target xxx SYMROOT=$

How to build and sign an iOS app on separate machines?

亡梦爱人 提交于 2019-12-01 17:55:53
We have an iOS app which is built using a series of Bash scripts run by Jenkins. As things are today, we build an xcarchive using this command: xcodebuild archive -workspace "..." -scheme "..." -configuration "Release" -archivePath "..." This builds the app and signs it using the certs specified in the provisioning profile which is set using an xcconfig. Once it is complete, we then turn it into an IPA using: xcodebuild -archivePath "..." -exportArchive -exportOptionsPlist "${export_options_plist}" -exportPath "..." This IPA can then be uploaded to Hockey or to the App store depending on the

How to build and sign an iOS app on separate machines?

爷,独闯天下 提交于 2019-12-01 17:14:15
问题 We have an iOS app which is built using a series of Bash scripts run by Jenkins. As things are today, we build an xcarchive using this command: xcodebuild archive -workspace "..." -scheme "..." -configuration "Release" -archivePath "..." This builds the app and signs it using the certs specified in the provisioning profile which is set using an xcconfig. Once it is complete, we then turn it into an IPA using: xcodebuild -archivePath "..." -exportArchive -exportOptionsPlist "${export_options