Ionic App Built on Mac won’t build on Windows - windows

We developed the app on a Mac, initially. Moved the code over to a Windows 10 machine to compile to run on Windows. However, in the build process I'm getting this error at the end:
Command finished with error code 0: C:\windows\system32\reg.exe query,HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0,/v,MSBuildToolsPath
Found MSBuild v4.0 at C:\Windows\Microsoft.NET\Framework64\v4.0.30319\
Using MSBuild v4.0 from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\
MSBuild v4.0 is not supported, aborting.
Error: AppPackages doesn't exists
Here's Ionic Info
global packages:
#ionic/cli-utils : 1.3.0
Cordova CLI : 7.0.1
Ionic CLI : 3.3.0
local packages:
#ionic/app-scripts : 1.3.7
#ionic/cli-plugin-cordova : 1.3.0
#ionic/cli-plugin-ionic-angular : 1.3.0
Cordova Platforms : windows 5.0.0
Ionic Framework : ionic-angular 3.3.0
System:
Node : v6.10.3
OS : Windows 10
Xcode : not installed
ios-deploy : not installed
ios-sim : not installed
We're using Visual Studio Community 2017. I've tried installing everything under the sun for VS and I can't seem to get past this. I've read tons of pages and sites, tried everything I can find and no go.
Not sure what to do next. I've thought about starting a new app on the Windows machine and just copy my code into and see if that works. It seems like a lot of wasted time to me though.

My advice on this is just a simple one. Install and run your project with Visual Studio Code. It was built and well suited for free and open frameworks like Ionic. This is what I work with everyday. When you do that give me a comment below if you have any problem.

Related

NatvieScript Installation Error(windows)

I have a problem completing NativeScript installation requirement. I got stuck at number 5 in the installation guide available here.
When i run the command "tns doctor" in the command prompt, i get the error message below:
Cannot find a compatible Android SDK for compilation. To be able to
build for An droid, install Android SDK 22 or later. Run $
%ANDROID_HOME%\tools\android to manage your Android SDK versions.
You need to have the Android SDK Build-tools installed on your system.
You can i nstall any version in the following range: '>=23 <=27'. Run
$ %ANDROID_HOME%\tools\android from your command-line to install
required An droid Build Tools.
You need to have Android SDK 22 or later and the latest Android
Support Reposito ry installed on your system. Run $
%ANDROID_HOME%\tools\android to manage the Android Support Repository.
I have installed the required sdk and i am still getting the same error message and every time i execute this script in the console, it takes like forever to complete:
"%ANDROID_HOME%\tools\bin\sdkmanager" "tools" "platform-tools"
"platforms;android-25" "build-tools;25.0.2"
"extras;android;m2repository" "extras;google;m2repository"

Ionic1 with CocoaPods does not let me build my app in Xcode9

I work on an older App of mine which is Ionic-v1. I install the OneSignal plugin which is working now only with CocoaPods. At first all went fine, Android works flawless but I am not able anymore to build my IOS app because of CocoaPods. I can do what I want I keep getting the following error:
ld: 72 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I lost the entire day trying to figure this out, I tried uncountable times any combination of “pod install, pod clean, pod disintegrate” etc. etc. but without any success.
I also found a post inside the ionic forum from #blakgeek and install his plugin “cordova-plugin-cocoapod-support” but keep getting the same errors. But with or without this plugin I keep getting the same error.
I would be happy if anybody can help me here because at this point I am pretty lost.
Thank you in advance
Xcode 9
Ionic 3.18 (But app is Ionic v1)cli packages: (/usr/local/lib/node_modules)
#ionic/cli-utils : 1.18.0
ionic (Ionic CLI) : 3.18.0
global packages:
cordova (Cordova CLI) : 7.1.0
Gulp CLI : CLI version 3.9.1 Local version 3.9.1
local packages:
Cordova Platforms : android 6.3.0 ios 4.5.3
Ionic Framework : ionic1 1.2.4
System:
Android SDK Tools : 26.1.1
ios-deploy : 1.9.2
ios-sim : 5.0.6
Node : v8.9.1
npm : 2.15.12
OS : macOS Sierra
Xcode : Xcode 9.0.1 Build version 9A1004
Environment Variables:
ANDROID_HOME : /Volumes/Mac External HD/Android/sdk
Misc:
backend : pro
I just ended up deleting once again my entire ios platform for the xxx time and somehow solved it with the following steps.
a. deleted my complete ios platform
b. deleted the onesignal cordova plugin
c. reinstalled the onesignal plugin
d. recreated my ios platform BUT forced version ios4.4.0 with the following command "ionic cordova platform add ios#4.4.0"
e. changed into my /platform/ios directory and made one "pod install"
f. opened xcode and build and run without any further issue.
Short explanation. I ended up with tone of duplicate symbol erros because I tried just to many things and manually added to many things. (cant recall what I did all) how ever I never paid attention in the number of duplicate symbols. I started out with just 2 which seems to be a known issue (thankx to this issue report https://github.com/ionic-team/ionic/issues/12849#issuecomment-328472880) but with my tests and trials I ended up with much more and got completely of track.
After clean install with ios#4.4.0 all worked fine for me.
thank all for your attention...

STRIPPRIVATESYMBOLS : error : EC_FORMAT when building windows

I'm trying to build a project for windows using cordova build windows --arch="x86" and I got this error
STRIPPRIVATESYMBOLS : error : EC_FORMAT [D:\my-project\platforms\windows\CordovaApp.Windows.jsproj]
Everything is ok when I build Android version.
I'm using VS2015, node 4.3.1 and npm 5.0.4.
I also have VS2012 installed on my computer for other projects
Has anyone run into the same problem ? Please tell me if you need further information
Thank you

Apache Cordova The system cannot find the file specified

I am developing Apache Cordova app on vs 2015 community with Angularjs on onsen.
And keep getting "The system cannot find the file specified" error no matter what i've done.
Things that i've done so far:
Clear cordova cache, Clean, Rebuild (like a hundred times)
Format pc, install everything
Copied the solution to another pc and worked fine nothing is wrong but does not work on my pc.
Close vs instances and change the folder name under Appdata/roaming/microsoft/local/phonetools/Corecon
And nothing changed still getting the same error when deploy starts.
My NPM version is 3.10.10, Cordova CLI is 6.1.1, nodejs version is 6.9.4 and JDK version is 1.8.3

Error installing Telerik Appbuilder CLI on Windows

I am trying to install the telerik appbuilder CLI to my windows machine. the first error i was getting was cl.exe could not be found. i solved this by modifying my install of visual studio community 2015 to include C++ and now i am getting alot more red in the cmd prompt window. i am trying to install the appbuilder using
npm install -g appbuilder
and here is a screenshot of the cmd window
am i missing some dependencies?
the guide on how to set this up a is only the install line and after spending some time searching around. im not finding any others having problems setting appbuilder up.
Can you check your version of node.js? At the moment of writing, AppBuilder CLI works with node.js 0.10.x and 0.12.x. Support for node.js 4.2.1 will be available in the 2.14 release, which is currently scheduled for releasing at the beginning of November 2015. Note that due to bug in V8 which crashes node, node 4.0.x will never be supported.
The reason for these messages is that AppBuilder CLI has dependencies written in C++. To build them, you need to satisfy all requirements for building c++ node modules, i.e. install Visual Studio, Python 2.7, node-gyp and configure them to be available on the command line. More information is available here: https://github.com/nodejs/node-gyp . Until our official support for node 4.2.1 is out, you may try this approach. Or, if possible, switch to node 0.12

Resources