這是一個(gè)肌球蛋白米罚,拖著一個(gè)內(nèi)啡肽钧汹,走在一個(gè)單纖維上,然后大搖大擺的走過你的大腦皮層录择,這是讓你產(chǎn)生快樂的物質(zhì)拔莱,它為了讓你開心每天辛苦的拖著這個(gè)大東西,你還有什么理由難過呢隘竭?
在使用cocoapod導(dǎo)入Swift第三方時(shí)出現(xiàn)這樣的問題:
[!] 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寫法可能會(huì)不能正常使用塘秦,可以嘗試新的寫法,指定工程:
platform :ios, '8.0'
use_frameworks!
target “工程名” do
pod 'AFNetworking', '~> 3.0.4'
.
.
.
end
swift 第三方庫(kù)遷移錯(cuò)誤:
“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.
解決:
選擇 Pods - QorumLogs - Swift Compiler - Version - Use Legacy Swift Language Version 把Unspecified改成NO