Swift test give error “Undefined symbols for architecture x86_64”

前端 未结 7 840
借酒劲吻你
借酒劲吻你 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

    I see that in the directories you have vnk-swift, but in import statements and in the mangled name you have vnk_swift. Maybe this is an Xcode/compiler bug with handling hyphens. Try to reproduce on a directory and project without a hyphen in the name, just vnkswift for example.

    Hope it helps

提交回复
热议问题