其他分享
首页 > 其他分享> > Xcode卡顿 编译问题

Xcode卡顿 编译问题

作者:互联网

Xcode卡顿

Masonry 大量使用时导致Xcode在New build system编译卡顿

原因:

#import "View+MASAdditions.h"
#import "ViewController+MASAdditions.h"

这两个文件方法实现放在了.h文件中

解决方案:
使用

pod 'Masonry', :git=> "https://github.com/warpling/Masonry.git", :branch=> "master"

或者
创建上面两个文件对应的.m文件,并把实现部分放到.m中

标签:MASAdditions,文件,git,Xcode,编译,Masonry,卡顿
来源: https://blog.csdn.net/xuzenghuifeng/article/details/117693279