iOS-禁用模块时使用@import错误 [英] iOS - use of @import when modules are disabled error

查看:152
本文介绍了iOS-禁用模块时使用@import错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用DCPathButton库(通过podspec)时,我收到此错误.

I am receiving this error when using the DCPathButton library (through podspec).

在我的项目设置中启用了模块.我需要做其他任何事情来启用Pod中的模块吗?

Modules are enabled in my project settings. Do i need to do anything else to enable modules in pods?

推荐答案

如果构建设置"中的自动链接框架"已设置为YES,则还必须设置启用模块(C和Objective-C)"

If "Link Frameworks Automatically" is already set to YES in the Build Settings, you have to set "Enable Modules (C and Objective-C)" as well.

这篇关于iOS-禁用模块时使用@import错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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