$ cordova plugin add cordova-plugin-qrscanner $ cordova build ios ... /Users/hoge/myapp/platforms/ios/Pollo/Plugins/cordova-plugin-qrscanner/QRScanner.swift:471:63: error: 'openSettingsURLString' has been renamed to 'UIApplicationOpenSettingsURLString' guard let settingsUrl = URL(string: UIApplication.openSettingsURLString) else { ^~~~~~~~~~~~~~~~~~~~~ UIApplicationOpenSettingsURLString UIKit.UIApplication:70:22: note: 'openSettingsURLString' was introduced in Swift 4.2 public class let openSettingsURLString: String ^ /Users/hoge/myapp/platforms/ios/Pollo/Plugins/cordova-plugin-qrscanner/QRScanner.swift:484:74: error: 'openSettingsURLString' has been renamed to 'UIApplicationOpenSettingsURLString' UIApplication.shared.openURL(NSURL(string: UIApplication.openSettingsURLString)! as URL) ^~~~~~~~~~~~~~~~~~~~~ UIApplicationOpenSettingsURLString UIKit.UIApplication:70:22: note: 'openSettingsURLString' was introduced in Swift 4.2 public class let openSettingsURLString: String ^
** BUILD FAILED **
The following build commands failed: CompileSwift normal x86_64 /Users/hoge/myapp/platforms/ios/Pollo/Plugins/cordova-plugin-qrscanner/QRScanner.swift CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (2 failures) xcodebuild: Command failed with exit code 65 error Command failed with exit code 65.
$ cordova build android ... > Configure project :app WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed in version 5.0 of the Android Gradle plugin. For more information, see http://d.android.com/r/tools/update-dependency-configurations.html.
* What went wrong: Execution failed for task ':app:compileReleaseJavaWithJavac'. > Compilation failed; see the compiler error output for details.
* 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
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.5/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 2s 21 actionable tasks: 1 executed, 20 up-to-date Command failed with exit code 1: /Users/hoge/myapp/platforms/android/gradlew cdvBuildRelease -b /Users/hoge/myapp/platforms/android/build.gradle error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. ERROR: "build-android-release" exited with 1. error Command failed with exit code 1.