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
290
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.3k
HEVC Video with Alpha Channel
toyship
1
1.1k
RealityKit & Reality Composer
toyship
3
490
ARKit3
toyship
4
7k
UIViewPropertyAnimator and Easing
toyship
2
940
Other Decks in Technology
See All in Technology
生成AIが変えるデータ分析の全体像
ishikawa_satoru
0
170
初心者向けAWS Securityの勉強会mini Security-JAWSを9ヶ月ぐらい実施してきての近況
cmusudakeisuke
0
130
Can We Measure Developer Productivity?
ewolff
1
150
Security-JAWS【第35回】勉強会クラウドにおけるマルウェアやコンテンツ改ざんへの対策
4su_para
0
180
テストコード品質を高めるためにMutation Testingライブラリ・Strykerを実戦導入してみた話
ysknsid25
7
2.7k
『Firebase Dynamic Links終了に備える』 FlutterアプリでのAdjust導入とDeeplink最適化
techiro
0
130
Oracle Cloud Infrastructureデータベース・クラウド:各バージョンのサポート期間
oracle4engineer
PRO
28
13k
Python(PYNQ)がテーマのAMD主催のFPGAコンテストに参加してきた
iotengineer22
0
500
OCI Network Firewall 概要
oracle4engineer
PRO
0
4.2k
AI前提のサービス運用ってなんだろう?
ryuichi1208
8
1.4k
なぜ今 AI Agent なのか _近藤憲児
kenjikondobai
4
1.4k
100 名超が参加した日経グループ横断の競技型 AWS 学習イベント「Nikkei Group AWS GameDay」の紹介/mediajaws202411
nikkei_engineer_recruiting
1
170
Featured
See All Featured
Code Review Best Practice
trishagee
64
17k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
25
1.8k
The Art of Programming - Codeland 2020
erikaheidi
52
13k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
28
8.2k
It's Worth the Effort
3n
183
27k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
42
9.2k
The Invisible Side of Design
smashingmag
298
50k
Imperfection Machines: The Place of Print at Facebook
scottboms
265
13k
YesSQL, Process and Tooling at Scale
rocio
169
14k
KATA
mclloyd
29
14k
Six Lessons from altMBA
skipperchong
27
3.5k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
6
420
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ͰϝϞΛͱͬͨΓͰ͖ΔΑ͏ʹͳΓ·ͨ͠ɻ • ରԠ͢ΔͳΒ͕Μ͍ͬͯͩ͘͞Ͷʂ •
۪ஒͳΒ͖͖·͢ʂ