xcodebuild

Separate build directory using xcodebuild

喜你入骨 提交于 2019-12-03 17:06:54
问题 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

xcodebuild command tool without installing Xcode itself

五迷三道 提交于 2019-12-03 13:50:17
I need to build a Xcode project in an automated process on a machine that will not be making any development. I also want to save disk space on that machine. I thought the xcodebuild command line would be perfect for that. But to install that tool, you need to install Xcode itself. Is there a way to install only xcodebuild and other dependencies? I tried to install this package , it does include xcodebuild , but other dependencies seems missing. Now that Apple has a CLI only install, that's probably the best way to go. Old answer below. You need some files missing. Install this to install GCC

Using info.plist for storing target-specific values for a multi-target app

狂风中的少年 提交于 2019-12-03 11:00:48
I have a multi-target iPhone app which currently includes a header file with constant definitions that are conditionally included at build time depending on which target is being built. However, I was wondering if it might be better to instead include this information in the info.plist for the build, as this generally holds target-specific meta, so logically seems more appropriate. Therefore, my questions are: Is it acceptable to include custom (non-Apple defined) keys in the info.plist file? Is this a suitable place to include meta for the app which differ between targets? pgb It is

Generate an .xcscheme file from the command line

不羁岁月 提交于 2019-12-03 09:00:54
问题 I am working on my company's continuous integration server, and the build process is failing because the server does not have access to schemes in an xcode project. Basically, they are using Cmake to generate xcode projects on the fly to be used for a single build, and then discarded until the next check in. My research indicates that this problem will be fixed if there is an .xcscheme file with the .xcodeproj file, but for various reasons that can't be generated and checked in ahead of time.

Start Integration of Xcode Bot manually?

僤鯓⒐⒋嵵緔 提交于 2019-12-03 08:58:47
I was watching WWDC 2014 "Continuous Integration with Xcode" Video and it looks great how the bots can be used to run test. But my question is to anyone who has seen the video, when he sends message to Jeeves saying " integrate CoffeeBoard ".Bot starts to integrate. I want to know how he did that. I want to add post-receive hook on github which on receiving any commit should start Xcode bot on my OS X Server. Most of my team members use SourceTree or GitHub to manage their git and they don't want to use Xcode Source Control. I thought creating a bot and setting its option to start manually

How can i fix this warning: CoreSimulator is attempting to unload a stale CoreSimulatorService job

流过昼夜 提交于 2019-12-03 08:35:33
问题 I have a warning in my build log in teamcity. I've updated Xcode on my CI-Server from 7.3.1 to 8. The step run successfully but I have this: [Step 3/3] Starting: /Users/teamcity/local/teamcity-build-agent/temp/agentTmp/custom_scriptxxxxxxx [Step 3/3] in directory: /Users/teamcity/local/teamcity-build-agent/work/yyyy [Step 3/3] 2016-10-11 09:04:41.706 xcodebuild[18180:5010256] CoreSimulator is attempting to unload a stale CoreSimulatorService job. Detected Xcode.app relocation or

Can't build XCode 4 Project from Textmate

家住魔仙堡 提交于 2019-12-03 08:27:59
I've opened a newly created XCode 4 project in TextMate (by dropping the project folder on the TextMate icon like the manual suggests) and have attempted to build it using the Command-B shortcut and selecting 2 for an XCode build. I get the following error xcodebuild: error: invalid option '-activebuildstyle' Usage: xcodebuild [-project <projectname>] [[-target <targetname>]...|-alltargets] [-configuration <configurationname>] [-arch <architecture>]... [-sdk [<sdkname>|<sdkpath>]] [<buildsetting>=<value>]... [<buildaction>]... xcodebuild -workspace <workspacename> -scheme <schemeName> [

iOS IPA file size - xcode-archive vs. xcodebuild command

独自空忆成欢 提交于 2019-12-03 07:55:01
问题 I have encountered a problem where the size of iOS application file (IPA) is different between a file built using XCode-GUI archive action and the one created using a command-line build (xcodebuild command). The size matters because we're getting the following message from Apple: The app binary listed below was 44.6 MB when you submitted it, but will be 51.2 MB once processed for the App Store. This exceeds the cellular network download size limit and would require your app to be downloaded

Is there an API or any other method to automate the submission process?

放肆的年华 提交于 2019-12-03 07:20:34
问题 I have a number of apps which are similar in functionality and UI. I create the user interface by picking up variables from a .plist file. For instance, I save the source of the API from where I pick up the data. Creating a new app involves just changing the values in the .plist file and rebuilding the app, and finally submitting it to the App Store. Also, I need to create Ad-Hoc provision files and build test releases too. I wish to automate this process. For this I need to: Build the app

Default property value with closure makes a compiler to recompile all files

那年仲夏 提交于 2019-12-03 07:05:29
This source has a paragraph Setting a Default Property Value with a Closure or Function where we can find an example Here’s a skeleton outline of how a closure can be used to provide a default property value: class SomeClass { let someProperty: SomeType = { // create a default value for someProperty inside this closure // someValue must be of the same type as SomeType return someValue }() } Well, I use it very often... Also, I often wait for the whole project to recompile after changing just one symbol. And today I have discovered that these two things are associated to each other. Lets