xcodebuild

xcodebuild install path?

女生的网名这么多〃 提交于 2019-12-21 02:48:10
问题 I am developing an iphone app using xcode. I would like to automate the "build and run" process, and so want to know if there is any way to install the built app on simulator or device. There is xcodebuild install command but i don't know how to set the installation directory DSTROOT to simulator/device. Please help me there. I have looked through many forums where people suggest just to use xcode GUI to do the stuff, and I do that too, but I would really like to know the command-line way.

Setting a #define from the command line in xcode 4.6

*爱你&永不变心* 提交于 2019-12-21 01:07:06
问题 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? 回答1: 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 ..

How to debug dylib with Xcode?

给你一囗甜甜゛ 提交于 2019-12-20 14:25:47
问题 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

Why are static library headers not found?

十年热恋 提交于 2019-12-20 11:31:28
问题 I've used Clint Harris' tutorial to set up code sharing between projects, and everything works just as expected on my computer. But on my co-worker's machine, it seems the compiler doesn't find the header file from the static library project when he builds. My co-worker got my project by cloning a git repository. We've gone through all relevant build flags and XCode settings n times, but the project simply refuses to compile on his machine. This is what I asked my co-worker to do, mostly

Xcode5: Failed to register "/System/Library/CoreServices/CoreTypes.bundle/Contents/Library/MobileDevices.bundle

ぐ巨炮叔叔 提交于 2019-12-20 10:28:44
问题 My library has some type converters. I'm registering some OSX and iOS type converters, like so: When I compile for iOS, I'm getting some errors related to not being able to find UIKit. Here's how I compile for iOS: xcodebuild -destination OS=${module.sdk.version},name=iPhone -workspace ${workspace} -scheme '${library.ios.scheme}' The ${} tokens are patched in by my build system. When building I get: __build.library.ios.simulator: [exec] Details: Failed to register "/System/Library

Xcode - how to include c library and header file to cocoa project?

一个人想着一个人 提交于 2019-12-20 09:57:17
问题 How do I add c library to Xcode Cocoa project? Or what is the best option, I don't want to copy them into Cocoa project directory. I have a C project called a which compiles into library a.dylib and header file a.h , the project is located in it's own directory. I want to use this library from my objective-c application in Xcode. How do I add the header file and library to my Xcode project? I can drag the a.dylib into other frameworks but what do I do with a.h ? 回答1: I figured it out. I point

Archive with Xcode's command line build tool (xcodebuild archive)

丶灬走出姿态 提交于 2019-12-20 08:49:12
问题 The command line tool to build Xcode projects, xcodebuild, has a new build action available in Xcode 4: archive . From man xcodebuild : archive Archive a scheme from the build root (SYMROOT). This requires specifying a workspace and scheme. Unfortunately, when I try to use it I get an error: $ xcodebuild archive -workspace SimpleTestApp.xcworkspace -scheme SimpleTestApp xcodebuild: error: Failed to build workspace SimpleTestApp with scheme SimpleTestApp. Reason: The selected run destination

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

隐身守侯 提交于 2019-12-20 08:46:56
问题 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)

Which version of Xcode does xcodebuild use?

纵然是瞬间 提交于 2019-12-20 08:28:52
问题 I have installed both Xcode 3.2 and Xcode 4.0.2 on the same machine, which uses Hudson for automated CI (continuous integration) builds. When I say that both were installed, what I mean by that is that I can use both Xcode 3 and Xcode 4 simultaneously or interchangeably. They both exist on the machine, as I did a custom install for Xcode 4 without overwriting Xcode 3 (supposedly). Do command line calls to 'xcodebuild' invoke Xcode 3 or Xcode 4? Does that question even make sense? Someone who

xcode build fails with error code 65 without indicative message

陌路散爱 提交于 2019-12-19 05:08:31
问题 I'm experiencing weird behaviour with my iPhone CI job (running in TeamCity). Every once in a while our build fails without any indicative error in the build log. The build reaches the last stage of codesign validation and I get ** BUILD FAILED ** message immediately after. These are the last lines of the log of a good and bad builds - Bad Build [15:00:56] : [CodeSign] /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/Validation /Library/TeamCity