Rakiah
Rakiah

Reputation: 240

Build error with XCode 9.0 of a Ionic project

I have a problem building my ionic project on iOS with xcode, the sources get compiled correctly (or atleast it seems so) but when "Apple Mach-O Linker" try to link my obj files, I get an error saying 256 duplicate symbols for architecture arm64 and then I do not manage to understand the logs (logs below) since it refer to cordova generated files from the typescript ionic project

Here is what i tried :

None of them worked and I feel like i'm out of solutions and energy, is there anyone with other solutions or ideas ?

here is the error log : https://codepaste.net/d2qzh2

I didn't put the whole log there (only the beginning, the end, and a small part at the middle because the whole middle is kind of the same)

here is my package.json that may help aswell : https://codepaste.net/4ckbha

Thanks for your time

UPDATE

Found out that my problem isn't linked to console (even tho i shouldn't have console) but to cordova-plugin-add-swift-support so that when cordova platform add ios build the xcode project, it build it with swift conversion, and then i have the same problem described upper, followed all of the answers on the possible duplicate question but nothing worked out

Upvotes: 1

Views: 756

Answers (1)

Rakiah
Rakiah

Reputation: 240

Managed to fix it, I had two plugins colliding with each other, my solution to find the problem was to create a blank project and re-add my plugins one by one until i see which one was in fault and then do the same backward to find the other one in fault

the two plugins were ionic-deploy and cordova-plugin-ionic which is obvious now that i think of it

Upvotes: 2

Related Questions