New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ios **BUILD FAILED ** duplicate symbols for architecture x86_64 #12942
Comments
Hello! Thank you for opening an issue with us! I cannot duplicate your error, which makes total sense because as you say, it generally works and then mysteriously stops. So... let's start with some versions of things: I am using Xcode 9, what version are you using? Hmmmm... I am going to try a couple of things |
Hey @kensodemann , I am currently on Xcode Version 8.2.1 Thank you! |
Try remove plugin console and try again, I had the same issues. But I have Cordova ios 4.5 The problem is CDVLogger that is already in cordova cli 7 Cc @kensodemann |
Duplicated it and fixed it, though I am not entirely sure this is your issue, but worth a shot. First, I remove my My guess (and it is only a guess) is that you somehow have So I did this:
So at least for me, the key to the fix was pinning the Of course, this means when it is time to upgrade Anyhow, give that a try and let me know if that works for you. |
@kensodemann Exactly the issue! |
@kensodemann Hooray, I can now build, Thank you!! Here's the thing, before doing Anyway, so I followed your instructions, ran That last command then changed my Uninstalled my Surprisingly enough, after doing so, I still find myself with |
My guess is that Cordova does that. Personally not a fan of tools mucking with my setup... :( I am going to close this then. Glad it is working for you now. |
@nuno is correct, the console plugin is the root cause, that has been included in cordova 7, so simply remove the plugin fixes the problem. |
@kensodemann Ld build/emulator/MyApp.app/MyApp normal x86_64 ** BUILD FAILED ** The following build commands failed: Environment cli packages: (/Applications/IonicApps/BabyName/node_modules)
global packages:
local packages:
System:
Environment Variables:
Misc:
|
Are you sure you are not installing the console plugin? If your repo is online, provide a link and I can take a quick look. In general, though, this is not an Ionic Framework issue but an issue with the use of incompatible plugins. |
@kensodemann is right, it is all due to plugins being either old or incompatible. For me, it turned out to be the cordova-plugin-inappbrowser. In my config.xml, there was still a reference to a git repo that didn't exist anymore. I first didn't take notice in the build process, but all of a sudden, I noticed that the build was complaining about not finding the repo for the plugin. The solution was quite simple: put the line in the config.xml in comment, and reinstall the plugin. And iOS was building again :) So, if it may help, check you build log after you run |
Solution from @nuno works for me, just run: |
Hi all, I had same problem and I have tried to execute solution posted by @didinj and not works because after this I get an error for scripts when execute rm platform and then build ios, I add again app-scripts but the problem was this : npm install @Ionic / app-scripts@latest --save-dev because install 3.1.7 version of scripts and this generate the same main error then I execute and again app-scripts but with a less version for app-scripts and now works fine with 3.0.0 : npm install @Ionic / app-scripts@3.0.0 --save-dev I'm using too cordova-ios version 4.5.4 and the all latest versions of all in macOS High Sierra 10.13.2 with Xcode 9.2 cli packages: (/usr/local/lib/node_modules)
global packages:
local packages:
System:
I hope that with this I can help other users. Thanks to all. |
works for me! thanks @kensodemann ! 😃 |
As per https://github.com/apache/cordova-plugin-console
|
does anybody still have this problem ? from a gresh new app I'm not able to use this plugin... |
Solution from @nuno works for me as well. |
|
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Ionic version: (check one with "x")
[ ] 1.x (For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[x] 3.x
I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
After an undefined period of time, my app can't build for ios devices anymore.
Expected behavior:
It should be able to build for ios devices.
Steps to reproduce:
I have no Idea how this happens
Related code:
This is what I get when trying to build for ios
Other information:
It's the second time this happens to me, after the first time I had to create an ionic project from scratch and slowly integrate what was in the original project and building for ios after each iteration in order to detect the problem. A few hours later and the code copied in its entirety, I was somehow able to build for ios.
Tried to build for ios this morning and I'm still getting the same issue [see related code section].
Also tried to delete my /plugins & /node_modules directories but it did not help.
Could not find anything on the web to help me neither..
Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):The text was updated successfully, but these errors were encountered: