Carthage引入RxSwift后运行报错 发表于 2019-05-24 分类于 杂七杂八 使用carthage引入RxSwift之后,运行报错: 1234567dyld: Library not loaded: @rpath/XCTest.framework/XCTestReferenced from: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/libswiftXCTest.dylibReason: image not found 解决方法: Target->Build Phases -> Run Script -> input files里添加: $(PLATFORM_DIR)/Developer/Library/Frameworks/XCTest.framework