jjzjj

MYIOSPROJProject

全部标签

ios - 编译单元测试时找不到 -lPods-test clang 的库

我正在尝试运行我的单元测试,但出现以下错误:ld:librarynotfoundfor-lPods-testclang:error:linkercommandfailedwithexitcode1(use-vtoseeinvocation)Ld/Users/AUSER/Library/Developer/Xcode/DerivedData/MYIOSPROJProject-cmxbzcbzjfbvgncspsalqnjvlova/Build/Products/Debug-iphonesimulator/MYIOSPROJProjectTests.xctest/MYIOSPROJProj

ios - Objective-C 运行测试时 : Class defined without specifying a base class

我不知道发生了什么,因为我对ObjectiveC和IOS开发还很陌生。当我尝试使用默认测试框架运行我的测试时,出现以下错误:..../Pods/Expecta/src/matchers/EXPMatchers+beCloseTo.m:4:1:Class'EXPFixCategoriesBugEXPMatcher_beCloseToWithinMatcher'definedwithoutspecifyingabaseclass以下代码片段产生了问题(但它不是我的,我相信它是我通过pods使用的库之一的片段):#import"EXPMatchers+beCloseTo.h"#import"