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 :
- Creating a new ionic blank project to see if it was a problem with XCode configuration itself (it works with a blank project)
- Cleaning up the whole DerivedData folder
- Pod deintegrate and install
- cordova clean ios && cordova platform remove ios && cordova platform add ios
- Opening explicitely .xcworkspace file
- Changing enable bitcode from YES to NO
- Changing the build path to somewhere else than DerivedData
- Changing "Build Active Architectures Only" to YES
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