Git으로 페이스북 iOS SDK 설치

Git으로 페이스북 iOS SDK 설치
Git으로 아이폰용 페북 SDK 설치

1 Git Clone[ | ]

1.1 명령어[ | ]

git clone git://github.com/facebook/facebook-ios-sdk.git

1.2 실행예시[ | ]

  • Finder --- 응용프로그램 --- 유틸리티 --- 터미널
Jmnote-MacBook-Air:~ jmnote$ git clone git://github.com/facebook/facebook-ios-sdk.git
Cloning into 'facebook-ios-sdk'...
remote: Counting objects: 1036, done.
remote: Compressing objects: 100% (554/554), done.
remote: Total 1036 (delta 566), reused 847 (delta 430)
Receiving objects: 100% (1036/1036), 1.86 MiB | 338 KiB/s, done.
Resolving deltas: 100% (566/566), done.

1.3 확인[ | ]

Jmnote-MacBook-Air:~ jmnote$ ls
Desktop			Library			Pictures
Documents		Movies			Public
Downloads		Music			facebook-ios-sdk
→ SDK는 ~/facebook-ios-sdk 폴더에 설치되었다.
Jmnote-MacBook-Air:~ jmnote$ pwd
/Users/jmnote
→ 참고로 홈 폴더(~)의 절대경로는 /Users/계정명이다.

2 페북 SDK 라이브러리 생성[ | ]

2.1 명령어[ | ]

~/facebook-ios-sdk/scripts/build_facebook_ios_sdk_static_lib.sh

2.2 실행 예시[ | ]

Jmnote-MacBook-Air:~ jmnote$ ~/facebook-ios-sdk/scripts/build_facebook_ios_sdk_static_lib.sh
Project Home: /Users/jmnote/facebook-ios-sdk
Start Universal facebook-ios-sdk SDK Generation
Step 1 : facebook-ios-sdk SDK Build Library for simulator and device architecture
Build settings from command line:
    SDKROOT = iphonesimulator5.1
    SYMROOT = /Users/jmnote/facebook-ios-sdk/build

=== CLEAN NATIVE TARGET facebook-ios-sdk OF PROJECT facebook-ios-sdk WITH CONFIGURATION Release ===
Check dependencies

Clean.Remove clean /Users/jmnote/facebook-ios-sdk/build/Release-iphonesimulator/libfacebook_ios_sdk.a
    builtin-rm -rf /Users/jmnote/facebook-ios-sdk/build/Release-iphonesimulator/libfacebook_ios_sdk.a
... (생략)

** BUILD SUCCEEDED **

Step 2 : Remove older SDK Directory
Step 3 : Create new SDK Directory Version
Step 4 : Create combine lib files for various platforms into one
Step 5 : Copy headers Needed
Step 6 : Copy other file needed like bundle
Finished Universal facebook-ios-sdk SDK Generation

You can now use the static library that can be found at:

/Users/jmnote/facebook-ios-sdk/lib/facebook-ios-sdk

Just drag the facebook-ios-sdk directory into your project to include the Facebook iOS SDK static library
→ 라이브러리가 /Users/jmnote/facebook-ios-sdk/lib/facebook-ios-sdk 에 생성되었다. 필요할 때 Xcode 프로젝트에서 가져다 쓰면 된다.

3 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}