美文网首页
cast of Objective-C pointer type

cast of Objective-C pointer type

作者: Lee坚武 | 来源:发表于2021-01-26 13:45 被阅读0次

问题显示:

cast of Objective-C pointer type 'NSString *' to C pointer type 'CFStringRef' (aka 'const struct __CFString *') requires a bridged cast

解决办法:

前往Target > Build phase > Compile sources目录下,对应的哪个文件进行添加

-fno-objc-arc

就成功解决bug完成编译!

相关文章

网友评论

      本文标题:cast of Objective-C pointer type

      本文链接:https://www.haomeiwen.com/subject/txygzktx.html