workspace-ONE-SDK-integration-samples
workspace-ONE-SDK-integration-samples copied to clipboard
SDK is not supported by the compiler in Xcode
Description of Bug
/Users/xxxx/ReactNative/aw/node_modules/ws1-sdk-react-native/ios/WorkspaceOneSdk.swift:13:8 Failed to build module 'WorkspaceOneSDKBridge'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.9 (swiftlang-5.9.0.128.108 clang-1500.0.40.1)', while this compiler is 'Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)'). Please select a toolchain which matches the SDK.
Stack overflow says you need to set the BUILD_LIBRARY_FOR_DISTRIBUTION setting... https://stackoverflow.com/questions/58654714/module-compiled-with-swift-5-1-cannot-be-imported-by-the-swift-5-1-2-compiler/58656323#58656323
Reproduction steps
- Init new React Native project (tried .74 and .73)
- npm i ws1-sdk-react-native
- pod install in iOS directory
- Try to run app with react native metro and with Xcode
Expected Behavior Xcode builds and runs