简体   繁体   中英

Xcode 8.3.2 Clang Error

I am trying to update one of my project, when I opened it I performed validated settings, but when I try to build it I just face with this error :

Apple Mach-O Linker Error Group : clang: error: linker command failed with exit code 1 (use -v to see invocation)

with no more infos and I am not using cocoapods or any external frameworks. I just searched everywhere and did any possible solution such as :

  • Clean and run
  • Searched for duplicate files
  • Check imported header files
  • Delete xxxTest
  • Checked Build Active architecture
  • Validated Settings
  • Checked missing frameworks
  • Restart mac
  • Changed iOS deployment target
  • Disabled bitcode

and etc...

Is there anything to solve this issue ?!

Right-click the error in the the Issue Navigator. Choose "Reveal in Log" or "Reveal in Project Navigator "and see the actual error message.

-Try this 1.Xcode -> Preferences -> Location -> click on derived data path and clear all derived data. 2."Build Phases" -> "Compile Sources" and look for duplicate of classes. 3.Or check if you have "*.m" files in your #import

I got this error when I forget to update my submodules (Carthage in my case). After I update my submodules I didn't get the error.

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