xcodebuild

OTHER_CODE_SIGN_FLAGS keychain flag ignored?

筅森魡賤 提交于 2019-12-09 11:49:34
问题 I have just learned about the possibility to use OTHER_CODE_SIGN_FLAGS to specify the keychain which includes the cert needed for building and signing an app. But unfortunately I cannot get it to work. My script looks something like this: #!/bin/bash TARGET="MyProject" CONFIGURATION="Release" SDK="iphoneos" IDENTITY="iPhone Developer: John Doe (XX22RR22O)" KEYCHAIN="/Users/username/Library/Keychains/someKeyChain.keychain" PASSWORD="" security unlock-keychain -p ${PASSWORD} ${KEYCHAIN}

xcodebuild command tool without installing Xcode itself

冷暖自知 提交于 2019-12-09 11:19:00
问题 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. 回答1: Now that Apple has a CLI only install, that

Duplicate symbol from single library in iOS4.1 SDK

偶尔善良 提交于 2019-12-08 11:24:09
问题 I am developing an iPhone application. I am unfamiliar with Xcode, so please bear with me. I have the iOS 4.1 Device SDK. When I select "Simulator" in the "Active ..." drop-down box, my application compiles without errors and runs in the iPhone simulator. When I select "Device" in the drop-down box, however, I get the following linker error regarding a duplicate symbol: Ld build/PineCone.build/Debug-iphoneos/PineCone.build/Objects-normal/armv6/PineCone normal armv6 cd /Users/isaacsutherland

application is closing just after first launch

别来无恙 提交于 2019-12-06 13:39:14
问题 I have build signed the iPhone application with Adhoc provisioning profile,after installing the application directly through Xcode it launched and then closed. I want to know this is correct behavior or something is wrong in my source code? I am using Snow Leopard 10.6.6 version of Mac OS. 回答1: Please consider the following : restart xCode ensure the adHoc provisioning profile is properly installed on the device using the Organizer. do a clean & build use the organizer summary panel to add

xcodebuild pass arguments to application on iOS

与世无争的帅哥 提交于 2019-12-06 11:06:13
Is there a way I can pass variables to my iOS application unit tests via command line and xcodebuild? Use case: I have setup Travis CI and want to pass sensitive data (nobody should see it) to my tests. But my project is 100% open source I ended up with this solution: xcodebuild -workspace "..." -scheme "..." -sdk "..." -destination "..." -configuration Release SECRET_ARG1="$SECRET_VALUE1" SECRET_ARG2="$SECRET_VALUE2" build test; Then in test target build settings add these values: Finally, you can access your values using macro: #define STRINGIZE(x) #x #define STRINGIZE2(x) STRINGIZE(x) Now,

Setting Xcode Build Settings Terminal

心不动则不痛 提交于 2019-12-06 03:51:15
问题 I want to change build settings of a .xcodeproj without using Xcode IDE but through terminal commands (Codesigning Identity and Provisioning Profile to be exact). I have searched all over but only found commands to build/archive the project from terminal, which I Do Not Want. What I want is to just change the settings, so that when I open the project in Xcode, it has the signing identities and provisioning profile set to what I had set in Terminal. Xcodebuild command just builds/archives the

xcodebuild fails to build from terminal but succeeded from xcode

不问归期 提交于 2019-12-06 03:26:24
问题 I'm trying to build a framework using xcode 6-beta 3 when compiling it using xcode it works but when compiling it from a terminal with the command: xcodebuild -project <projName> -scheme <schemeName> -configuration Debug clean build I'm getting the following error CodeSign error: entitlements are required for product type 'Framework' in SDK 'Simulator - iOS 8.0'. Your Xcode installation may be damaged. and the build fails to complete. at the end of the log it says The following build commands

Signing app with xcodebuild command line with PROVISIONING_PROFILE fails

谁说胖子不能爱 提交于 2019-12-06 02:32:47
问题 I trying to sign my app command line using Xcode. Running xcodebuild command-line on MyApp.xcodeproj like so : xcodebuild -project "MyApp.xcodeproj" -target "MyApp" -sdk "iphoneos" -configuration *Release* PROVISIONING_PROFILE="xxxx-xxxx-xxxx-xxxx" CODE_SIGN_IDENTITY="iPhone Developer: something.com (SOMEVALUE)" Gives following error: Check dependencies Provisioning profile "iOS Team Provisioning Profile: *" doesn't include signing certificate "iPhone Developer: something.com (SOMEVALUE)".

How to use xcodebuild in Xcode 7 with a watch extension

我与影子孤独终老i 提交于 2019-12-06 00:36:34
问题 Our command used to be like this xcodebuild -configuration Release -target "xxx" -sdk iphoneos9.0 -scheme "xxx" archive Now in Xcode 7, we get this error: Build settings from command line: SDKROOT = iphoneos9.0 === BUILD TARGET xxx WatchKit Extension OF PROJECT Mobile WITH CONFIGURATION Release === Check dependencies target specifies product type 'com.apple.product-type.watchkit2-extension', but there's no such product type for the 'iphoneos' platform How do we specify to use iOS 9.0 SDK and

xcodebuild error - SecKey API returned: -25308

╄→尐↘猪︶ㄣ 提交于 2019-12-05 21:49:40
问题 I'm receiving the error below while trying to build my iOS app. This error only occurs while building for the Release configuration. Also, I'm using CocoaPods for my third-party dependencies and these builds are running on Jenkins through SSH. SecKey API returned: -25308, (null)/Users/iosbuilder/Library/Developer/Xcode/DerivedData/*/Build/Intermediates/ArchiveIntermediates/Production/InstallationBuildProductsLocation/Applications/*.app/Frameworks/AFNetworking.framework: unknown error -1