我在尝试运行测试时出现错误。我读到这个错误可能与无关的文件有关,但我在我的项目中没有发现这个问题。
有没有人遇到过类似的问题,你是如何解决的?
Undefined symbols for architecture arm64:
"protocol descriptor for InTravel.URLRequestFactory", referenced from:
l_got.$s8InTravel17URLRequestFactoryMp in Tests_RequestFactory.o
"(extension in InTravel):InTravel.EndPointType.url.getter : Foundation.URL", referenced from:
Tests_iOS.MockRequestFactory.createRequest(InTravel.EndPointType) throws -> Foundation.URLRequest in Tests_RequestFactory.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

发布于 2021-01-20 07:18:58
有没有人遇到过类似的问题,你是如何解决的?
检查各种文件的目标成员资格。确保在其中定义这些符号的文件包含在您尝试构建的目标中。
https://stackoverflow.com/questions/65800622
复制相似问题