Make a note about iphone development project preparation every time.
enviroment
- Xcode6.1
1. create project
// create project from xcode
2. install cocoapods
// change directory to project folder
cd {project_folder}
// make Gemfile
touch Gemfile
// open Gemfile
vi Gemfile
// write code
source 'https://rubygems.org'
gem 'cocoapods'
// install
bundle install --path=vendor/bundle
3. create Podfile
// change directory to project folder
cd {project_folder}
// make Gemfile
touch Podfile
// open Gemfile
vi Podfile
// write code
platform :ios, '7.0'
pod "AFNetworking", "~> 2.0"
pod 'Reachability', '~> 3.0.0'
pod 'SHUIKitBlocks'
pod 'SVProgressHUD'
// library install
bundle exec pod install
4. xcode restart and build comfirm
- xcode close
- click .xcworkspace flie and xcode restart
- build and scren display
5. create .gitignore
vi .gitignore # Mac .DS_Store # Xcode # build/ *.pbxuser !default.pbxuser *.mode1v3 !default.mode1v3 *.mode2v3 !default.mode2v3 *.perspectivev3 !default.perspectivev3 xcuserdata *.xccheckout *.moved-aside DerivedData *.hmap *.ipa *.xcuserstate # CocoaPods # # We recommend against adding the Pods directory to your .gitignore. However # you should judge for yourself, the pros and cons are mentioned at: # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control # vendor/bundle/ Pods/
6. create README.md
// change directory to project folder
cd {project_folder}
// make Gemfile
touch README.md
// write something
7. git
// change directory to project folder
cd {project_folder}
// make Gemfile
touch README.md
// write something
// staging
git add --all
// first tag
git tag v0.1
// push master
git push origin master
// push tag
git push -u origin --tags
// branch
git branch develop
// push develop
git push -u origin develop
All set. Let's enjoy developing.
Thanks.
0 件のコメント:
コメントを投稿