I've been banging my head against the wall for a while with this one. Would appreciate any help!
I've got a scenario for testing purposes. I have one Framework project in XCode that has one HelloWorld class (and header). I have set the "Installation directory" to "@executable_path/../Frameworks" and have set the single header file as public. The framework bundle that is being built looks ok to me.
I have a second application project that includes the .framework bundle from the build-directory of the framework project (build/release/TestFramework.framework). The framework is included under "Frameworks/Linked Frameworks" and I have created the Copy Files build target. Everything compiles ok and the application bundle looks ok as well. The framework does get included in the Frameworks-directory within the .app bundle.
Now even though everything looks good to me I am still getting "image not found" errors from dyld when I try to run that app. When I run 'otool -L' on my app I see that the path to my framework is still set as /Users/myuser/Library/Frameworks. From what I've read I am under the impression that this should now be the value of the "Installation Directory" I have changed in the build settings for my framework but for some reason it has not changed. I have cleaned and re-built everything.
I am a noob with XCode and Cocoa so I am probably missing something obvious. Huge thanks to anybody that can help!
I've got a scenario for testing purposes. I have one Framework project in XCode that has one HelloWorld class (and header). I have set the "Installation directory" to "@executable_path/../Frameworks" and have set the single header file as public. The framework bundle that is being built looks ok to me.
I have a second application project that includes the .framework bundle from the build-directory of the framework project (build/release/TestFramework.framework). The framework is included under "Frameworks/Linked Frameworks" and I have created the Copy Files build target. Everything compiles ok and the application bundle looks ok as well. The framework does get included in the Frameworks-directory within the .app bundle.
Now even though everything looks good to me I am still getting "image not found" errors from dyld when I try to run that app. When I run 'otool -L' on my app I see that the path to my framework is still set as /Users/myuser/Library/Frameworks. From what I've read I am under the impression that this should now be the value of the "Installation Directory" I have changed in the build settings for my framework but for some reason it has not changed. I have cleaned and re-built everything.
I am a noob with XCode and Cocoa so I am probably missing something obvious. Huge thanks to anybody that can help!