开发常见错误简单总结

这是一个肌球蛋白,拖着一个内啡肽,走在一个单纤维上,然后大摇大摆的走过你的大脑皮层,这是让你产生快乐的物质,它为了让你开心每天辛苦的拖着这个大东西,你还有什么理由难过呢?


快乐的劳动者.gif

在使用cocoapod导入Swift第三方时出现这样的问题:

[!] Pods written in Swift can only be integrated as frameworks; add `use_frameworks!` to your Podfile or target to opt into using it. The Swift Pod being used is: AFNetworking

pod更新后之前Podfile写法可能会不能正常使用,可以尝试新的写法,指定工程:

platform :ios, '8.0'
use_frameworks!
target “工程名” do
pod 'AFNetworking', '~> 3.0.4'
.
.
.
end

swift 第三方库迁移错误:
“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.

错误.png

解决:
选择 Pods - QorumLogs - Swift Compiler - Version - Use Legacy Swift Language Version 把Unspecified改成NO

解决.png
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容