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
How I struggle with SiriKit.
Search
Tachibana Kaoru
June 19, 2017
Technology
2
1.8k
How I struggle with SiriKit.
Tachibana Kaoru
June 19, 2017
Tweet
Share
More Decks by Tachibana Kaoru
See All by Tachibana Kaoru
GeoLocationAnchor and MKTileOverlay
toyship
0
280
Custom Group Activities
toyship
3
1.3k
Synchronized iPhones, Again!
toyship
2
1.4k
ARKit4.pdf
toyship
1
2.1k
Custom Gesture Recognizer on iOS
toyship
3
1.2k
HEVC Video with Alpha Channel
toyship
1
1.1k
RealityKit & Reality Composer
toyship
3
480
ARKit3
toyship
4
7k
UIViewPropertyAnimator and Easing
toyship
2
930
Other Decks in Technology
See All in Technology
一休.comレストランにおけるRustの活用
kymmt90
3
580
物価高なラスベガスでの過ごし方
zakky
0
370
Product Engineer Night #6プロダクトエンジニアを育む仕組み・施策
hacomono
PRO
1
460
pandasはPolarsに性能面で追いつき追い越せるのか
vaaaaanquish
4
4.4k
【技術書典17】OpenFOAM(自宅で極める流体解析)2次元円柱まわりの流れ
kamakiri1225
0
210
ABEMA のコンテンツ制作を最適化!生成 AI x クラウド映像編集システム / abema-ai-editor
cyberagentdevelopers
PRO
1
180
わたしとトラックポイント / TrackPoint tips
masahirokawahara
1
240
【若手エンジニア応援LT会】AWSで繋がり、共に成長! ~コミュニティ活動と新人教育への挑戦~
kazushi_ohata
0
180
Shift-from-React-to-Vue
calm1205
3
1.3k
チームを主語にしてみる / Making "Team" the Subject
ar_tama
4
300
Gradle: The Build System That Loves To Hate You
aurimas
2
140
オニオンアーキテクチャで実現した 本質課題を解決する インフラ移行の実例
hryushm
14
3k
Featured
See All Featured
The Cult of Friendly URLs
andyhume
78
6k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
92
16k
Into the Great Unknown - MozCon
thekraken
31
1.5k
Building Better People: How to give real-time feedback that sticks.
wjessup
363
19k
It's Worth the Effort
3n
183
27k
Building Applications with DynamoDB
mza
90
6.1k
Building an army of robots
kneath
302
42k
YesSQL, Process and Tooling at Scale
rocio
167
14k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
231
17k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
364
22k
Automating Front-end Workflow
addyosmani
1365
200k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
28
7.9k
Transcript
How I struggle with SiriKit. !5BDIJCBOB,BPSV QPUBUPUJQT
ࣗݾհ • @TachibanaKaoru • ϑϦʔϥϯεiOSΤϯδχΞ • Blog : http://www.toyship.org/
iOSDC 2017 • iOSͱपลٕज़Λࡐͱͨ͠ΧϯϑΝϨϯεͰ͢ɻ • ࠓ 9/15~9/17 ͷࡾؒ։࠵ͱͳΓɺCFP૿͑ ·͢ʂੋඇԠื͍ͯͩ͘͠͞ɻ •
https://iosdc.jp/2017/
SiriKitͱ • Siri͔ΒࣗͷΞϓϦΛ͍ͬͯΖ͍ΖͰ͖Δػೳɻ • ࣗͷΞϓϦͷػೳ͕ͳΜͰ͑ΔΘ͚Ͱͳ͘ɺ ࢦఆ͞Εͨಛఆͷػೳʢϝοηʔδૹ৴ɺλΫγʔΛ ΑͿɺͳͲʣͰ͔͑͠·ͤΜɻ • iOS10Ͱಋೖ͞Ε·ͨ͠ɻ
ͪͳΈʹSiriKitͰάάΔͱ…… • ಉ໊ͷλΠͷԦ൲༷ɺγϦΩοτ͞Μ͕Ͱ͖ͯ·͢ɻ
SiriKitͷத…… • ࣮ɺʮSiriKitʯͱ͍͏໊લͷϑϨʔϜϫʔΫ͋Γ· ͤΜɻ • Intents : SiriKitͷϩδοΫΛ୲͢ΔϑϨʔϜϫʔΫ • Intents
UI : SiriKitͷUIΛ୲͢ΔϑϨʔϜϫʔΫ
SiriKitʹରԠͨ͠ΞϓϦͷߏ Intents UI Extension
ࠓɺSiriKit ͕͍͔ʹͭΒ͍ͷ͔Λ͓ͨ͠͠ ͍ͱࢥ͍·͢ɻ
̍ʣSiriʹͳΜ͔͚ͯ͠Ε͍͍ͷ͔Θ͔Βͳ͍ • Siriʹ͔͚͠Δͱಛఆͷػೳ͕͑ΔΜ͚ͩͲ……ɻ • ͳΜ͔͚͍͍ͯͯ͠ͷ͔Θ͔Βͳ͍ɻ • ʮSiriϝοηʔδૹͬͯʯͰ͍͍ͷʁ • ͏·͘ಈ͍ͨΈ͍͚ͨͩͲ͜ΕͰຊʹେৎ ……ʁ
̍ʣSiriʹͳΜ͔͚ͯ͠Ε͍͍ͷ͔Θ͔Βͳ͍ • ࠷ۙͬͱAppleͷެࣜΨΠμϯε͕ൃද͞Ε·ͨ͠ɻ • https://developer.apple.com/documentation/sirikit/ inrequestrideintent • ֤ࠃޠͰɺͲͷηϦϑͰSiriΛΑͼ͔ͩ֬͢ೝͰ͖· ͢ɻ
̎ʣຊମΞϓϦͱSiriKitͰϓϩηε͕ҟͳΔ • ҟͳΔϓϩηεͷͨΊɺવ on memoryͷใ͕ར༻ Ͱ͖ͳ͍ɻ • ϑΝΠϧΩϟογϡʹཔͬͨΓɺωοτϫʔΫ͔Β ใΛ࠶औಘͨ͠Γͯ͠ɺຊମͱಉ͡ใΛऔಘ͢Δඞ ཁ͕͋Δɻ
̏ʣຊମΞϓϦͱSiriKitͰετϨʔδ͕ҟͳΔɻ • ϑΝΠϧΩϟογϡUserDefaultsͳͲɺϩʔΧϧʹอ ଘ͢Δͷ͕ͦͷ··Ͱผͷͱ͜Ζʹอଘ͞ΕΔɻ • App GroupʢΞϓϦΛԣஅͯ͠ར༻Ͱ͖ΔϩʔΧϧετ ϨʔδʣΛར༻ͯ͠ϑΝΠϧΛڞ༗͢ΔΈʹ࡞Γ ม͑Δඞཁ͕͋Δɻ
̐ʣϩά͕ͱΕͳ͍͜ͱ͕͋Δɻ • ΞϓϦͷϓϩηε͕ͦΕͧΕҟͳΔͨΊΞϓϦͱ Intentsͷσόοάϩάಉ࣌ʹऔಘͰ͖ͳ͍ɻ • ʢ·ͨɺ͓ͦΒ͘ൃల్্ͷͨΊɺىಈλΠϛϯάʹ Αͬͯσόοάϩά͕ͱΕͳ͍͜ͱ͕͋Δʣ • ·ͨɺ௨ৗͷํ๏ͰSiri෦ॲཧσόοάϩάʹද ࣔ͞Εͣɺࣗ͠ͷIntentsͷϩάͱΕͯɺSiriͷ
෦ॲཧͰԿ͕ࣦഊཁҼͳͷ͔Λٻ͠ʹ͍͘ɻ
̐ʣϩά͕ͱΕͳ͍͜ͱ͕͋Δɻ • Apple ͷόάϨϙʔτͰհ͞Ε͍͍ͯΔख๏Λ͏ͱ SiriͷϩάΛͱΔ͜ͱ͕Ͱ͖Δɻ • https://developer.apple.com/bug-reporting/profiles- and-logs/
̑ʣϒϨʔΫϙΠϯτ͕͑ͳ͍ • Siri෦ॲཧʹλΠϜΞτ͕͋ΔͨΊɺͯ͢ͷॲ ཧΛλΠϜΞτʹ͓͞ΊΔඞཁ͕͋Δɻ • ϒϨʔΫϙΠϯτͰఀࢭ͢ΔͱɺඞͣλΠϜΞτʹ ͻ͔͔ͬͬͯ͠·͏ͨΊɺਖ਼ৗͳॲཧͷon memoryͷ ঢ়ଶΛ֬ೝ͢Δ͜ͱ͕Ͱ͖ͳ͍ɻ
̑ʣϒϨʔΫϙΠϯτ͕͑ͳ͍ • WWDC2017ͰɺSiriKit ୲ͷApple Engineerʹฉ͍ͯΈ ·ͨ͠ɻ
̑ʣϒϨʔΫϙΠϯτ͕͑ͳ͍ • SiriKit ୲ͷApple Engineer ᐌ͘ɻ • ʮͨͪࠔͬͯΔΜͩΑͶʂʯ • ʮͦͷ͏ͪͳΜͱ͔Ͱ͖Δ͔……ʯ
• ʢͨͿΜͨͩͷҚΊͩͱࢥ͍·͢ɻʣ
̒ʣϩδοΫͱUIͷϓϩηε͕ҧ͏ • SiriKitͷϩδοΫ෦ͷॲཧIntents ExtensionͰߦ ͍ɺUI෦ͷॲཧIntents UI ExtensionͰߦ͍·͢ɻ • ϓϩηε͕ҧ͏ͨΊɺϩδοΫ෦ͰԿΛͨ͠ͷ͔Λ ʮετϨʔδΛ௨ͯ͠ʯUI෦Ͱऔಘ͢Δ͜ͱʹͳ
Δɻ
̓ʣSiri͕Θ͔ͬͯ͘Εͳ͍ɻ • σόοά͕ଓ͘ͱΓํ͍͍ՃݮʹͳͬͯɺSiri͕ೝ ࣝͯ͘͠Εͳ͍ɻ • Կճಉ͜͡ͱΛҰਓͰ܁Γฦ͢ͷͰɺपғͷ͖ ʹͳΔ……ɻ
̓ʣSiri͕Θ͔ͬͯ͘Εͳ͍ɻ • ࠷ۙɺΞϓϦΛىಈ͢Δͱ͖ʹSiriͷจݴΛΘͨͤΔΑ ͏ʹͳͬͨɻʼ͠ΌΒͳ͍͍ͯ͘ʂ
·ͱΊ • SiriKit ͭΒ͍ɻ৺͕ંΕ·͢ɻ • ͰiOS11ͰɺରԠυϝΠϯʢରԠػೳʣ͕૿͑ɺ SiriKitͰϝϞΛͱͬͨΓͰ͖ΔΑ͏ʹͳΓ·ͨ͠ɻ • ରԠ͢ΔͳΒ͕Μ͍ͬͯͩ͘͞Ͷʂ •
۪ஒͳΒ͖͖·͢ʂ