xcodebuild

XCode bundle identifier formatting from {PRODUCT_NAME}

妖精的绣舞 提交于 2019-11-29 22:15:22
Assume I have an iPhone application whose Product Name is " My App " (with a space between words) in XCode build settings. In my info.plist , the Bundle identifier is specified as com.mycompany.${PRODUCT_NAME:rfc1034identifier} In the resulting info.plist in the application bundle, the bundle identifier is shown as com.mycompany.My-App . I need it to be com.mycompany.MyApp . How do I change the Bundle Identifier setting so it would convert the product name the way I want? ps. If I change the ${PRODUCT_NAME:rfc1034identifier} to ${PRODUCT_NAME:identifier} , the resulting bundle identifier will

xcodebuild not copying file from .app

时光总嘲笑我的痴心妄想 提交于 2019-11-29 20:58:37
I've created a signed .xcarchive file using the xcodebuild command. Inside the .xcarchive is a .app file. Inside the .app is a file called archived-expanded-entitlements.xcent. This file is the key to my problem. I run a different xcodebuild command that creates an .IPA file from the .xcarchive. Creating the IPA fails because the archived-expanded-entitlements.xcent file is missing. The thing is, xcodebuild is creating a temporary directory where it copies over my .app file, and inside THAT .app file, there is no archived-expanded-entitlements.xcent file. All the other files are in there

Xcode, Codesign Error from Jenkins / SSH - “User Interaction is not allowed”

♀尐吖头ヾ 提交于 2019-11-29 20:44:27
I am trying to run an automated xcodebuild on Jenkins, but I am running into the error User interaction is not allowed. Command /usr/bin/codesign failed with exit code 1 I have already referenced "User interaction is not allowed" trying to sign an OSX app using codesign and other similar threads, but none of the solutions seem to properly remedy the error. Here is what I've already tried: I have allowed all items to access the keychain, and I have specifically added codesign to the "always allow" list (as done here https://stackoverflow.com/a/22637896 ) I have set the keychain to not

Xcode with iOS - Creating a library in a way that is easy to run in debug mode, distribute, iterate

心不动则不痛 提交于 2019-11-29 20:00:01
This is for Xcode 4.5.x iOS armv7 armv7s and the sim and specifcially about Xcode project setup / project build setup: I have a project "A" that is an app in the app store. I have a project "B" that is a library that will be used in A as a dependency, but also distributed as a 3rd-party library to other companies to use in their apps. (other companies' 3rd party apps are represented in this case as "Y"). Here are the requirements: Must be able to run "A" in debug mode, and of course debug the nested "B" project concurrently, in the same build/session. From "A" I can CMD+Click on a method

Can an Xcode .mobileprovision file be 'installed' from the command line?

点点圈 提交于 2019-11-29 18:59:53
I'm trying to automate the process of building apps for our clients using bash scripts running on a Mac Mini Server (OSX 10.7). My script is based on the spectacularly useful script from github originally posted at https://gist.github.com/949831 I'm building the app using xcodebuild, and then signing and embedding the mobileprovision file using xcrun. When I do all this with a mobileprovision file I manually installed into Xcode using the GUI (e.g. double-clicking) it works fine. If I simply try to use a mobileprovision file copied onto the server with SCP it fails (Code Sign error:

How can I resolve “Error: No developer directory found at /Developer”?

元气小坏坏 提交于 2019-11-29 18:48:00
I just upgraded XCode to 4.3.1. I'm using a script to build (and then deploy through Testflight) my app. But I now receive this error: Error: No developer directory found at /Developer. Run /usr/bin/xcode-select to update the developer directory path. I've no /Developer dir in my machine: how can I fix it? sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer You could also do this instead ... sudo ln -s /Applications/Xcode.app/Contents/Developer /Developer Everything you guys answered is correct. But for those who hit the following error are missing a step: Error: "xcode-select

How to use xcodebuild with -only-testing and -skip-testing flag?

送分小仙女□ 提交于 2019-11-29 17:19:29
问题 I've noticed that there are two options in xcodebuild 's man page. -only-testing:TEST-IDENTIFIER constrains testing by specifying tests to include, and excluding other tests -skip-testing:TEST-IDENTIFIER constrains testing by specifying tests to exclude, but including other tests What I try: xcodebuild -workspace MyWorkSpace.xcworkspace / -sdk iphonesimulator / -destination id=7F52F302-C6AF-4215-B269-39A6F9913D5B / -scheme SCHEME-iOS / test -only-testing:??? What is TEST-IDENTIFIER mean ? 回答1

Is there a way of automatically writing custom values to the bundle's .plist during a build phase?

拥有回忆 提交于 2019-11-29 14:53:21
I'm setting up a CI system using Jenkins and am using agvtool to bump and set marketing & technical versions at build time. In addition to setting the versioning at build time it would be very useful to set a couple of of custom values in the .plist. Is this possible? You can edit the Info.plist at build time by taking advantage of the "Pre-actions" options to run a script. Here's an example script that increments a Key in the Plist called UserDefinedVersionNumber #!/bin/sh #Grabs info from plist plist=$SRCROOT"/"$INFOPLIST_FILE currentBuild=`/usr/libexec/PlistBuddy -c "Print

xcodebuild arguments ignored when using archive

橙三吉。 提交于 2019-11-29 13:41:55
My name is Luca and I am currently working on iOS continuous integration to build apps in xcode for distribution (Ad Hoc and App Store) using shell-scripting. So far I achieved good results with IPA files. My problem comes for distribution in App Store. To build a .app from script (passing some arguments) I do: xcodebuild -scheme myScheme -configuration myConfiguration PRODUCT_NAME=myProductName TARGETED_DEVICE_FAMILY=myTargetedDeviceFamily .... etc Since with XCode 4.2, apps submission is done using the XCode Organizer Window I must be able also to archive my executable. Therefore I modify

xcodebuild 7.3 can't enable bitcode

徘徊边缘 提交于 2019-11-29 12:17:10
问题 I'm developing an embbeded framework for iOS. In order to make an universal fat (with simulator and device slices), I created an aggregate target with a script that uses xcodebuild and lipo commands to generate it, as many people does. With XCode 7.x I had to add an user-defined settings with BITCODE_GENERATION_MODE=bitcode in order to enable it, but this has stop working since the last XCode 7.3 release. I've tried everything I found in the internet like add OTHER_CFLAGS="-fembed-bitcode" ,