Swift framework error:Include of non-modular header inside framework module

夙愿已清 提交于 2019-12-25 01:35:45

问题


I create swift framework and pod 'AMap3DMap'. My podfile is that

platform :ios, '8.0'
target ‘mapFrameWork’ do
pod 'AMap3DMap'
pod 'AFNetworking' 
end

when it did finished but i found that error:

i set the

but it does't work. now what should i do?


回答1:


I solved it removing Modules folder from the framework.

  • Browse to your framework location which is present in the App Project using finder

  • Go inside Test.framework folder (In the above case it will be mapFrameWork.framework) & Delete Modules folder.

  • Clean and Re Build the app, it will solve the problem.




回答2:


Add the header file to the Framework's umbrella header, and then add it to the Headers section as Public. In the below image it shows how to add Reachability library.




回答3:


Go to project -> Build Settings under "Target" and set "Allow Non-modular Includes in Framework Modules" to YES.

Hope this will help.



来源:https://stackoverflow.com/questions/49808729/swift-framework-errorinclude-of-non-modular-header-inside-framework-module

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!