swift - Bundle not found in iOS Framework -


at moment working on framework want use in different projects. framework contains couple of swift classes resources xibs , images. further using cocoapods integration in other projects.

to handle resources tried 2 different approaches. first easy 1 creating resource-bundle using resource_bundles cocoapods. in beginning, xib files , images appeared in "resources" folder of "development pods", tried use them app crashed because could't found in bundle. debugging nsbundle.mainbundle() shows resourcebundle.bundle not loaded, if appeared in "products" folder.

in second approach created bundle-target in framework , copied resources bundle. attached created bundle using cocoapods resource_bundle again.

s.resource_bundle = { 'resourcebundle' => [ '.myprojectbundle.bundle'] }

the bundle attached , appeared in "resources" directory of "development pods", again xibs couldn't loaded, neither find myprojectbundle.bundle in nsbundle.mainbundle()

framework , bundle

i hope can me issue.

cheers, chris


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -