あかん

はてなチュートリアルを読んでいるが、端折られすぎてついていけない!!!
やばい!!!!

  • podというのを使うと便利ということがわかった

Gemfile

source 'https://rubygems.org'

gem 'cocoapods'
bundle install
bundle exec pod init

Podfile

# Uncomment this line to define a global platform for your project
# platform :ios, '8.0'
# Uncomment this line if you're using Swift
# use_frameworks!
platform :ios, '9.0'

use_frameworks!

pod 'AFNetworking'

target 'Hatena-Tutorial' do

end

target 'Hatena-TutorialTests' do

end

target 'Hatena-TutorialUITests' do

end
bundle exec pod install

.gitignoreは

# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## Build generated
build/
DerivedData

## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata

## Other
*.xccheckout
*.moved-aside
*.xcuserstate
*.xcscmblueprint

## Obj-C/Swift specific
*.hmap
*.ipa

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# Pods/

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 
# screenshots whenever they are needed.

fastlane/report.xml
fastlane/screenshots

で一旦プロジェクトを閉じて.xcworkspace という拡張子のファイルを開くと良い

明日からは書籍に行こう。