Quick code crash, log: dyld: library not loaded: @ rpath / libswiftCore.dylib

I am debugging a simple fast application, it can work fine in the simulator, but on a real machine that works immediately after a crash.

system version, ios 8 xcode version, 6.0.1

crash log

dyld: library not loaded: @ rpath / libswiftCore.dylib Link to: / private / var / mobile / Containers / Bundle / Application / 002E2F03-EE10-433B-B95F-AE3760E777DA / sMdp.app / sMdp Reason: no suitable image was found. Found: / private / var / mobile / Containers / Bundle / Application / 002E2F03-EE10-433B-B95F-AE3760E777DA / sMdp.app / Frameworks / libswiftCore.dylib: mmap () error 1 at address = 0x100104000, size = 0x00194000 segment = __ TEXT in the Segment :: map () / private / var / mobile / Containers / Bundle / Application / 002E2F03-EE10-433B-B95F-AE3760E777DA / sMdp.app / Frameworks / libswiftCore.dylib display

+8
ios ios8 swift xcode6 crash
source share
2 answers

These problems are apparently caused by the certificate. Apple completed the Organization Unit in the certificate. Therefore, you need to request a new certificate and install it. The field will be filled in and your application will work correctly.

Source (and loans to those guys): https://www.airsignapp.com/ios-apps-using-swift-crash-when-signed-with-inhouse-certificate/

+1
source share

Just go to your certificates in Keychain, Right Click โ†’ Get Info โ†’ Trust โ†’ find the field with the name โ€œWhen using this certificateโ€ โ†’ Select the option โ€œUse system defaultโ€.

+1
source share

All Articles