Last active
July 12, 2019 04:43
-
-
Save firstfu/8f5b72f19ba8454aef2855ff9e2175e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//預備(整个过程大概是从 https://github.com/CocoaPods/CocoaPods 去克隆一个仓库到本地/Users/username/.cocoapods文件夹) | |
$ pod setup --verbose | |
//一、初始化Podfile文件 | |
$ pod init | |
//二、編輯 Podfile(ios版本是否有向下相容?)->用vim編輯 | |
platform :ios, '8.0' | |
pod 'AFNetworking', '~> 2.5.4' | |
//三、安裝相依性套件(跑完 pod install 之後這個 project 就改使用 .xcworkspace,不使用 .xcodeproj) | |
$ pod install | |
//四、有編輯Podfile文件後 | |
$ pod update | |
//头文件路径——>Search Paths ——> —>User Header Search Paths | |
在SourceControlTest Project上的Target -> Build Settings -> User Header Search Paths 加上輸入${SRCROOT} 後面選 recursive | |
//升级10.11后,运行pod命令出现—>-bash: pod: command not found | |
解決辦法: sudo gem install -n /usr/local/bin cocoapods | |
//常用套件 | |
pod 'AFNetworking', '~> 2.5.4' | |
pod 'FMDB', '~> 2.5' | |
pod 'XMLReader', '~> 0.0.2' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment