Tuesday, March 29, 2016

iOS App with Swift crashes due to Certificate issue


Below was what the crash report indicated. 

[deny-mmap] mapped file has no team identifier and is not a platform binary: /private/var/mobile/Containers/Bundle/Application/B7B2BE25-BEE1-4DD0-B6BD-2BF4E4932862/TestApp.app/Frameworks/libswiftCore.dylib

 We found origins that caused this issue, related to a missing attribute in “Subject” field InHouse Certificates :
    It was
Subject: UID=269J2W3P2L, CN=iPhone Distribution: Company Name, O=Company Name, C=FR
    And now we can find a OU field in new certificates :
    

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

The OU, which stands for organizational unit should be mandatorily present in the certificate it appears.

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

No comments:

Post a Comment