我为我们的应用程序创建了一个框架。提交到商店或开发一切正常。但是当我们将其保存为企业版并在设备上运行时,它会因此崩溃;
Dyld Error Message: Library not loaded: @rpath/MyFramework.framework/MyFramework Referenced from: /private/var/mobile/Containers/Bundle/Application/989A855E-50A5-41DF-9D6E-DC57CB91EA6A/MyApplication.app/MyApplication Reason: no suitable image found. Did find: /private/var/mobile/Containers/Bundle/Application/989A855E-50A5-41DF-9D6E-DC57CB91EA6A/MyApplication.app/Frameworks/MyFramework.framework/MyFramework: mmap() error 1 at address=0x1000E8000, size=0x0005C000 segment=__TEXT in Segment::map() mapping /private/var/mobile/Containers/Bundle/Application/989A855E-50A5-41DF-9D6E-DC57CB91EA6A/MyApplication.app/Frameworks/MyFramework.framework/MyFramework Dyld Version: 353.12
Binary Images: 0x120024000 - 0x12004bfff dyld arm64 <75c68bbe28b13fcd91014f15139742dc> /usr/lib/dyld
如何解决这个问题?提前致谢。
最佳答案
看来您只需要吊销企业证书并创建一个新证书即可。您还需要重新生成您的配置文件,并且它们将使用您现有的证书进行签名。使用新证书一切都会恢复正常。
https://www.airsignapp.com/ios-apps-using-swift-crash-when-signed-with-inhouse-certificate/
关于ios - 未加载 InHouse/Enterprise 应用程序的 Cocoa Touch 框架,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30006474/