Swiftの勉強
そもそもSwiftがどんな言語かすら知らないので
お勉強。
導入
勉強ばかりしていても仕方ないので、、、
実際に環境を整えて触れるようにしていきます
こちらを参考にしながら、作っていきます
※ほぼ同じことを記録程度に記載していきます
xcodeにて新規プロジェクト作成する
Xcodeを起動して「Create a new Xcode project」または、メニューから[File]→[New]→[Project]を選択し、新規プロジェクトを作成します。
次の画面で、[iOS]の[Single View Application]を選択して[Next]で進みます。
次に、プロジェクトを保存する任意のフォルダを選択し
[Create Git repository on]のチェックを外して[Create]します。
gitリポジトリ作成
$ git init
$ git add .
$ git commit -m "initial commit"
githubにてリポジトリ作成
$ git remote add origin https://github.com/{gitアカウント}/{gitリポジトリ}.git
$ git push -u origin master
swiftライブラリを管理する「cocoapods」のインストール
$ sudo gem install cocoapods
$ pod setup
$ pod --version
1.5.3
$ cd {swiftプロジェクト}
$ pod init
Podfileの編集
target '{swiftプロジェクト}' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for calculator
pod 'Expression'
end
pod install
あとはxcodeより開発を行っていく