LoginSignup
1
3

More than 5 years have passed since last update.

【Swiftめも】言語の理解・導入

Posted at

Swiftの勉強

そもそもSwiftがどんな言語かすら知らないので
お勉強。

Swift4 の基本文法をマスターしよう

↓SlideShare
thumbnail

thumbnail

導入

勉強ばかりしていても仕方ないので、、、
実際に環境を整えて触れるようにしていきます

Swift実践入門 〜 今からはじめるiOSアプリ開発!

こちらを参考にしながら、作っていきます
※ほぼ同じことを記録程度に記載していきます

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」のインストール

初めての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より開発を行っていく

1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3