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

ws1-react-native-sdk fails to build on iOS & Android after install

Open navekedem opened this issue 4 months ago • 5 comments

Environment: (also repro’d on plain RN v0.80 without Expo SDK)

  1. App framework: React Native v0.79.5
  2. Expo SDK: 53.0.17
  3. Node & npm: node v20, npm v10.1.0
  4. OS: macOS 15.3.1

Steps to reproduce

npm install ws1-react-native-sdk

Run expo prebuild → Command pod install failed. └─ Cause: No podspec found for ws1-react-native-sdk in ../node_modules/ws1-react-native-sdk

Add a postinstall script to copy the podspec file to the node_modules folder, and it's fix the prebuild error Script Example: "postinstall": "cp node_modules/ws1-react-native-sdk/ws1-sdk-react-native.podspec node_modules/ws1-react-native-sdk/ws1-react-native-sdk.podspec"

Run the iOS build: npx expo run:ios

Run the Android build: npx expo run:android

Actual behavior

iOS import AWSDK ^ no such module 'AWSDK' ... import WorkspaceOneSDKBridge ^ failed to build module 'WorkspaceOneSDKBridge'; this SDK is not supported by the compiler (Apple Swift version 6.0.3).

Android Could not find :WorkspaceOneAndroidSDKBridge:. Required by project :app > project :ws1-react-native-sdk Could not find com.airwatch.android:awnetworklibrary:25.02.1. Required by project :app > project :ws1-react-native-sdk

Could not resolve com.airwatch.android:awnetworklibrary:25.02.1. > Could not get resource 'https://omnissa.jfrog.io/artifactory/Workspace-ONE-Android-SDK/com/airwatch/android/awnetworklibrary/25.02.1/awnetworklibrary-25.02.1.pom'. > Could not HEAD 'https://landing.jfrog.com/reactivate-server/omnissa'. Received status code 409 from server: Conflict

Expected behavior

iOS imports AWSDK and WorkspaceOneSDKBridge without compiler compatibility errors.

Android Gradle resolves WorkspaceOneAndroidSDKBridge and com.airwatch.android:awnetworklibrary:25.02.1 from Maven/GitHub Packages.

We also attempted to build directly from your sample project, but encountered the same errors. Could you please review these errors and let us know if we’re missing any setup steps or dependencies?

Thank you for your help!

navekedem avatar Jul 08 '25 13:07 navekedem