当前位置:   article > 正文

Flutter run时报错The Swift pod `sentry_flutter` depends upon `Sentry`, which does not define modules._which do not define modules. to opt into those tar

which do not define modules. to opt into those targets generating module map

错误信息如下:

-> Installing url_launcher_ios (0.0.1)
      - Running pre install hooks
    [!] The following Swift pods cannot yet be integrated as static libraries:

    The Swift pod `sentry_flutter` depends upon `Sentry`, which does not define modules. To opt into those targets generating module
    maps (which is necessary to import them from Swift when building as static libraries), you may set `use_modular_headers!`
    globally in your Podfile, or specify `:modular_headers => true` for particular dependencies.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

解决方法:
Podfile文件内添加:" use_modular_headers! "即可。
在这里插入图片描述

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Monodyee/article/detail/718214
推荐阅读
相关标签
  

闽ICP备14008679号