d-date / google-mlkit-swiftpm

Google MLKit for iOS in Swift Package Manager
Apache License 2.0
92 stars 21 forks source link

Building with `swift build` #29

Open lucasfernog opened 1 year ago

lucasfernog commented 1 year ago

I can't use Xcode because I want to use this project with Rust (so I need to build from a script), is there a way to build using swift build? I've been trying $ swift build -Xswiftc -sdk -Xswiftc /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk -Xswiftc -target -Xswiftc arm64-apple-ios13.0 -Xlinker -ObjC -Xlinker -all_load but I keep getting this error:

google-mlkit-swiftpm/Sources/Common/export.swift:1:19: error: no such module 'MLKitCommon'
@_exported import MLKitCommon