We are migrating from Ionic 4 to 5, when I upgrade my mac version to 12 and try building the application we are getting Command CompileSwiftSources failed with a nonzero exit code in two of the capacitor plugins capacitor camera and capacitor file systems
I tried most of the solutions like clearing derived data, adding a SWIFT_ENABLE_BATCH_MODE to no etc
Related
We have migrated from ionic v3 to ionic v5 ... ionic serve command working but showing blank page when launched.
ionic build command throwing following error..
[11:57:17] ionic-app-script task: "build"
[11:57:17] TypeError: Cannot read property 'compilation' of undefined
TypeError: Cannot read property 'compilation' of undefined
at DefinePlugin.apply (/Users/upgrade/node_modules/webpack/lib/DefinePlugin.js:280:18)
at Compiler.apply (/Users/upgrade/node_modules/#ionic/app-scripts/node_modules/tapable/lib/Tapable.js:375:16)
at webpack (/Users/upgrade/node_modules/#ionic/app-scripts/node_modules/webpack/lib/webpack.js:33:19)
at /Users/upgrade/node_modules/#ionic/app-scripts/dist/webpack.js:132:24
at new Promise ()
at runWebpackFullBuild (/Users/upgrade/node_modules/#ionic/app-scripts/dist/webpack.js:113:12)
at webpackWorker (/Users/upgrade/node_modules/#ionic/app-scripts/dist/webpack.js:70:19)
at Object.webpack (/Users/upgrade/node_modules/#ionic/app-scripts/dist/webpack.js:29:12)
at bundleWorker (/Users/upgrade/node_modules/#ionic/app-scripts/dist/bundle.js:13:22)
at Object.bundle (/Users/upgrade/node_modules/#ionic/app-scripts/dist/bundle.js:6:12)
[ERROR] An error occurred while running subprocess ionic-app-scripts.
ionic-app-scripts build exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
we need to use this project for all 3 platform i.e. browser, android and ios .. so for that purpose we need www folder with files. ionic build command achieve this.
how should i fix this ...
Create a new project using ionic 6, migrate cordova plugins to capacitor and copy over code. This is your best bet. Goodluck.
I am getting this kind of error in vs code from past 1 day and implemented all possible results
but, I dint get any solution plz help me to get rid of this
√ Built build\app\outputs\flutter-apk\app-debug.apk.
Error: ADB exited with exit code 1
Performing Streamed Install
adb: failed to install F:\flutter firebase\authenticationapp\build\app\outputs\flutter-apk\app.apk: Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]
Error launching application on vivo 1819
When I open up an IOS simulator to launch my apps, it fails. Before it used to work fine. I get the following error:
Xcode build done. 12.8s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
Could not find an option named "DartDefines".
Run 'flutter -h' (or 'flutter <command> -h') for available flutter commands and options.
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Could not build the application for the simulator.
Error launching application on iPhone 11.
Exited (sigterm)
I am suspecting this error is due to not enough storage on my computer. Is that possible? Or is there any other problems?
I got the same issue after upgrading the flutter.
You must be using flutter channel beta
Try switching it to:
flutter channel dev
flutter upgrade
Ionic cordova build error
Command
cordova build android
Gives output:
Android Studio project detected
ANDROID_HOME=C:\Users\Clide\AppData\Local\Android\Sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_191
studio
Subproject Path: CordovaLib
Subproject Path: app
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details
publishNonDefault is deprecated and has no effect anymore. All variants are now published.
[ERROR] An error occurred while running subprocess cordova.
cordova build android exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
I have xCode 3.2.6 and i have installed phonegap cordova 1.7.0 . I followed the read me instruction and installed. After creating the new app using template i run the application. But the build is failed showing some 7 errors.
/Users/xxx/Desktop/testPGAP/build/testPGAP.build/Debug-iphonesimulator/testPGAP.build/Script-304B58A110DAC018002A0835.sh: line 2: touch: command not found
Command /Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copyplist failed with exit code 127
and libCordova.a, cordova.framework , cordovaLibTests.octest and cordovaLibApp.app showing in red color.
What may be the problem. What is the solution to overcome this problem.