场景一: dyld: Library not loaded xxx/Frameworks/libswiftCore.dylib,xxxx image found. Did find
dyld: Library not loaded: @rpath/libswiftCore.dylib Referenced from: /private/var/mobile/Containers/Bundle/Application/18AA6CF7-8A7D-4B93-8302-DD855C4AE755/SwiftDemo04.app/SwiftDemo04 Reason: no suitable image found. Did find:/private/var/mobile/Containers/Bundle/Application/18AA6CF7-8A7D-4B93-8302-DD855C4AE755/SwiftDemo04.app/Frameworks/libswiftCore.dylib: mmap() error 1 at address=0x10009C000, size=0x0018C000 segment=__TEXT in Segment::map() mapping /private/var/mobile/Containers/Bundle/Application/18AA6CF7-8A7D-4B93-8302-DD855C4AE755/SwiftDemo04.app/Frameworks/libswiftCore.dylib
场景二:DYLD, Library not loaded: @rpath/xxx.framework,xxx: code signing blocked mmap() of '/private/va
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Description: DYLD, Library not loaded: @rpath/AFNetworking.framework/AFNetworking | Referenced from: /var/containers/Bundle/Application/B297926B-3FA6-4AA8-ABF6-B72553139F5F/TestZZ.app/TestZZ | Reason: no suitable image found. Did find: | /private/var/containers/Bundle/Application/B297926B-3FA6-4AA8-ABF6-B72553139F5F/TestZZ.app/Frameworks/AFNetworking.framework/AFNetworking: code signing blocked mmap() of '/private/var/containers/Bundle/Application/B297926B-3FA6-4AA8-ABF6-B72553139F5F/TestZZ.app/Frameworks/AFNetworking.framework/AFNetworking' | /private/var/containers/Bundle/Application/B297926B-3FA6-4AA8-ABF6-B72553139F5F/TestZZ.app/Frameworks/AFNetworking.framework/AFNetworking: code signing blocked mmap() of '/private/var/containers/Bundle/Application/B297926B-3FA6-4AA8-ABF6-B72553139F5F/TestZZ.app/Frameworks/AFNetworking.framework/AFNetworking' | /private/var/containers/Bundle/Application/B297926B-3FA6-4AA8-ABF6-B72553139F5F/TestZZ.app/Frameworks/AFNetworking.framework/AFNetworking: code signing blocked mmap() of '/private/va
Triggered by Thread: 0
解决方法:
重新创建企业版证书,却记一点:一定要从钥匙串新建 “从证书颁发机构请求证书” “从证书颁发机构请求证书” “从证书颁发机构请求证书”;此步骤非常重要。
PS:使用旧“CertificateSigningRequest.certSigningRequest”文件创建多少遍证书都是徒劳,都解决不了安装企业版证书闪退问题,需要注意一点开发证书却能正常运行。