I created my own framework for one of my cocoa application. I added that framework to my project and called a method from that framework. When I tried to run my application it crashed:
Crash Log:
dyld: Library not loaded: @rpath/MMP.framework/Versions/A/MMP
  Referenced from: /Users/Midhun/Library/Developer/Xcode/DerivedData/MMPTest-ccvjtgedqkcftchapjehhwjbaqdq/Build/Products/Debug/MMPTest.app/Contents/MacOS/MMPTest
  Reason: image not found

Linking like:
FrameWorks folder under my Project's root directory.Link Binary With Libraries Section
Platform Details:
Xcode: 4.6.2
OS X : 10.8
What I have tried (After the crash)
otool. It shows the paths like:
But I couldn't fix the issue, yet. Please help me, thanks in advance.
Set framework installation directory to @executable_path/../Frameworks  

Now add copy files in your build phase, set destination to   Frameworks. click on your target, then on Editor (menu bar) --> Add build phase --> Add Copy Files Build Phase


If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With