iOS-Framework
iOS-Framework copied to clipboard
Query about using bundle contents in the framework itself
Great instructions for framework creation. This was driving me crazy until I followed the steps you lay out.
I'm having problems referencing the contents of my bundle from within the framework itself. The bundle directory generated has the resources (a couple of .wav files) but when I execute the method "frameworkBundle" it first gets the main bundle path and then looks up my target bundle from there. The problem is that the main bundle path, on my system, is
/Applications/Xcode45-DP4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk/Developer/usr/bin
The location of the generated bundle directory is
/Users/kevan/Library/Developer/Xcode/DerivedData/VoiceRecognizer-gspaqmheqchgdidaxgbqjpbrwcpp/Build/Products/Debug-iphonesimulator/VoiceRecognizer.bundle
(VoiceRecognizer is the name of my bundle and framework).
Any tips here? I didn't see anything in your steps to do anything to add the bundle to the main project.
I should say that this problem occurs when I run unit tests against my framework.
Have you got any solution for this issue ?