xCode 7 error: include of non-modular header inside framework module with Google Maps

前端 未结 5 1398
遇见更好的自我
遇见更好的自我 2021-01-04 04:11

I updated to xCode 7.1 today and tried to build my app but I\'m getting this error:

I have already tried going to Build Settings under \"Target\" and set \"

5条回答
  •  隐瞒了意图╮
    2021-01-04 05:06

    This thread may be useful.

    I tried a few things, but I'm not positive which one fixed the issues. First, I edited my Podfile to include:

    post_install do |installer|
        installer.pods_project.build_configuration_list.build_configurations.each do |configuration|
            configuration.build_settings['CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES'] = 'YES'
        end
    end

    Then, I added a bridging header file, with one line:

    #import 
    

    Cleaned and rebuilt the project and that did the trick.

提交回复
热议问题