I just wrote a cocoapod and published it. Locally, it works just fine with the example.
However, when I try to install it through 'pod install' and use it, it has problems loading the XIB files.
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle:
I am currently loading the XIB file like this:
NSString* const frameworkBundleID = @"org.cocoapods.MyPod";
NSBundle *podBundle =[NSBundle bundleWithIdentifier:frameworkBundleID];
earlier I also tried (the below) which worked locally as well.
NSBundle *podBundle = [NSBundle bundleForClass:[self class]];
What could I be doing wrong that makes it work locally but not after publishing?
Just for info, here's how the spec looks:
s.source_files = 'Pod/Classes/**/*.{h,m}'
s.resource_bundles = {
'NetLogger' => ['Pod/Assets/*.xcassets', 'Pod/Classes/*.xib']
}