xcodebuild

Timeout when running xcodebuild tests under Xcode 6 via SSH

柔情痞子 提交于 2019-11-27 03:01:27
I seem to be having issues with integrating Xcode6 with jenkins, I currently have this setup and working with Xcode 5. With xcode 6 running remotely via SSH the simulator time-out, when I run locally it succeeds. Command xcodebuild -workspace PROJECTNAME.xcworkspace -scheme BGO_Tests -destination 'platform=iOS Simulator,name=iPhone 5s' -derivedDataPath ./Build clean test 2014-08-19 10:46:36.591 xcodebuild[33966:381f] iPhoneSimulator: Timed out waiting 120 seconds for >simulator to boot, current state is 1. Testing failed: Test target BGO_Tests encountered an error (Timed out waiting 120

How to detect that a provisioning profile is for development or distribution, programmatically

a 夏天 提交于 2019-11-27 01:22:27
问题 I would like to detect if a given provisioning profile is a development profile or a distribution (adhoc or app store) profile. I need to do this purely programmatically. I already understand how to detect adhoc vs appstore. And am specifically interested in dev vs. distribution. I've examined the plists internal to each type of profile and cannot find a discernable difference (via security cms -D -i #{@profilePath} ). I've also looked into the openssl api and am using this for some

Code sign error with Xcode 3.2

懵懂的女人 提交于 2019-11-27 00:53:59
问题 I had a fully working build environment before upgrading to iPhone OS 3.1 and Xcode 3.2. Now when I try to do a build, I get the following: Code Sign error: Provisioning profile 'FooApp test' specifies the Application Identifier 'no.fooapp.iphoneapp' which doesn't match the current setting 'TGECMYZ3VK.no.fooapp.iphoneapp' The problem is that Xcode somehow manages to think that the "FooApp Test" provisioning profile specifies the Application Identifier "no.fooapp.iphoneapp", but this is not

How can I use the legacy build system with Xcode 10's `xcodebuild`?

微笑、不失礼 提交于 2019-11-26 22:39:36
问题 I'd like to use the new build system of Xcode 10 for development, but our build in our continuous integration system fails since the xcarchive produced has an issue: the Info.plist in the xcarchive is missing the ApplicationProperties key and the information therein! It turns out switching back to the legacy build system fixes this. This can be done in the workspace settings (File > Workspace Settings… > Build System). But I would prefer to keep the new build system for development and only

xcodebuild says does not contain scheme

五迷三道 提交于 2019-11-26 22:29:08
问题 I have a curios issue. I have a project that I've worked on and always built from the XCode IDE, and it worked fine. Now I'm setting up Bamboo to build the project and as such am building it from the command line. The issue is, if I check my code out of GIT and then use xcodebuild to build it it says that the scheme cannot be found, but if I open the project, it builds and if I then try to build it again from the command line with the same command, it works. What magic is XCode doing when I

xcodebuild different provisioning profile for target dependency

微笑、不失礼 提交于 2019-11-26 22:08:28
I'm trying to build my app with xcodebuild: xcodebuild -workspace "RG.xcworkspace" -scheme "Production" -configuration "Release" build CONFIGURATION_BUILD_DIR="${TEMP_DIR}" PROVISIONING_PROFILE="1234-5678-9098-7654-3210" My scheme has two targets. One target is the app, the other is the app extension (I built an extension for Safari). The app extension is a target dependency. Each target requires a separate provisioning profile. I don't know how to specify the PROVISIONING_PROFILE for the dependency. I'm getting this error, as expected: CodeSign error: code signing is required for product type

How to filter the xcodebuild command line output?

帅比萌擦擦* 提交于 2019-11-26 19:45:10
问题 Running xcodebuild from the console will bring you very verbose output and I wasn't able to locate any options for limit its output in order to display only warnings and errors. I'm looking for a way to capture the xcodebuild output and filter it. It would prefer a Python solution that will work with pipes but I'm open to other approaches as long they are command line based solutions. Are any tools that are already able to do this? 回答1: To only see the error output messages, redirect the

Is the project.xcworkspace file important?

寵の児 提交于 2019-11-26 19:22:15
问题 I am doing command line xcodebuild using a shell script. My problem is if I open and close the xx.xcodeproj file once and then use that command it works well. Somehow if I get deep into the file changes, this project.xcworkspace is the only file that has changed. Is this file valid and should I check it into version control? Will this cause any issues? I've heard that it's as important as .pbxproj : is this true? I couldn't find any valid documentation which talks about the roles and

“Too many symbol files” after successfully submitting my apps

大兔子大兔子 提交于 2019-11-26 18:43:29
问题 I downloaded Xcode 6 GM and submitted two Swift apps to the app store today. Both passed all pre-upload verification and all the other stuff they had to pass and were successfully submitted. But then I got two emails from Apple... one for each program and they both said this: Dear developer, We have discovered one or more issues with your recent delivery for "xxxxxxxx" (my app name removed). Your delivery was successful, but you may wish to correct the following issues in your next delivery:

Running xcodebuild from a forked terminal

戏子无情 提交于 2019-11-26 17:54:29
问题 I'm trying to setup an automated build server for an iPhone application. I'd like to be able to have nightly adhoc beta builds so that testers can follow the development. I've setted up xcode successfully xcode to perform adhoc builds and I can also launch the build from the command line: xcodebuild -configuration AdHoc -sdk iphoneos2.2 clean build The problem I'm having is that the following line doesn't work from a forked terminal (using nohup or screen) and failed with the following