xcodebuild

Can't use my own kestore with xcodebuild under Mavericks

房东的猫 提交于 2019-12-23 22:28:08
问题 I'm trying to migrate some iOS xcode build servers to use Mavericks which is essential for xcode 6 builds. However, invoking xcodebuild with code that used to work in mountain lion just doesn't seem to work anymore and results in: Code Sign error: No codesigning identities found: No codesigning identities (i.e. certificate and private key pairs) that match the provisioning profile specified in your build settings (“provision name”) were found. Our build command is pretty standard and the

Add Xcode Developer Account from the Command Line

六眼飞鱼酱① 提交于 2019-12-23 13:11:16
问题 I am trying to use xcodebuild -allowProvisioningUpdates on a machine that I only have access via the command line (Azure Devops macOS Hosted Machine). Unfortunately, according to man xcodebuild in order to use -allowProvisioningUpdates it seems that "Requires a developer account to have been added in Xcode's Accounts preference pane." Giving this, is there a way do add the account via the command line? Thank you, Cosmin 来源: https://stackoverflow.com/questions/55757805/add-xcode-developer

Best way for uploading binary Application Loader or Xcode organizer

不打扰是莪最后的温柔 提交于 2019-12-23 10:19:47
问题 I want to know best way for uploading binary to itunestore. Is it through Application loader or using Xcode organizer archive build, validate and submit. 回答1: You don't use Application Loader in Xcode 4 anymore. You can only upload through the Xcode Organiser... As zekel mentions below, you can still use Application Loader to submit your IPA files. The Xcode Organiser method is useful if you are building the app yourself and want to validate and submit from one place. Application Loader

“arch already exists in fat dylib” in build log [closed]

随声附和 提交于 2019-12-23 07:36:26
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . This line repeats many times in my build logs of my iOS project (its built by jenkins). arch already exists in fat dylib Is it something to worry about? It builds fine, but its a little hard to read the build logs with that being repeated hundreds of times. I am using ARC and iOS 7. I do not have any more

Which one is better: DMG or PackageMaker

吃可爱长大的小学妹 提交于 2019-12-23 03:42:16
问题 Here's my requirement: 1. I want my installable to have a custom license agreement 2. run another package as part of the installation 3. let the user have an option of running the app on start-up What should I use, create a dmg or use PackageMaker available with xcode? Are there any good web pages showing how to use PackageMaker? Thanks. 回答1: They serve different purposes: DMG (disk images) is just a container file format to solve age-old issues with multi-fork files and transfer protocols

Added Mac target to iOS project in Xcode, now 'Error Starting Executable File'

牧云@^-^@ 提交于 2019-12-22 10:55:04
问题 I've decided to make a Mac OSX port of my iOS app, so based on a number of suggestions I've received I've simply added a new Cocoa target to my iOS project, and set up a series of 'libraries' (which encapsulate the core business logic of my app) which I have added to the OSX target. I have not added all of the UIViewController code to the OSX target - I will have to rewrite the UI code, for obvious reasons. The app is building fine (no compiler errors for missing libraries, etc.), but for

ERROR ITMS-90046 using xctool / xcodebuild vs XCode Archive's success

霸气de小男生 提交于 2019-12-21 17:40:40
问题 I've got a command line script I use to compile, archive and submit my ios builds to ITC for TestFlight deployment. They work great, but I recently ran into an issue when trying to use an embedded framework within my otherwise working project. My script compiles and archives the project successfully but is getting ITC signing errors because of the embedded binary conflict. xctool -workspace $BASE_DIR/$PROJECT_NAME -scheme $SCHEME -configuration $CONFIG clean archive -archivePath ./$PRODUCT

Jenkins Can't Run xcodebuild from project folder

断了今生、忘了曾经 提交于 2019-12-21 11:32:08
问题 I'm attempting to set up a CI environment for an iOS application. So far I've gotten xcodebuild to build the test build correctly from the command line but when Jenkins tries to execute it I get the following read out in the console: Started by user anonymous Building in workspace /Users/Shared/Jenkins/Home/jobs/Unit Tests/workspace Working directory is /Users/iosappdev/Documents/Xcode Projects/rules. [rules] $ /usr/bin/xcodebuild -version FATAL: Cannot run program "/usr/bin/xcodebuild" (in

Xcode preprocessor dependent on environment variable

冷暖自知 提交于 2019-12-21 07:57:10
问题 I have a configuration that I'd like to dynamically control a preprocessor defined value through an environment variable. Is this possible? if it is how do I set in the preprocessor define table that I want to set the value based on the environment variable? 回答1: In the "Build Settings" of a target of your project, you can add something like that to the "Preprocessor Macros" field: DEV_USERNAME="${USER}" Of course, the USER variable can be replaced by any environment variable available to

Running iOS Unit Tests from Command Line with Xcode 4.5

你离开我真会死。 提交于 2019-12-21 07:10:56
问题 While running Unit Tests from command line (necessary for Jenkins) used to work until Xcode 4.4.1 with this hack, it does not seem to work anymore with Xcode 4.5. Now I get the following error message: ....MyTests.build/Script-641C6E0115D3BECD004175F...: line 3: 16669 Segmentation fault: 11 "${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests" Any ideas how to make it work again? 回答1: I had the same issue after updating. You have to pass the argument RUN_UNIT_TEST_WITH_IOS_SIM=YES to the command