xcodebuild

Xcode Post Build Copy File Actions

混江龙づ霸主 提交于 2019-11-30 17:26:29
问题 In Xcode, how can I call a 'shell script' which is a PERL script that copies the .app and .dsym files to a different directory? I want to pass the name of the project and/or the project's root directory to the script. I want to have the script called every time I build in release and distribution modes but not in debug mode. 回答1: Right-click on your target and choose Add->New Build Phase->New Run Script Build Phase. Inside the "Script" text area, add: if [ ${CONFIGURATION} != "Debug" ] then

Set “OTHER_LDFLAGS” through command line with xcodebuild

China☆狼群 提交于 2019-11-30 16:03:16
I have successfully compiled the project through command line .But i want set library(.a) file through command line . It successfully build with below command /Users/Mahen/Documents/workspace/TestingApplication/Test/Test.xcodeproj -configuration Debug build Now I want set Linking .a file through command line. I have try set "OTHER_LDFLAGS" option with -f orce_load /Users/Mahen/Documents/workspace/Test.iOS/build/Debug-iphoneos/libTest.a -lstdc++ But it couldn't load , Can you suggest the right way Linking .a files through the command line? Thanks I'm not clear what your exact problem is, but

How to specify app id when upload to iTunesConnect using command line

拈花ヽ惹草 提交于 2019-11-30 15:23:16
Summary I`m trying to automatize my applications upload to iTunesConnect. I have at least 6 apps and all are always "ready to upload". The problem is when I try to upload an app to iTunesConnect using command line, I have the following error message: "warning: There are more that one application pre-configured in iTunesConnect. Only the first will be used.". Questions How can I know what is the first? Is there a way to set the first? Is there a way to specify which app I am trying to submit? How I am doing it? Build Script... xcodebuild -target $TARGETNAME -configuration Release -sdk iphoneos

Failed to generate release build of cordova ios app

北慕城南 提交于 2019-11-30 14:39:36
I am using phonegap CLI 3.1 and XCode5. I am trying to generate the build for release mode through Phonegap CLI and Xcrun. I don't want to use Phonegap Build to upload the mobileprovision or whatever the process of them. I want to do it by xcrun to assign the mobileprovison to release build. 1) cordova build ios --release Compiling app on platform "ios" via command "/Applications/MAMP/htdocs/MyTest/MyTestApp/platforms/ios/cordova/build" --release Platform "ios" compiled successfully. 2) sudo xcrun -sdk iphoneos PackageApplication -v "ios/build/emulator/MyTestApp.app" -o "/Users/mymac/Desktop

Updating Xcode yields error “cannot find code object on disk” during codesigning

蹲街弑〆低调 提交于 2019-11-30 13:57:34
问题 I just updated to the newest version of Xcode and encountered an error while running our automated build scripts (they use the xcodebuild and xcrun commands). The error occurs immediately after the ### Codesigning '/Users/... log statement and looks like this: Program /usr/bin/codesign returned 1 : [/var/folders/__/63j90nkn2lg18ct1nq791_nc0000gn/T/g5hbigh1tM/Payload/CurrentTarget.app: replacing existing signature /var/folders/__/63j90nkn2lg18ct1nq791_nc0000gn/T/g5hbigh1tM/Payload

Building a backwards compatible OS X app, when a new API is present?

流过昼夜 提交于 2019-11-30 13:39:06
I'm trying to upgrade an app ( Clarke ) to provide 10.6 compatibility. My plan is to use two different code paths depending on the version of OSX in use. On 10.5 it will use one controller, which consists of completely custom code that isn't dependent on any specific Cocoa API. On 10.6 it will use another controller, which wraps the new CoreLocation API in an identical interface, based on the same abstract class. At runtime the app will switch between the controllers by detecting the OS version. This works fine on 10.6 built for the 10.6 SDK, but the same build blows up on 10.5 with: 10/09

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

三世轮回 提交于 2019-11-30 11:46:24
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 ? Fang-Pen Lin Like what Marcio said, it's a path like string. For example, say you have a scheme named

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

旧时模样 提交于 2019-11-30 10:31:00
问题 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

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

只谈情不闲聊 提交于 2019-11-30 10:18:08
问题 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

Updating Xcode yields error “cannot find code object on disk” during codesigning

坚强是说给别人听的谎言 提交于 2019-11-30 09:14:00
I just updated to the newest version of Xcode and encountered an error while running our automated build scripts (they use the xcodebuild and xcrun commands). The error occurs immediately after the ### Codesigning '/Users/... log statement and looks like this: Program /usr/bin/codesign returned 1 : [/var/folders/__/63j90nkn2lg18ct1nq791_nc0000gn/T/g5hbigh1tM/Payload/CurrentTarget.app: replacing existing signature /var/folders/__/63j90nkn2lg18ct1nq791_nc0000gn/T/g5hbigh1tM/Payload/CurrentTarget.app: cannot find code object on disk I found docs here listing and briefly describing the error but