Mai
Mai
Jul 24, 2017 · 1 min read

CocoaPods version 1.0.1 และ ต่ำกว่า

ถ้าอยากรู้ว่า Coc0aPods ในเครื่องของเรา version อะไร ให้พิมพ์ pod --version

วะฮะฮ่า เรารอด

แต่… ใครที่มี version 1.0.1 และ ต่ำกว่า ให้ทำตามนี้นะ

เปิด Podfile ขึ้นมา ด้วยคำสั่ง open -a Xcode Podfile

Podfile จะปรากฎขึ้นมา

เข้าไปที่ https://github.com/londonappbrewery/Clima

แล้ว copy code ในหัวข้อ Fix for Cocoapods v1.0.1 and below มาวางใต้ end ใน Podfile

post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.0'
config.build_settings['MACOSX_DEPLOYMENT_TARGET'] = '10.10'
end
end
end

วางแล้ว save ด้วยนะ =D

กลับไปทำ CocoaPods ติดตั้ง new pods ลงในโปรเจ็ค

Mai

Written by

Mai

ยืนงงในดง…โปรแกรม^-^มิ่ง

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade