             name: "SyncServer",
             dependencies: ["SyncClient"],
             path: "src",
-            exclude: [
+            exclude: ([
                 "realm/sync/crypto_server_openssl.cpp",
-            ] + syncCommandSources,
+            ] + syncCommandSources) as [String],
             sources: syncServerSources,
             publicHeadersPath: "realm/sync/impl", // hack
             cxxSettings: cxxSettings,

            ],
            sources: ["realm/object-store"],
            publicHeadersPath: "realm/object-store",
            cxxSettings: [
                .define("REALM_ENABLE_SYNC", to: "1"),
                .define("REALM_PLATFORM_APPLE", to: "1", .when(platforms: [.macOS, .iOS, .tvOS, .watchOS])),
                .headerSearchPath("realm/object-store")
            ] + cxxSettings),
        .target(
            name: "ObjectStoreTests",
            dependencies: ["ObjectStore", "SyncServer"],

            name: "SyncClient",
            dependencies: ["Storage"],
            path: "src",
            exclude: ([
                "realm/sync/crypto_server_openssl.cpp",
            ] + syncCommandSources + syncServerSources) as [String],
            sources: [
                "realm/sync",
                "realm/util/network.cpp",
