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
Related
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...
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.
I have created a new cordova windows application (not WP8) using CLI.
I followed the following procedure,
cordova create xyz com.compname.wxyz XYZ<br>
cd xyz<br>
cordova platform add windows<br>
cordova plugin add blah! blah! blah!<br>
cordova build windows<br>
cordova run windows<br>
When i run the above codes in command promp everything runs fine until "cordova build windows", but when i run "cordova run windows" it shows a lot of errors,
Error: Could not install the package.<br>
Starting application...<br>
Get-AppxPackage : The package repository is corrupted.<br>
The package repository is corrupted.<br>
when i try to run the project it says error log as,
Error 1 Error : DEP0600 : The following unexpected error occurred during deployment: <br>
The package repository is corrupted.<br>
The package repository is corrupted. CordovaApp.Windows80<br>
Does anyone have any idea what is going on or can someone tell me how to successfully create a new cordova windows project using CLI or manually.
Thank you.
I'm assuming you have Microsoft Visual Studio installed and you're running on a Windows 8 system?
What happens when you open the solution in Visual Studio?
I guess this is because your deployment environment you targeting is not being recognized by the deploying platform you are using.
in short your device in which you want to deploy the appxBundle is not being identified by your computer.
I hope this helps...
Tell me you want to deploy it on windows which OS version.
1) windows 10 [ARM/x86]
2) windows 8.1 [ARM/x86]
Let me know if it helps.
I tried build blank cordova hybrid app with vs2013 , but got some error
(1) Cannot find module 'lru-cache'
(2) The command ""C:\Users\Ian\AppData\Roaming\npm\node_modules\vs-mda\vs-cli" prepare --platform Android --configuration Debug --projectDir . --projectName "BlankCordovaApp2"" exited with code 8.
What's i missing?
Dev Tool : vs2013 up2 and install cordova perview
OS : win 8.1
Do you know if the project build was interrupted midway?
This looks like a node acquisition issue. If any of you run into this issue, could you run npm install lru-cache and let us know if that fixes it?
Thanks!
Avani
I want to build a phonegap project (on windows 8.1) for windows 8 but somehow I get an error. Building a Android project goes without any errors. When I run the command 'phonegap run windows8' I get the following error:
I also tried 'phonegap install windows8', same problem. I installed phonegap last week using 'npm install -g phonegap'. Maybe a stupid question, but how do I know I use the latest release (currently 2.9.1)? When I do 'phonegap version' it returns 3.3.0-0.18.0.
I installed cordova instead of phonegap in my command-line (npm install cordova). with cordova everything went just fine. I searched in the platform list of the phonegap install and noticed phonegap doesn't support windows 8. Very confusing since the phonegap website tells us to install phonegap instead of cordova. If anyone has question about building a app phonegap for windows 8 let me know.