简体   繁体   English

Xcode:词法或预处理器问题 - 重新定义模块

[英]Xcode: lexical or preprocessor issue - redefinition of module

I have been looking for a solution to fix the below error.我一直在寻找解决以下错误的解决方案。

Lexical or Preprocessor Issue Group - Redefinition of module 'fmt'词法或预处理器问题组 - 重新定义模块“fmt”

显示错误的导航区域

FYI, I attached the screenshot to show you the errors.仅供参考,我附上了屏幕截图以向您展示错误。 I have gone through all solutions on stackoverflow and github but none of them gives a clear and relevant solution.我已经完成了关于stackoverflowgithub的所有解决方案,但没有一个给出明确且相关的解决方案。 As you can see, there are 12 errors in two categories.如您所见,两个类别有 12 个错误。 One is Lexical or Preprocessor Issue Group and another is Parse Issue .一个是Lexical or Preprocessor Issue Group ,另一个是Parse Issue I have focused mainly on searching for the solution to first category issues but they all Lexical or Preprocessor Issue - ***.h file not found errors.我主要专注于寻找第一类问题的解决方案,但它们都是Lexical or Preprocessor Issue - ***.h file not found错误。 So no helpful one found yet.所以还没有找到有用的。 I am building it in Xcode 13.4.1 after migrating from Xcode 12.从 Xcode 12 迁移后,我在 Xcode 13.4.1 中构建它。

Thank you!谢谢!

I commented flipper_post_install(installer) in Podfile .我在Podfile中评论flipper_post_install(installer) Afterwards, it gives another interpolate is not a function error but anyway it cleared the lexical or preprocessor issue error away.之后,它给出了另一个interpolate is not a function错误,但无论如何它清除了lexical or preprocessor issue错误。

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

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