개발모음집

Alamofire install 본문

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/

'TheRestDevelop' 카테고리의 다른 글

android Studio에서 Unity AR 기능 구현하기  (0) 2018.11.01
shaka player 설치하는 법  (0) 2018.10.17
용어정리  (0) 2018.09.09
Prototype table cells must have reuse identifiers  (0) 2018.09.07
테이블뷰 만들기  (0) 2018.09.06