Swift test give error “Undefined symbols for architecture x86_64”

前端 未结 7 762
借酒劲吻你
借酒劲吻你 2020-12-24 06:58

I\'m running swift test from the command line to run the test cases. This is the test case:

import XCTest
@testable import vnk_swift

class KeyM         


        
7条回答
  •  时光说笑
    2020-12-24 07:30

    In Swift 4, check if your .testTarget depends on FooBarLib.

        .testTarget(
            name: "FooBarLibTests",
            dependencies: ["FooBarLib"]),
    

提交回复
热议问题