Enterprise Distribution not playing nice with iOS8 in Swift App

一个人想着一个人 提交于 2019-12-03 15:13:22

All explained in details in this article :

https://www.airsignapp.com/ios-apps-using-swift-crash-when-signed-with-inhouse-certificate/

We can confirm that after create a new cert and .mobileprovision, no more issues.

We found origins that caused this issue, related to a missing attribute in “Subject” field InHouse Certificates :

BEFORE Subject: UID=269J2W3P2L, CN=iPhone Distribution: Company Name, O=Company Name, C=FR

AFTER Subject: UID=269J2W3P2L, CN=iPhone Distribution: Company Name, OU=269J2W3P2L, O=Company Name, C=FR

flatronka

I think Apple has already summarized it under Swift app crashes when trying to reference Swift library libswiftCore.dylib

Refer to my previous answer.

You can try to change Swift Compiler - Optimization level setting to "None" in Build settings of the target. It should help.

I ran into this myself and tried a whole host of solutions but nothing worked. The only thing left to try was to revoke both the certificate and provision and to re-generate both. This ultimately resolved it for me.

I solved the issue without creating a new certificate.

  1. upgrade system to MacOSX 10.10
  2. upgrade Xcode or command line tools to 6.1
  3. Install Apple Worldwide Developer Relations Certificate to keychain. (Download from this page http://www.apple.com/certificateauthority/ and the direct download url is http://developer.apple.com/certificationauthority/AppleWWDRCA.cer )
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!