workspace-ONE-SDK-integration-samples icon indicating copy to clipboard operation
workspace-ONE-SDK-integration-samples copied to clipboard

SDK is not supported by the compiler in Xcode

Open chedss opened this issue 1 year ago • 0 comments

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

  1. Init new React Native project (tried .74 and .73)
  2. npm i ws1-sdk-react-native
  3. pod install in iOS directory
  4. Try to run app with react native metro and with Xcode

Expected Behavior Xcode builds and runs

chedss avatar May 13 '24 22:05 chedss