Swift框架错误:框架模块内包含非模块化标头 [英] Swift framework error:Include of non-modular header inside framework module

查看:431
本文介绍了Swift框架错误:框架模块内包含非模块化标头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了快速框架和pod'AMap3DMap'. 我的podfile是

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:

我设置了

但是它不起作用. 现在我该怎么办?

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

推荐答案

我解决了从框架中删除Modules文件夹的问题.

I solved it removing Modules folder from the framework.

  • 使用查找器浏览到App Project中存在的框架位置

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

进入Test.framework文件夹(在上述情况下为mapFrameWork.framework)&删除Modules文件夹.

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.

这篇关于Swift框架错误:框架模块内包含非模块化标头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆