I have an Xcode project P2 which is part of a workspace where I have another project P1.
When I build P1, it creates a Cocoa Touch Framework. In P2, I have added the framework created by P1 by going to General-->Link Frameworks and Libraries-->Select P1.framework.
Then I build the P2 project and it compiles successfully with the P1.framework integrated in it. So, all good with this.
Now instead of opening the workspace and building the P2 project from workspace, I directly open the P2 project by clicking p2.xcodeproj
file. I can see the p1.framework
file in it.
But, now when I try to build P2, it gives error:
framework not found P1. clang: error: linker command failed with exit code 1 (use -v to see invocation).
Can anyone help me to understand why P2 gives error when directly opened from p2.xcodeproj
file?