简体   繁体   中英

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 :

  • 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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM