TheRestDevelop

Alamofire install

void 2018. 9. 12. 10:00


# sudo gem install cocoapods

# source 'https://github.com/CocoaPods/Specs.git'

# open -e podfile

# pod setup

# touch podfile

# open -e podfile


// podfile에 기록할 텍스트 시작

source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '10.0'

use_frameworks!


target 'xcode프로젝트명' do

    pod 'Alamofire', '~> 4.7'

end

// podfile에 기록할 텍스트 끝


# pod install


출처 : http://jepark-diary.tistory.com/12



product-clean 후 xcode를 종료한 후에 finder에서 해당 프로젝트의 경로에 들어가 프로젝트명.xcworkspace 파일로 xcode 프로젝트를 실행시켰다. 

그래도 cannot load underlying module for 'alamofire' 에러가 발생했다. 


그냥 product -build로 빌드해주니 에러 해결

출처 : https://jwkcp.github.io/2017/03/22/cocoapods_with_alamofire/