Use of ‘@import’ when modules are disabled

/ 0评 / 0

我们经常在写代码的时候习惯用一些老的写法经常会出现不兼容的情况,比如:@import这个头部引导,解决办法:

Error msg says you are trying to use modules by @import when it is disabled. Goto build settings and enable modules or use #import instead.

enter image description here

Enable it by changing to YES

发表评论

邮箱地址不会被公开。 必填项已用*标注