iOS - use of @import when modules are disabled error

℡╲_俬逩灬. 提交于 2021-01-27 04:06:50

问题


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

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


回答1:


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.




回答2:


Set the "Link Frameworks Automatically" to YES



来源:https://stackoverflow.com/questions/27479248/ios-use-of-import-when-modules-are-disabled-error

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