xcodebuild

How to have Xcode always copy files (even if they have not been detected as modified) when building?

家住魔仙堡 提交于 2019-12-01 17:11:01
I am developing an application which uses .js files stored in the Resources/javascript folder of my application bundle. In my Xcode 2.5 project I have created a folder reference ( not a group) to my javascript folder, which automatically added the folder to the Copy Bundle Resources build phase. The problem I have is when I modify my .js files, I need to clean my project then re-build it for the modified .js files to get copied into my application bundle when building. This is very time consuming since I re-build the whole project just to get an updated .js file in my app bundle. Could someone

How to have Xcode always copy files (even if they have not been detected as modified) when building?

末鹿安然 提交于 2019-12-01 16:38:31
问题 I am developing an application which uses .js files stored in the Resources/javascript folder of my application bundle. In my Xcode 2.5 project I have created a folder reference ( not a group) to my javascript folder, which automatically added the folder to the Copy Bundle Resources build phase. The problem I have is when I modify my .js files, I need to clean my project then re-build it for the modified .js files to get copied into my application bundle when building. This is very time

Timed out waiting 120 seconds for simulator to boot

旧巷老猫 提交于 2019-12-01 14:20:03
问题 It looks like Teamcity agent (TC version is 9.0 EAP) can't run iOS Simulator via testing shell script. I am using Build Step: Command Line , which running Custom Script and passing params to it. Teamcity agent was launched on Mac OS X Yosemite 10.10 by using shell script ../bin/mac.launchd.sh . Error from Build Log: [12:33:24][Step 2/2] 2014-11-20 11:33:25.421 xcodebuild[28083:289783] iPhoneSimulator: Timed out waiting 120 seconds for simulator to boot, current state is 1. [12:33:24][Step 2/2

RestKit/RestKit.h' file not found error during xcodebuild

与世无争的帅哥 提交于 2019-12-01 09:41:25
I am trying to use Jenkins-CI to auto-build an iOS project that uses Restkit, apparently, restkit resides as a project inside the main project. And the project builds successfully using the XCode-IDE. But when i use xcodebuild(jenkins uses it, and i did simulate the same) to build the project it gives the error RestKit/RestKit.h file not found Any clue whats going wrong, can this be corrected by using scheme file? If so how? or can I simulate, how XCode-IDE deals with this? I don't think am answering this question, but a proper workaround this would be making use of XCode Schemes. Also one

xcodebuild how to sign app with command line?

久未见 提交于 2019-12-01 06:02:25
I am trying to export an ipa using the command line, I can't do that within Xcode because the app is made for a client and I am not a member of his team (I really hope Apple changes that and makes it work like in Xcode 5 :/ ) Anyway, I did more research and tried this command: xcodebuild -exportArchive -archivePath pcdev.xcarchive -exportPath ~/Desktop/playcadeAdHoc.ipa -exportFormat ipa -PROVISIONING_PROFILE= xxxxxxx-8a61-4264-8fe9-0513bd7935e6 -CODE_SIGN_IDENTITY=iPhone Developer:xxxxx It did export the .ipa but I wasn't able to run it on my phone; I was stuck in the installing state. I went

xcodebuild how to sign app with command line?

独自空忆成欢 提交于 2019-12-01 03:46:44
问题 I am trying to export an ipa using the command line, I can't do that within Xcode because the app is made for a client and I am not a member of his team (I really hope Apple changes that and makes it work like in Xcode 5 :/ ) Anyway, I did more research and tried this command: xcodebuild -exportArchive -archivePath pcdev.xcarchive -exportPath ~/Desktop/playcadeAdHoc.ipa -exportFormat ipa -PROVISIONING_PROFILE= xxxxxxx-8a61-4264-8fe9-0513bd7935e6 -CODE_SIGN_IDENTITY=iPhone Developer:xxxxx It

xcode build fails with error code 65 without indicative message

半腔热情 提交于 2019-12-01 02:25:21
I'm experiencing weird behaviour with my iPhone CI job (running in TeamCity). Every once in a while our build fails without any indicative error in the build log. The build reaches the last stage of codesign validation and I get ** BUILD FAILED ** message immediately after. These are the last lines of the log of a good and bad builds - Bad Build [15:00:56] : [CodeSign] /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/Validation /Library/TeamCity/buildAgent/work/dc055fa257f562be/DerivedData/MyProject/Build/Products/AdHoc-iphoneos/MyProject.app [15:00:58]W

Xcode Post Build Copy File Actions

独自空忆成欢 提交于 2019-11-30 22:39:14
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. 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 /usr/bin/perl "${PROJECT_DIR}/myperlscript.pl" "${PRODUCT_NAME}" "${PROJECT_DIR}" fi Change the location and

Accessing user defined variables passed in from xcodebuild command line

China☆狼群 提交于 2019-11-30 17:53:25
I am running my xctests using xcodebuild and need to pass in some environment variables . In the example below ACCOUNT_ID and HOST_URL . I tried passing in the variables as both environment variable and accessing them from the test using getenv ("ACCOUNT_ID") xcodebuild -project CalculatorTestClient.xcodeproj -scheme CalculatorTestClient -destination '%s' ACCOUNT_ID=%s HOST_URL=%s test" And passing them in as user defaults and accessing them using [[NSUserDefaults standardUserDefaults] valueForKey:@"HOST_URL"]; xcodebuild -project CalculatorTestClient.xcodeproj -scheme CalculatorTestClient

xcodebuild failure clang:error no such file or directory:

落爺英雄遲暮 提交于 2019-11-30 17:32:25
Having a problem when building with xcodebuild. My project/app builds fine with the Xcode - gui. It simply isn't finding/building the libcryptopp library which is part of the build process. The error is: clang: error: no such file or directory: '/Users/builder/repo/ioskpay/xcode-cryptopp/cryptopp/build/Release-iphoneos/libcryptopp.a' This particular file should be derived from another project inside the main app - xcodebuild simply isn't correctly pointing at the right file folder which should be: ~/Library/Developer/Xcode/DerivedData Any ideas? To fix this, go to your project settings, go to