gpt4 book ai didi

ios - 嵌入在根框架中的签名子框架不起作用(Xcode 11.2.1)

转载 作者:行者123 更新时间:2023-12-01 09:58:12 28 4
gpt4 key购买 nike

我有一个小型的概念验证应用程序,我试图在我的框架(AequumPOCFramework.framework)中嵌入(并签署)一个框架(Alamofire),但是,当我尝试部署到我的设备时,它不断给出我的错误

....not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.



如果我只是尝试部署自己的框架,而不在其中嵌入 Alamofire,那么一切正常。

部署到我的 iphone 时的完整错误是:

dyld: Library not loaded: @rpath/Alamofire.framework/Alamofire Referenced from: /private/var/containers/Bundle/Application/EDB697EB-EA15-4301-B4B6-A8FE1F0212BE/PocIOS.app/Frameworks/AequumPOCFramework.framework/AequumPOCFramework Reason: no suitable image found. Did find: /private/var/containers/Bundle/Application/EDB697EB-EA15-4301-B4B6-A8FE1F0212BE/PocIOS.app/Frameworks/AequumPOCFramework.framework/Frameworks/Alamofire.framework/Alamofire: code signature in (/private/var/containers/Bundle/Application/EDB697EB-EA15-4301-B4B6-A8FE1F0212BE/PocIOS.app/Frameworks/AequumPOCFramework.framework/Frameworks/Alamofire.framework/Alamofire) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.



我究竟做错了什么?

enter image description here

enter image description here

enter image description here

enter image description here

最佳答案

iOS 不支持嵌套框架(参见 technotes)。目前唯一合法的解决方案是将“嵌入式”框架直接链接到托管应用程序。
*XCFramework 主要是平台特定二进制文件的聚合,不幸的是与嵌入框架无关。

关于ios - 嵌入在根框架中的签名子框架不起作用(Xcode 11.2.1),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58822981/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com