0
NSBundle *customBundle = [NSBundle bundleWithPath:[[NSBundle mainBundle] pathForResource:@"CustomBundle" ofType:@"bundle"]];
当我执行上面的代码时,它在调试模式和专用生成中返回customBundle
。但是当我在TestFlight Build/App Store Build中使用32位设备执行时,它返回nil
。此外customBundle
通过CocoaPods添加到主包。我正在使用Xcode 7.3。在NSBundle中加载自定义NSBundle
我有这个奇怪的错误只适用于iOS 9+,它适用于iOS 8。对于iOS 8,它适用于所有Build/Adhoc/Appstore构建,包括所有32位和64位设备。