简体   繁体   English

Xcode 8.3.2 Clang错误

[英]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) Apple Mach-O链接器错误组:clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)

with no more infos and I am not using cocoapods or any external frameworks. 没有更多的信息,我没有使用cocoapods或任何外部框架。 I just searched everywhere and did any possible solution such as : 我只是到处搜索并做了任何可能的解决方案,例如:

  • Clean and run 清洁并运行
  • Searched for duplicate files 搜索重复文件
  • Check imported header files 检查导入的头文件
  • Delete xxxTest 删除xxxTest
  • Checked Build Active architecture Checked Build Active架构
  • Validated Settings 验证设置
  • Checked missing frameworks 检查丢失的框架
  • Restart mac 重启mac
  • Changed iOS deployment target 更改了iOS部署目标
  • Disabled bitcode 禁用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. - 试试这个1.Xcode - >首选项 - >位置 - >点击派生数据路径并清除所有派生数据。 2."Build Phases" -> "Compile Sources" and look for duplicate of classes. 2.“构建阶段” - >“编译源代码”并查找类的副本。 3.Or check if you have "*.m" files in your #import 3.或者检查#import中是否有“* .m”文件

I got this error when I forget to update my submodules (Carthage in my case). 当我忘记更新我的子模块时(我的情况下是Carthage),我收到了这个错误。 After I update my submodules I didn't get the error. 更新我的子模块后,我没有收到错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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