Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Swift Scripting入門
Search
watura
July 11, 2016
Technology
140
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Swift Scripting入門
watura
July 11, 2016
More Decks by watura
See All by watura
ふりがな Deep Dive try! Swift Tokyo 2026
watura
0
1.1k
Ruby note Mobile Tech Talk #1
watura
0
2.4k
iPhone が数秒おきにクラッシュするんだけど!
watura
0
45
ノートアプリにUndo機能を実装! UndoManager導入ポイント
watura
0
770
2つのAuroraクラスタを同期したお話
watura
0
1.7k
Zaim API
watura
1
750
Other Decks in Technology
See All in Technology
HRC_Frontend_Conference_Fukuoka_2026.pdf
ts020
0
750
Genieを崇めよ
kameitomohiro
0
170
すぐできる衛星通信対応 あとは山奥に行くだけ
tatetate55
0
140
AI coding 整合正規方法
philipz
0
110
おい、エージェントを使って終わらせろ
nwiizo
2
710
品質と信頼性を地続きにする
grimoh
2
800
AIを活用するために決めた "やらないこと" - 価値に注目する / Not betting on AI
soudai
PRO
3
560
【技術的負債conf】事業成長に伴う技術的負債の説明責任とAIによるモニタリング、認知的負債について
i35_267
3
1.8k
幾何アルゴリズムで なめらかなピン操作を / iOSDC Japan 2026 / smoothpin
kazumanagano
0
360
Reactの設計論
uhyo
24
14k
AIで社員の自主発信に広報目線を組み込む
_mossann_t
0
130
エージェントはローカル、検証はMicroVM — Lambda MicroVMsでつくるServerless CI
fujioka6789
3
390
Featured
See All Featured
The World Runs on Bad Software
bkeepers
PRO
72
12k
How Software Deployment tools have changed in the past 20 years
geshan
1
34k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
240
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
990
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
540
Facilitating Awesome Meetings
lara
57
7.1k
RailsConf 2023
tenderlove
30
1.5k
Accessibility Awareness
sabderemane
1
210
It's Worth the Effort
3n
188
29k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.2k
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 ͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠