Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Implicit dependencies do not work with xcodebuild

I have a little problem with one of my projects. In my workspace I have my main project and a lot of projects for static libraries. When I build from Xcode, everything works fine, but with xcodebuild, one of my project is not built, it seems that implicit dependencies do not work.k. Maybe I did something wrong with my configuration. So there it is.

My scheme configuration: enter image description here

My QAPreferences.a information: enter image description here

My target settings: enter image description here

From Xcode, if I build with buildAppTarget in debug for iphoneos, it works.

From xcodebuild, with command below, QAPreferences project is not built.

xcodebuild -workspace myProject.xcworkspace -scheme buildApp -configuration Debug -sdk iphoneos

It worked before, but I recently added QAPreferences, and it does work since this moment. Maybe the problem comes from QAPreferences project...

Regards, Quentin

like image 516
Quentin Avatar asked Feb 19 '13 09:02

Quentin


2 Answers

So I finally found why the QAPreferences was not build through xcodebuild but I still do not understand the reason. In fact QAPreferences 'Build Archive Architecture Only' was set to YES, I just set it to NO and now it works!

like image 177
Quentin Avatar answered Sep 21 '22 21:09

Quentin


I had a similar issue but forgot to specify the -workspace argument to xcodebuild, which led to it seeming like the implicit dependencies weren't working correctly. I realize this wasn't the issue with the original question, but for people having issues with implicit dependencies, this could be helpful.

like image 28
Liron Yahdav Avatar answered Sep 19 '22 21:09

Liron Yahdav