I'm building an app with a lot of embedded HD videos; about 2.6GB of them. At about 2GB the build worked fine, but after adding a few more the build starts failing with the message
makensis process failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
Is this a windows limitation, a mac build (wine) limit, an electron builder issue, or something else entirely?
I'm running OSX 12.5 (Monterey), Node 16, Electron 20, and electron-builder 23.3.
Related
i am new to Electron so I went through all the guick start guides, examples and tutorials. I have build a simple Website that i need to convert with Electron and publish as a Windows exe file.
As i am working on MacOS, builds for MacOS are running, all fine.
For Windows i´ve installed mono and wine and found a great tutorial here
When using electron-packager with the following command, it generates an exe which runs only on Windows 10 - but not Windows 11. There is no error message, just nothing opens.
"npx electron-packager . <appname> --platform=darwin,linux,win32 --arch=ia32,x64 --icon=path/to/icons/dir"
When using electron-builder with the following command, it generates an exe which runs only on Windows 11 - but not Windows 10. There is no error message, just nothing opens.
electron-builder -mwl
Can anybody help me out, what´s the right command/parameter to generate one .exe for both platforms? Cannot find a solution on my own after 3-4 hours search, trial & error.
Thanks in advance.
I want to create a electron build for Mac Mini M1 support but the build process taking so much of time to generate a webpack build.It takes around 5-6 hours and still showing me only 14%
Can anyone help out from this issue.I have attached a screen shot below.
There is a python issue. Try to install python version 3.8 or greater and nodeJS version 14.15.3 or greater.
Compile your custom addons again with using electron-rebuild command like this
electron-rebuild --arch=arm64
Then create a build it will definitely working.
I install "ionic cordova run ios" on my PC (Windows 10) but I got an error message
"[ERROR] An error occurred while running subprocess cordova."
Does anyone know how to fix this?
To build an app for iOS you need to have the xcode command line tools installed. Cordova looks for these tools before building. If you don't have that, you can't build your app for iOS.
If you want to build your app for iOS you'll need a Mac with xcode and Cordova installed. Or you could use a virtual machine to do it. For more information on the virtual machine option have look here
When i try to build : ionic cordova build ios apk, i got this below message . Could u plz help me . Thanks
cordova build ios
(node:18556) UnhandledPromiseRejectionWarning: xcodebuild was not found. Please install version 7.0.0 or greater from App Store
(node:18556) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:18556) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I have installed everything as follows
[11:41:11] lint finished in 13.88 s
PS C:\Users\user\myApp> cordova -v
8.0.0
PS C:\Users\user\myApp> java -version
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
PS C:\Users\user\myApp> javac -version
javac 1.8.0_101
PS C:\Users\user\myApp>
iOS apps are packaged as .ipa, not .apk which is for Android.
You need Xcode and the iOS SDK to build an iOS .ipa.
Unfortunately, both are only available on a Mac.
As explained in the ionic docs, they mention that the only option is to use Ionic Package:
iOS
The iOS SDK does not run on Windows, so nothing to do here. Still
want to build for iOS, though? Check out Package, part of the Ionic
Cloud.
From the Ionic Package docs:
Packaging Native Binaries
Ionic Pro’s Package feature makes it easy to build native app binaries for iOS and Android in the cloud.
Perfect for automating binary builds and for developers using Windows
that want to build iOS apps.
That's your 1st option.
A 2nd option would be to use a Mac instead as your development environment.
If you're planning to be developing iOS apps long-term, then you really need a Mac.
(You can build Android .apk's on a Mac but not the other way around.)
A 3rd option is to run Mac OS on a virtual machine or setup your own "Hackintosh".
Though, doing some researching will tell you that that's going to be a complicated process in itself, and it's not recommended due to instability issues.
I suppose your are trying to create ipa file. There is nothing called "ios apk".
You need a macOS machine to create ipa.
ipa files can not be created on windows machine.
I'm trying to build a blank cordova application into my iPad Air 2 with Visual Studio 2015 Enterprise edition as i've already done it with success with the release candidate version.
I've got node.js v 4.2.2 on both machines since version 5.2.0 was hanging the build indefinitely, i've also got latest version of iTunes (12.3.1) as well as iOS 9.2 on the mobile device.
I've got the remote MAC set up and everything works fine for the building part, infact i've checked and the .ipa file is there at the end of the build into the folder ...\Documents\Visual Studio 2015\Projects\BlankCordovaApp1\BlankCordovaApp1\bin\iOS\Debug and if i launch that it will correctly install into iTunes and the iPad itself.
The problem is that the build action with Configuration "iOS" and "Local Device" with the iPad connected to the windows 7 PC will hang indefinitely after copying back said .ipa file after writing this line into the Build Output:
2>------ Deploy started: Project: BlankCordovaApp1, Configuration: Debug iOS ------
No matter how much time i wait it wont start the debug session even if i authorized the pc onto the iPad and have my web Inspector turned on onto the safari options. At this point i have to interrupt the build to be able to work again.
What really gets me is that if i connect the iPad to the MAC machine and build with "Remote Device" option the build works fine and i can debug remotely from my windows pc, unfortunately working like that isn't an option since the Apple machine isn't in the same room of my developing machine.
Any insight about this issue would be really appreciate, thanks in advance.
You are using a recent version of node and thus will also need to use a recent version of Cordova.
Specifically, you need to use Cordova 5.3.3 to be able to use Node.js 4.x.x+. The hang you are experiencing is exactly why. It's an incompatibility with a down stream node module and Node 4.x.x. You can downgrade to Node 0.12.x or upgrade your Cordova project to 5.3.3.
http://cordova.apache.org/news/2015/09/22/tools-release.html
Note that Node 5.x.x is only supported in Cordova 5.4.1.
This should be addressed in the latest VS Tools for Cordova Update 6. Deploying to local device is now available.
Take a look at http://microsoft.github.io/vstacoblog/2016/02/04/announcing-update-6.html.