简体   繁体   English

发布版本Xcode8在iOS 9设备上崩溃

[英]Release build Xcode8 crashes on iOS 9 device

I converted my application to Swift 2.3 in Xcode 8. There's no problem when running on simulator iOS 10 and iOS 9 (or debug build on physical iOS 9/10 device). 我在Xcode 8中将我的应用程序转换为Swift 2.3。在模拟器iOS 10和iOS 9(或物理iOS 9/10设备上的调试版本)上运行时没有问题。 Also our (large) set of automatic UI tests are running fine on iOS 10 device. 此外,我们的(大型)自动UI测试集在iOS 10设备上正常运行。 But when creating an (release) IPA for iTunes/TestFlight, this version is crashing on iOS 9 immediately on startup. 但是当为iTunes / TestFlight创建(发布)IPA时,此版本在启动时会立即在iOS 9上崩溃。 On iOS 10 is runs without any problem. 在iOS 10上运行没有任何问题。

Logging shows me this: 记录显示我:

... ...

dyld: lazy symbol binding failed: Symbol not found: _sqlite3_key_v2
      Referenced from: /var/mobile/Containers/Bundle/Application/A5200093-5C37-46AD-8C16-BC873469EC6F/*.app/*
      Expected in: dyld shared cache
Oct 10 11:51:45 iPhone *[1310] <Notice>: dyld: Symbol not found: _sqlite3_key_v2
      Referenced from: /var/mobile/Containers/Bundle/Application/A5200093-5C37-46AD-8C16-BC873469EC6F/*.app/*
      Expected in: dyld shared cache

... ...

Oct 10 11:51:45 iPhone diagnosticd[84] <Error>: unable to find offset 0x836c5da8 in shared cache for arch 'arm64'
Oct 10 11:51:45 iPhone diagnosticd[84] <Error>: Invalid offset 2204917160 into shared cache for arch 'arm64'

... ...

In the meanwhile I found out the issue myself. 与此同时,我自己也发现了这个问题。 It's a very specific for my situation. 这对我的情况非常具体。 It was a third party library (so be specific; JB4A-SDK) that caused the problem. 它是第三方库(因此具体; JB4A-SDK)导致了这个问题。 Updating to the latest version fixed the problem. 更新到最新版本修复了问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM