6

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

4
  • 2
    Why not make them explicit dependencies then? Commented Feb 19, 2013 at 9:45
  • I tried, but does not work neither. :( Commented Feb 19, 2013 at 22:25
  • Wait are you talking about dependencies, or linked libraries? Commented Feb 20, 2013 at 1:04
  • I think it is a dependencie, I have a QAPreferences project in my project that build a libQAPreferences.a. But I found what is the difference but this project and the others. Commented Feb 20, 2013 at 8:26

2 Answers 2

4

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Indeed, after I "upgraded" an old project which had Referenced Projects to be a Workspace instead, my build script needs to reflect this upgrade and build from the workspace instead. Sometimes we miss the obvious. Thank you :)
3

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!

1 Comment

Saved me a ton of time sir.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.