Description
When I hit the commands 「yarn run ios」, 「yarn run android」, I get an error and cannot build.
Errors
ios
~/Desktop/react-native-zoom-video-sdk-1.5.3/example ❯ yarn run ios --simulator=“iPhone 14”
yarn run v1.22.19
warning …/…/…/package.json: No license field
$ react-native run-ios ‘–simulator=iPhone 14’
info Found Xcode workspace “ZoomVideoSdkExample.xcworkspace”
info Building (using “xcodebuild -workspace ZoomVideoSdkExample.xcworkspace -configuration Debug -scheme ZoomVideoSdkExample -destination id=1926A52F-C6F2-44DC-BDB4-0F8A4E23B02B”)
error Failed to build iOS project. We ran “xcodebuild” command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening ZoomVideoSdkExample.xcworkspace.
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace ZoomVideoSdkExample.xcworkspace -configuration Debug -scheme ZoomVideoSdkExample -destination id=1926A52F-C6F2-44DC-BDB4-0F8A4E23B02B
User defaults from command line:
IDEPackageSupportUseBuiltinSCM = YES
Prepare packages
Computing target dependency graph and provisioning inputs
Create build description
Build description signature: cad7f3d7ec1077851a1d0f00491f8926
Build description path: ~/Library/Developer/Xcode/DerivedData/ZoomVideoSdkExample-gjhzthyoaadxixbuzangjivtrfjs/Build/Intermediates.noindex/XCBuildData/cad7f3d7ec1077851a1d0f00491f8926-desc.xcbuild
warning: Building targets in manual order is deprecated - choose Dependency Order in scheme settings instead, or set DISABLE_MANUAL_TARGET_ORDER_BUILD_WARNING in any of the targets in the current scheme to suppress this warning
error: There is no XCFramework found at ‘~/Desktop/react-native-zoom-video-sdk-1.5.3/example/ios/ZoomVideoSDKScreenShare.xcframework’. (in target ‘ScreenShare’ from project ‘ZoomVideoSdkExample’)
error: There is no XCFramework found at ‘~/Desktop/react-native-zoom-video-sdk-1.5.3/example/ios/ZoomVideoSDKScreenShare.xcframework’. (in target ‘ScreenShare’ from project ‘ZoomVideoSdkExample’)
error: There is no XCFramework found at ‘~/Desktop/react-native-zoom-video-sdk-1.5.3/example/ios/ZoomVideoSDK.xcframework’. (in target ‘ZoomVideoSdkExample’ from project ‘ZoomVideoSdkExample’)
error: There is no XCFramework found at ‘~/Desktop/react-native-zoom-video-sdk-1.5.3/example/ios/ZoomVideoSDK.xcframework’. (in target ‘ZoomVideoSdkExample’ from project ‘ZoomVideoSdkExample’)
warning: Run script build phase ‘Start Packager’ will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking “Based on dependency analysis” in the script phase. (in target ‘ZoomVideoSdkExample’ from project ‘ZoomVideoSdkExample’)
warning: Run script build phase ‘Bundle React Native code and images’ will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking “Based on dependency analysis” in the script phase. (in target ‘ZoomVideoSdkExample’ from project ‘ZoomVideoSdkExample’)
** BUILD FAILED **
info Run CLI with --verbose flag for more details.
error Command failed with exit code 1.
info Visit yarn run | Yarn for documentation about this command.
android
~/Desktop/react-native-zoom-video-sdk-1.5.3/example ❯ yarn run android
yarn run v1.22.19
warning …/…/…/package.json: No license field
$ react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using “–no-jetifier” flag.
Jetifier found 2155 file(s) to forward-jetify. Using 8 workers…
info JS server already running.
info Installing the app…
Task :react-native-gradle-plugin:compileKotlin
‘compileJava’ task (current target is 1.8) and ‘compileKotlin’ task (current target is 11) jvm target compatibility should be set to the same Java version.
w: ~/Desktop/react-native-zoom-video-sdk-1.5.3/example/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactExtension.kt: (10, 37): ‘BaseVariant’ is deprecated. Deprecated in Java
w: ~/Desktop/react-native-zoom-video-sdk-1.5.3/example/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactExtension.kt: (119, 30): ‘BaseVariant’ is deprecated. Deprecated in Java
w: ~/Desktop/react-native-zoom-video-sdk-1.5.3/example/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactExtension.kt: (135, 26): ‘BaseVariant’ is deprecated. Deprecated in Java
w: ~/Desktop/react-native-zoom-video-sdk-1.5.3/example/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactExtension.kt: (157, 32): ‘BaseVariant’ is deprecated. Deprecated in Java
w: ~/Desktop/react-native-zoom-video-sdk-1.5.3/example/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactExtension.kt: (163, 31): ‘BaseVariant’ is deprecated. Deprecated in Java
w: ~/Desktop/react-native-zoom-video-sdk-1.5.3/example/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactExtension.kt: (171, 36): ‘BaseVariant’ is deprecated. Deprecated in Java
w: ~/Desktop/react-native-zoom-video-sdk-1.5.3/example/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactPlugin.kt: (100, 48): ‘reactRoot: DirectoryProperty’ is deprecated. reactRoot was confusing and has been replace with root to point to your root project and reactNativeDir to point to the folder of the react-native NPM package
w: ~/Desktop/react-native-zoom-video-sdk-1.5.3/example/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt: (10, 37): ‘ApplicationVariant’ is deprecated. Deprecated in Java
w: ~/Desktop/react-native-zoom-video-sdk-1.5.3/example/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt: (11, 37): ‘BaseVariant’ is deprecated. Deprecated in Java
w: ~/Desktop/react-native-zoom-video-sdk-1.5.3/example/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt: (12, 37): ‘LibraryVariant’ is deprecated. Deprecated in Java
w: ~/Desktop/react-native-zoom-video-sdk-1.5.3/example/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt: (27, 51): ‘BaseVariant’ is deprecated. Deprecated in Java
w: ~/Desktop/react-native-zoom-video-sdk-1.5.3/example/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt: (130, 12): ‘ApplicationVariant’ is deprecated. Deprecated in Java
w: ~/Desktop/react-native-zoom-video-sdk-1.5.3/example/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt: (131, 12): ‘LibraryVariant’ is deprecated. Deprecated in Java
w: ~/Desktop/react-native-zoom-video-sdk-1.5.3/example/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt: (251, 14): ‘BaseVariant’ is deprecated. Deprecated in Java
Task :react-native-gradle-plugin:compileJava
Configure project :react-native-reanimated
Native libs debug enabled: false
Android gradle plugin: 7.1.3
Gradle: 7.3.3
building Reanimated2
WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in thegradle.properties
file or use the new publishing DSL.
WARNING:The specified Android SDK Build Tools version (23.0.1) is ignored, as it is below the minimum supported version (30.0.3) for Android Gradle Plugin 7.1.3.
Android SDK Build Tools 30.0.3 will be used.
To suppress this warning, remove “buildToolsVersion ‘23.0.1’” from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
Task :app:mergeDebugAssets FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use ‘–warning-mode all’ to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See Command-Line Interface
42 actionable tasks: 42 executed
注意:~/Desktop/react-native-zoom-video-sdk-1.5.3/example/node_modules/react-native-gradle-plugin/src/main/java/com/facebook/react/codegen/generator/SchemaJsonParser.javaは推奨されないAPIを使用またはオーバーライドしています。
注意:詳細は、-Xlint:deprecationオプションを指定して再コンパイルしてください。
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:app:mergeDebugAssets’.
Could not resolve all files for configuration ‘:app:debugRuntimeClasspath’.
Failed to transform mobilertc.aar (project :mobilertc) to match attributes {artifactType=android-assets}.
Execution failed for JetifyTransform: ~/Desktop/react-native-zoom-video-sdk-1.5.3/example/android/mobilertc/mobilertc.aar.
Transform’s input file does not exist: ~/Desktop/react-native-zoom-video-sdk-1.5.3/example/android/mobilertc/mobilertc.aar. (See Google Issue Tracker)
- Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
- Get more help at https://help.gradle.org
BUILD FAILED in 14s
error Failed to install the app. Make sure you have the Android development environment set up: Setting up the development environment · React Native.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
注意:~/Desktop/react-native-zoom-video-sdk-1.5.3/example/node_modules/react-native-gradle-plugin/src/main/java/com/facebook/react/codegen/generator/SchemaJsonParser.javaは推奨されないAPIを使用またはオーバーライドしています。
注意:詳細は、-Xlint:deprecationオプションを指定して再コンパイルしてください。
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:app:mergeDebugAssets’.
Could not resolve all files for configuration ‘:app:debugRuntimeClasspath’.
Failed to transform mobilertc.aar (project :mobilertc) to match attributes {artifactType=android-assets}.
Execution failed for JetifyTransform: ~/Desktop/react-native-zoom-video-sdk-1.5.3/example/android/mobilertc/mobilertc.aar.
Transform’s input file does not exist: ~/Desktop/react-native-zoom-video-sdk-1.5.3/example/android/mobilertc/mobilertc.aar. (See Google Issue Tracker)
- Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
- Get more help at https://help.gradle.org
BUILD FAILED in 14s
at makeError (~/Desktop/react-native-zoom-video-sdk-1.5.3/example/node_modules/execa/index.js:174:9)
at ~/Desktop/react-native-zoom-video-sdk-1.5.3/example/node_modules/execa/index.js:278:16
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async runOnAllDevices (~/Desktop/react-native-zoom-video-sdk-1.5.3/example/node_modules/react-native/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:109:5)
at async Command.handleAction (~/Desktop/react-native-zoom-video-sdk-1.5.3/example/node_modules/@react-native-community/cli/build/index.js:192:9)
info Run CLI with --verbose flag for more details.
error Command failed with exit code 1.
info Visit yarn run | Yarn for documentation about this command.
Which React Native Video SDK version?
react-native-zoom-video-sdk-1.5.3
Smartphone (please complete the following information):
- Device: [e.g. iPhone 14]、[Nexus 6 API 28]
- OS: [e.g. iOS 16.1]、[Android 9.0 arm64-v8a]