NSBundle *customBundle = [NSBundle bundleWithPath:[[NSBundle mainBundle] pathForResource:@"CustomBundle" ofType:@"bundle"]];当我执行上面的代码时,它以Debug和Adhoc构建的形式返回customBundle。但是当我在nil Build/App中使用32位设备执行时,它会返回TestFlight。此外,customBundle通过CocoaPods添加到主包中。我正在使用Xcode 7.3。
我只在iOS 9+中使用这个奇怪的bug,它在iOS 8中工作得很好。对于iOS 8,它可以很好地工作在所有Build/Adhoc/Appstore构建中,包括所有32位和64位设备。
发布于 2016-04-28 11:32:53
我也有过同样的问题。
这个错误是因为当您在64位设备上构建包时,xcode将键UIRequiredDeviceCapabilities添加到包中的info.plist中。
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>arm64</string>
</array>您可以通过删除info.plist中的info.plist键或使用32位设备重新构建包并更新podspec来解决这个问题。
https://stackoverflow.com/questions/36846415
复制相似问题