iOS CocoaPods - how to resolve “use of '@import' when modules are disabled” error?

前端 未结 3 518
情歌与酒
情歌与酒 2021-01-18 05:19

I\'m seeking how to resolve \"use of \'@import\' when modules are disabled\" when adding Google Analytics through cocoapods:

pod \'Google/Analytics\', \'~>         


        
3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-18 05:45

    Just to add a reference to @Alex Stone's answer-in-a-comment, here is the current official clang specification on the lack of support for @import in C++:

    At present, there is no C or C++ syntax for import declarations. Clang will track the modules proposal in the C++ committee.

提交回复
热议问题