[英]dyld: Library not loaded: @rpath/XCTest.framework/XCTest
I am getting following exception when trying to integrate a library to my project using cocoa pods.尝试使用可可豆荚将库集成到我的项目时出现以下异常。
dyld: Library not loaded: @rpath/XCTest.framework/XCTest Referenced from: /Users/shoaibahmedqureshi/Library/Developer/CoreSimulator/Devices/CBC381BC-854F-41D6-8D4C-90C2850459AD/data/Containers/Bundle/Application/095CDEFA-A79A-4235-B046-68277D5C14EB/EasyGridExample.app/EasyGridExample Reason: image not found dyld:库未加载:@rpath/XCTest.framework/XCTest 引用自:/Users/shoaibahmedqureshi/Library/Developer/CoreSimulator/Devices/CBC381BC-854F-41D6-8D4C-90C2850459AD/data/Containers/FAB/CDE A79A-4235-B046-68277D5C14EB/EasyGridExample.app/EasyGridExample 原因:找不到图像
I have myself created that open source library so I am open to tweaks and suggestions to that library as well in case issue lies there.我自己创建了那个开源库,所以我也愿意对该库进行调整和建议,以防出现问题。
Github link to Project : https://github.com/shoaibahmedqureshi/EasyGridsExample Github 项目链接: https : //github.com/soaibahmedqureshi/EasyGridsExample
Github link to Library : https://github.com/shoaibahmedqureshi/EasyGrids Github 图书馆链接: https : //github.com/shoaibahmedqureshi/EasyGrids
我遇到了同样的问题,并通过删除 Podfile.lock 并再次安装 pod 来修复。
In my case, it happened because I mistakenly put Nimble and Quick pods in my main target instead of in my unit test target.就我而言,发生这种情况是因为我错误地将 Nimble 和 Quick pod 放在我的主要目标而不是我的单元测试目标中。 So just double check your pods, try to uninstall one by one.
因此,只需仔细检查您的 pod,尝试一一卸载。
1.clean and build 2.delete DerivedData folder 1.clean 并构建 2.delete DerivedData 文件夹
make sure you have add your library in embedded binaries确保您已将库添加到嵌入式二进制文件中
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.