Cannot find output .a Cocoa Static Library (in xcode 4)

I have a project with two goals, one of them is the Cocoa static library, the other is an accompanying test project. Although we built the main project differently over and over again, I cannot find the .a file that I expect it to create.

In fact, I cannot find the build folder associated with the project. I need to connect to the library in the application, but cannot do this if I cannot find the file for the link.

  • These properties are set correctly:

     (Build Products Path) SYMROOT = build (Intermediate Build Files Path) OBJROOT = $(SYMROOT) 
  • All tests pass (which means the code MUST be built correctly?)

  • Violation of the code causes the assembly to break - again suggesting that it builds.

In addition, the Products> libproject.a file is red in the xcode project navigation.

I also checked the DerivedData directory, but everything seems to be created, these are objects for OCunit objects. However, the .a file I can reference.

Where is my .a file?

Any help would be greatly appreciated.

+4
source share
1 answer

It is probably located at ~/Library/Developer/Xcode/DerivedData/ .

+5
source

Source: https://habr.com/ru/post/1340962/


All Articles