iOS-Framework icon indicating copy to clipboard operation
iOS-Framework copied to clipboard

Query about using bundle contents in the framework itself

Open ghost opened this issue 13 years ago • 1 comments

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.

ghost avatar Aug 18 '12 03:08 ghost

Have you got any solution for this issue ?

rameshal avatar Jun 04 '13 21:06 rameshal