kstenerud / iOS-Universal-Framework

An XCode project template to build universal frameworks (arm7, arm7s, and simulator) for iOS / iPhone.
2.95k stars 473 forks source link

Can't find resources #64

Open rayflection opened 12 years ago

rayflection commented 12 years ago

I've built a fake embedded framework and included 2 images and a plist file. However, at run time, from inside the framework, I cannot get access to these resources. I've looked through all the bundles, but they're not there. I'm running Xcode 4.3.1 on Lion 10.7.3.

kstenerud commented 12 years ago

Xcode won't look inside a framework for resources. You need to use the .embeddedframework variant, which gets compiled to the same place as the framework.

rayflection commented 12 years ago

Thank you so much. This is a huge help!

sarperdag commented 12 years ago

for me, there is no embeddedframework under the products folder. Any ideas why? There is .framework but no .embeddedframework

sarperdag commented 12 years ago

ah sorry, just figured out that I have to click Show in Finder for MyFramework.framework, not the Products folder

rayflection commented 12 years ago

While we're on the subject, is there a way to have the project that the frame is built with use the embedded framework, rather than the regular one?

kstenerud commented 12 years ago

Unfortunately, no. The embedded framework is entirely my own creation, and Xcode doesn't actually know what it is, other than a folder.

rayflection commented 12 years ago

Good to know. Thanks.