Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Xcode What does it mean when a linked static library turns red when switching build configurations?

I think the title is pretty clear. I have ran into this twice now.

The first time it indicated a problem, and my project wouldn't compile. The second time everything still worked.

Is it just a fluke if my code still builds when this turns red?

like image 317
Corey Floyd Avatar asked May 26 '09 23:05

Corey Floyd


1 Answers

Anything in the files and groups list that turns red indicates a missing file or directory. This is not necessarily cause for concern, because in many instances the file is expected to be built as part of your build process.

In the case of your linked static library, you are probably depending on a second target or project to build the static library. When you changed build configurations, Xcode noticed that it had not yet been built, so it shows it as red. When you built the project and the dependent library was itself built, it turned black again.

like image 200
danielpunkass Avatar answered Sep 30 '22 19:09

danielpunkass