1、
error build: SWIFT_VERSION '3.0' is unsupported, supported versions are: 4.0, 4.2, 5.0.
Build Setting中把Swift Language Version下改为Swift 4或者5即可
2、
[WindowScene] Failed to instantiate the default view controller for UIMainStoryboardFile 'Main' - perhaps the designated entry point is not set?
原因分析:在StoryBoard中没有一个view controller设置了Initial View。
解决方案:在Storyboard中,选择一个view conroller作为story board的第一启动界面
3、
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'attempt to register a cell class 'UICollectionView'