after adding the OCMock framework i got that strange error... :(
ld: file not found: -fobjc-arc clang: error: linker command failed with exit code 1 (use -v to see invocation)
It looks like if the compiler flag tries to be loaded by XCode?
Any idea?
Best regards, hijolan
I was getting the exact same error on Xcode 4.3.2. Here's my navigator log; I'm adding it for Google juice.
The OCMock instructions explicitly ask you to add linker flags --
-ObjC
and-force_load
.-force_load
is expecting a value -- see the answer to this question that explains that-all_load
is what to use if you don't want to specify a library name.As someone who just spent 25 minutes on this, I should check again with the OCMock tutorial -- I don't think it was very clear in this instruction.
This blog post has a much better image that shows exactly how your settings should look.