Xcode がテスト対象のメイン クラスを認識しないため、クラスをユニット化できません。
私の迅速なモジュールはパブリックとして定義されています
public class Geohash {
public static func encodeGeoHash(latitude: Double, longitude: Double, precision: Int = 12) -> String {
しかし、私のテストターゲットの下では、シンボルが見えません。
class GeohashTests: XCTestCase {
func testEncode() {
Geohash // /Users/maximveksler/Developer/GeohashKit/GeohashKitTests/GeohashTests.swift:13:9: Use of unresolved identifier 'Geohash'
}
}
私のテストターゲットには Geohash.swift が含まれていません
プロジェクトは https://github.com/maximveksler/GeohashKit/blob/master/GeohashKitTests/GeohashTests.swift#L13にあります。