xcodebuild

Setting a provisioning profile from within xcodebuild when making iPhone apps

拥有回忆 提交于 2019-12-03 01:34:04
问题 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. 回答1: 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

Generate an .xcscheme file from the command line

痴心易碎 提交于 2019-12-02 23:06:41
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. Is there a way to generate this file using xcodebuild or some other command line tool so that we can

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

馋奶兔 提交于 2019-12-02 22:45:04
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/CoreServices/CoreTypes.bundle/Contents/Library/MobileDevices.bundle" with Launch Services, error code: -10811.

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

若如初见. 提交于 2019-12-02 21:22:54
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 over Wi-Fi The IPA file built with Xcode is 7MB smaller than the one built with XCodeBuild command. The

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

China☆狼群 提交于 2019-12-02 20:51:57
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 through the command line interface. Upload the binary and other required files/information (app icon,

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

我只是一个虾纸丫 提交于 2019-12-02 20:51:12
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 ? I figured it out. I point to location of project a deployment directory (headers) to Search Path in project settings either: as

Can't generate release build for Cordova iOS App

落花浮王杯 提交于 2019-12-02 19:35:06
I am using Phonegap CLI 3.1 and XCode5 . I want to generate the release build for iPhone Application through command line, I have valid distribution certificate and mobile provisioning profile . I want to generate the release build totally through command and don't want to use XCode GUI or Phonegap Build. I have tried too much with xcodebuild, xcrun and even corodva build command but none of them provide me the release build file (either in .app format or .ipa). Method 1 (Use xcodebuild) a) xcodebuild -project MyApp.xcodeproj -alltargets -sdk iphoneos7.0 PROVISIONING_PROFILE="PROFILE_UUID

How to speedup xcode builds without any project modifications?

心已入冬 提交于 2019-12-02 18:32:28
Last version or XCode (3.2.1) is running very slow on OS X 10.6. What kinds of tweaks can you do to your Mac in order to speedup Xcode build process. I'm not looking for general hints like how to restructure your projects, just tweaks that are related to environment. For example I remember that on Windows for Visual Studio two significant speedups are to disable antivirus and NTFS last access time. So I'm aiming at something else than: hardware upgrades, project structure modifications or configuring distributed builds. Update #1 - maybe limiting the number of cc1plus processes could help

Which version of Xcode does xcodebuild use?

我的未来我决定 提交于 2019-12-02 17:15:53
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 may or may not be knowledgable on the topic is requesting that some projects be built with 3 and some

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

不羁的心 提交于 2019-12-02 17:10:47
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 is not valid for this action. My impression is this doesn't actually work yet. Has anyone got it to work