xcodebuild

Code Signing Resource Rules Path fails on Jenkins, CODE_SIGN_RESOURCE_RULES_PATH

五迷三道 提交于 2019-11-28 00:38:00
问题 I am little concerned about how people treat the following issue. Basically it sounds like "Build fails on Jenkins with the ResourceRules.plist: cannot read resources " My circumstances are: 1) Jenkins 2) Locally I work in Xcode 7 beta (on a separate branch) 3) My teammates work in 6.4.1 and for them everything works fine 4) Jenkins slave has Xcode 6.4.1 installed Some of you will say "this question was asked millions of times", like here, here, here, here. But the documentation says the

Building with LLVM and any optimization causes app to crash on startup

烂漫一生 提交于 2019-11-27 20:49:25
When I try to build my app with LLVM 2.0 in XCode 4.0.1 and any level or optimization that is not none (anything but -O0), the app crashes after i launch it on the device (simulator is ok). I can't seem to debug the crash as it does not happen when i build in xcode and attach via GDB/LLDB. Also, the crash only happens when i build the app on the command line with xcodebuild; building via the XCode IDE doesn't crash even with the exact same project settings. I can't see any useful information in the crash logs, as the crash happens outside my code: Exception Type: EXC_BAD_ACCESS (SIGBUS)

How to filter the xcodebuild command line output?

自闭症网瘾萝莉.ら 提交于 2019-11-27 18:58:31
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? To only see the error output messages, redirect the standard output to /dev/null (a special file that works as a black hole) like this: xcodebuild > /dev/null If

Xcode 10: unable to attach DB error

☆樱花仙子☆ 提交于 2019-11-27 18:31:23
When updating to Xcode 10, iOS static library target fails to build. Way how I am trying to build it is following: xcodebuild -target TargetName -configuration Release clean build With Xcode 9 everything runs smoothly, but when Xcode 10 is used for build, I am getting following error (after clean runs smoothly): note: Using new build system note: Planning build note: Constructing build description Build system information error: unable to attach DB: error: accessing build database "/Users/uerceg/random-path/build/XCBuildData/build.db": database is locked Possibly there are two concurrent

Is the project.xcworkspace file important?

大兔子大兔子 提交于 2019-11-27 18:27:14
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 responsibilities of various files in the xcode project files. Please provide links which help me to understand

xcodebuild says does not contain scheme

老子叫甜甜 提交于 2019-11-27 16:45:45
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 open the project or am I doing something dumb, maybe excluding a file in my .gitignore that I shouldn't?

“Too many symbol files” after successfully submitting my apps

丶灬走出姿态 提交于 2019-11-27 16:42:44
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: Too many symbol files - These symbols have no corresponding slice in any binary [1431D977-72BC-308F

Continuous Integration for Xcode projects?

纵然是瞬间 提交于 2019-11-27 16:41:45
After using Hudson for continuous integration with a prior project, I want to set up a continuous integration server for the iPhone projects I'm working on now. After doing some research it looks like there aren't any CI engines designed specifically for Xcode, but one guy has had success using Cruise Control combined with the xcodebuild CLI tool . Has anyone here tried this? Are there any CI engines that work well with Xcode projects? I'm probably going to give Cruise Control a try. I'll post an answer with my findings. Silentcode I'm successfully using Hudson on the mac with xcodebuild. With

How can I build a specific architecture using xcodebuild?

穿精又带淫゛_ 提交于 2019-11-27 11:49:19
问题 I have legacy code that relies on pointers being 32-bit and want to use xCodeBuild to build that code from command line . This doesn't work for some reason. Here's the command I use: xcodebuild -configuration Debug -arch i386 -workspace MyProject.xcworkspace -scheme MyLib here's the output I get [BEROR]No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386). Clearly it's trying to build x86_64 code and failing miserably since I only enabled i386 from VALID

git error “unable to locate xcodebuild” after a fresh OS X Mavericks upgrade

早过忘川 提交于 2019-11-27 11:06:48
问题 When I try to run previously working git commands, I get this: dyld: Symbol not found: _sqlite3_intarray_bind Referenced from: /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData Expected in: /opt/local/lib/libsqlite3.dylib in /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData git: error: unable to locate xcodebuild, please make sure the path to the Xcode folder is set correctly! git: error: You can set the path to the Xcode folder using /usr/bin/xcode-select