Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Swift Scripting入門
Search
watura
July 11, 2016
Technology
0
120
Swift Scripting入門
watura
July 11, 2016
Tweet
Share
More Decks by watura
See All by watura
Ruby note Mobile Tech Talk #1
watura
0
1.8k
iPhone が数秒おきにクラッシュするんだけど!
watura
0
9
ノートアプリにUndo機能を実装! UndoManager導入ポイント
watura
0
580
2つのAuroraクラスタを同期したお話
watura
0
1.7k
Zaim API
watura
1
720
Other Decks in Technology
See All in Technology
Cloud WAN MCP Serverから考える新しいネットワーク運用 / 20251228 Masaki Okuda
shift_evolve
PRO
0
140
2025年のデザインシステムとAI 活用を振り返る
leveragestech
0
750
All About Sansan – for New Global Engineers
sansan33
PRO
1
1.3k
re:Invent2025 セッションレポ ~Spec-driven development with Kiro~
nrinetcom
PRO
2
170
歴史から学ぶ、Goのメモリ管理基礎
logica0419
12
2.5k
Oracle Cloud Infrastructure:2025年12月度サービス・アップデート
oracle4engineer
PRO
0
220
松尾研LLM講座2025 応用編Day3「軽量化」 講義資料
aratako
15
4.9k
チームで安全にClaude Codeを利用するためのプラクティス / team-claude-code-practices
tomoki10
6
3.1k
純粋なイミュータブルモデルを設計してからイベントソーシングと組み合わせるDeciderの実践方法の紹介 /Introducing Decider Pattern with Event Sourcing
tomohisa
1
840
国井さんにPurview の話を聞く会
sophiakunii
1
350
Introduction to Sansan for Engineers / エンジニア向け会社紹介
sansan33
PRO
5
60k
RALGO : AIを組織に組み込む方法 -アルゴリズム中心組織設計- #RSGT2026 / RALGO: How to Integrate AI into an Organization – Algorithm-Centric Organizational Design
kyonmm
PRO
3
930
Featured
See All Featured
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
210
How to make the Groovebox
asonas
2
1.9k
Heart Work Chapter 1 - Part 1
lfama
PRO
4
35k
Abbi's Birthday
coloredviolet
0
4.2k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
110
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
9
1k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
45
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
115
100k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.1k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.2k
How to Ace a Technical Interview
jacobian
281
24k
The Power of CSS Pseudo Elements
geoffreycrofte
80
6.1k
Transcript
ՈܭαʔϏε גࣜձࣾ;BJN ຊߤ 4XJGU4DSJQUJOHೖ
;BJN*OD"MMSJHIUTSFTFSWFE ΤϯδχΞ J048FCΠϯϑϥ גࣜձࣾ;BJNຊߤʢ!XBUVSB ࣗݾհ
;BJN*OD"MMSJHIUTSFTFSWFE ΫνίϛͰීٴͨ͠ࠃ࠷େڃͷΦϯϥΠϯՈܭ ສμϯϩʔυಥഁ ՈܭαʔϏεʮ;BJNʯ
;BJN*OD"MMSJHIUTSFTFSWFE ͪΐͬͱͨ͠ॲཧΓ͍ͨ 4IFMM4DSJQU 3VCZ 1ZUIPO ͔ͯ͠͠
"QQMF4DSJQU+4FUDʜ
;BJN*OD"MMSJHIUTSFTFSWFE
;BJN*OD"MMSJHIUTSFTFSWFE దʹ༡Ϳ͚ͩͳΒ9DPEF͍Βͳ͍ WJNͰFNBDTͰॻ͚Δ ͍͍ͭͬͯΔ4XJGUͳΒ࣮͕ૣ͘ͳΔʁ
;BJN*OD"MMSJHIUTSFTFSWFE どうやって実行するの? $ cat helloWorld.swift print(“hello Melon”) $ swift
helloWorld.swift hello Melon
;BJN*OD"MMSJHIUTSFTFSWFE ./helloMelon.swiftって書きたい swift helloMelon.swiftって書くのめんどくさい $ cat helloWorld.swift #!/usr/bin/env swift
print(“hello Melon”) $ chmod +x helloMelon.swift $ ./helloMelon.swift hello Melon
;BJN*OD"MMSJHIUTSFTFSWFE VTSCJOFOWTXJGU $PATHからswiftを見つけてきてくれる
;BJN*OD"MMSJHIUTSFTFSWFE ͬͺΓμϒϧΫϦοΫͰ࣮ߦ͍ͨ͠ $ mv helloMelon.swift helloMelon.command $ chmod +x
helloMelon.command ダブルクリックしたら別端末が開く hello Melon
;BJN*OD"MMSJHIUTSFTFSWFE $BSUIBHF͕͍͍ͨ #!/usr/bin/env swift #!/usr/bin/env swift -F Carthage/Build/Mac import
Foundation import ReactiveCocoa $ swift -F Carthage/Build/Mac helloMelon.swift 03
;BJN*OD"MMSJHIUTSFTFSWFE $PDPB1PET͕͍͍ͨʂ w͝ΊΜɽௐͯͳ͍
;BJN*OD"MMSJHIUTSFTFSWFE (6*͍͍ͨ w͑ΔΑʂ wͰɼ͝ΊΜɽͲ͜·Ͱ͑Δ͔Θ͔ΒΜ JNQPSU$PDPB MFUBMFSU/4"MFSU BMFSUNFTTBHF5FYU.FMPO BMFSUSVO.PEBM
;BJN*OD"MMSJHIUTSFTFSWFE ·ͱΊ wϑΝΠϧૢ࡞ͱ͔ѹతʹ4IFMM4DSJQUͩͱࢥ͏ w"VUPNBUPS͑Δͱ͖͑Δ w4XJGU w$BSUIBHF͑ͨΓ w$PDPB͕#SJEHFͳ͠Ͱ͑ͨΓ wීஈͱಉ͡ݴޠͩͬͨΓ wλΠϛϯάॲཧ༰ͳͲʹΑ͍ͬͯΘ͚͍ͨͶ
wͪͳΈʹTXJGUͰSFQM͕ಈ͘Α
;BJN*OD"MMSJHIUTSFTFSWFE JOGP![BJNOFU ͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠