我已经创建了一个定制的iOS框架LoginKit。反过来,它又将阿拉莫火框架埋在下面。在模拟器中,一切正常工作,但是当试图在设备上运行时,我得到了错误:
Dyld错误消息:
Library not loaded: @rpath/Alamofire.framework/Alamofire
Referenced from: /Users/USER/Library/Developer/CoreSimulator/Devices/506B47DE-804F-477F-AA90-69DF039E07FA/data/Containers/Bundle/Application/26D0CA8F-7284-42B5-8091-E5915736DCDB/Bingo.app/Bingo
Reason: image not found 在父应用程序中,在嵌入式二进制文件部分,我只有LoginKit.framework。现在,如果我还嵌入了Alamofire.framework (从LoginKit下面取出),错误就会消失。这是预期的行为吗?难道它不辜负这里封装的全部目的吗?
https://stackoverflow.com/questions/30772004
复制相似问题