更新到xcode12.0 ,编译报错Incompatible block pointer types sending ‘void (^__strong)(__strong id<TYAttribute

今天爱分享给大家带来更新到xcode12.0 ,编译报错Incompatible block pointer types sending ‘void (^__strong)(__strong id<TYAttribute,希望能够帮助到大家。

Xcode 12 编译 TYAttributedLabel 报以下错误

Incompatible block pointer types sending ‘void (^__ strong)(__strong id)’ to parameter of type ‘void (^)(__strong id)’

解决方法

1.找到 Build Setting -> Other C Flags
1565

2.输入 -Xclang -fcompatibility-qualified-id-block-type-checking

3.-Xclang -fcompatibility-qualified-id-block-type-checking

此方法只适用于 Xcode 12 及以上版本使用,如果使用 Xcode 11 请删除 -Xclang -fcompatibility-qualified-id-block-type-checking 否则编译会失败

人已赞赏
IOS

Mac升级10.15导致pod报错 -bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2

2020-10-17 16:26:45

IOS

[iOS14]iPhone上画中画效果实现[详细代码]

2020-10-17 17:50:28

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
'); })();