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
Concurrency Warningが 沢山出たから聞いてほしい ~Xcode 16.1 B...
Search
おしん
September 06, 2024
Programming
1
110
Concurrency Warningが 沢山出たから聞いてほしい ~Xcode 16.1 Beta 編~
おしん
September 06, 2024
Tweet
Share
More Decks by おしん
See All by おしん
iOSのPhoto Libraryアクセス権限を見直してみよう
shincarpediem
1
160
SwiftUI登場前のVIPERアプリでもSwiftUIをスムーズに導入できた話
shincarpediem
2
1.4k
VIPERアプリにSwiftUIを導入してみた
shincarpediem
1
340
Other Decks in Programming
See All in Programming
Flutterを言い訳にしない!アプリの使い心地改善テクニック5選🔥
kno3a87
1
150
WebフロントエンドにおけるGraphQL(あるいはバックエンドのAPI)との向き合い方 / #241106_plk_frontend
izumin5210
4
1.4k
AWS Lambdaから始まった Serverlessの「熱」とキャリアパス / It started with AWS Lambda Serverless “fever” and career path
seike460
PRO
1
250
Outline View in SwiftUI
1024jp
1
320
Realtime API 入門
riofujimon
0
150
RubyLSPのマルチバイト文字対応
notfounds
0
120
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
0
100
Content Security Policy入門 セキュリティ設定と 違反レポートのはじめ方 / Introduction to Content Security Policy Getting Started with Security Configuration and Violation Reporting
uskey512
1
520
みんなでプロポーザルを書いてみた
yuriko1211
0
260
ペアーズにおけるAmazon Bedrockを⽤いた障害対応⽀援 ⽣成AIツールの導⼊事例 @ 20241115配信AWSウェビナー登壇
fukubaka0825
6
1.9k
Jakarta EE meets AI
ivargrimstad
0
590
Jakarta Concurrencyによる並行処理プログラミングの始め方 (JJUG CCC 2024 Fall)
tnagao7
1
290
Featured
See All Featured
The Pragmatic Product Professional
lauravandoore
31
6.3k
Agile that works and the tools we love
rasmusluckow
327
21k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
506
140k
Practical Orchestrator
shlominoach
186
10k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
Art, The Web, and Tiny UX
lynnandtonic
297
20k
It's Worth the Effort
3n
183
27k
VelocityConf: Rendering Performance Case Studies
addyosmani
325
24k
Producing Creativity
orderedlist
PRO
341
39k
Keith and Marios Guide to Fast Websites
keithpitt
409
22k
Become a Pro
speakerdeck
PRO
25
5k
Designing Experiences People Love
moore
138
23k
Transcript
Copyright © stmn, inc. All rights reserved. iOSΤϯδχΞ ͓͠Μ(@38Punkd) Concurrency
Warning͕ ࢁग़͔ͨΒฉ͍ͯ΄͍͠ ʙXcode 16.1 Beta ฤʙ
2
01 02 03 04 05 Xcode 16ͱSwift versionʹ͍ͭͯ ৽ͨʹग़ͨWaring, Build
Errorͷछྨ ·ͱΊ 3
Xcode 16ͱ Swift versionʹ͍ͭͯ 01
None
Xcode 16.1 Beta͕ ग़·ͨ͠Ͷʂ
Xcode 16͔ΒSwift 6ܥ͕બͰ͖ΔΑ͏ʹ
Xcode 16͔ΒSwift 6ܥ͕બͰ͖ΔΑ͏ʹ Swift 6ܥOpt-inͳͷͰ Xcode 16ͰSwift 5ܥΛࢦఆ͠ଓ͚ΒΕΔ
Swift 6ܥʹରԠͰ͖ͯͳ͍ͱ… Xcode ͕ ΞοϓσʔτͰ͖ͳ͘ͳΔ
Swift 6ܥʹରԠͰ͖ͯͳ͍ͱ… खݩͷ MacPC ͕ ΞοϓσʔτͰ͖ͳ͘ͳΔ
৽ͨʹग़ͨ Warning, Build Errorͷछྨ 02
͋͘·Ͱ͕ࣗૺ۰ͨ͠ͷ͚ͩΛ ϐοΫΞοϓͯ͠·͢🙏
01 02 03 04 05 ৽ͨʹग़ͨWarning, Build Errorͷछྨ initializerݺͼग़͠ݩͷActor ContextΛҾ͖ܧ͙
nonSendable͕ActorڥքΛ͑Δʹ`sending` ڞ௨ͷܕͷProtocolՃ४ڌʹ`@retroactive` 13 awakeFromNib
01 02 03 04 05 ৽ͨʹग़ͨWarning, Build Errorͷछྨ initializerݺͼग़͠ݩͷActor ContextΛҾ͖ܧ͙
nonSendable͕ActorڥքΛ͑Δʹ`sending` ڞ௨ͷܕͷProtocolՃ४ڌʹ`@retroactive` 14 awakeFromNib
initializerݺͼग़͠ݩͷActor ContextΛҾ͖ܧ͙
initializerݺͼग़͠ݩͷActor ContextΛҾ͖ܧ͙
initializerݺͼग़͠ݩͷActor ContextΛҾ͖ܧ͙
initializerݺͼग़͠ݩͷActor ContextΛҾ͖ܧ͙
initializerݺͼग़͠ݩͷActor ContextΛҾ͖ܧ͙ ղফํ๏ 1
initializerݺͼग़͠ݩͷActor ContextΛҾ͖ܧ͙
initializerݺͼग़͠ݩͷActor ContextΛҾ͖ܧ͙ ղফํ๏ 2
initializerݺͼग़͠ݩͷActor ContextΛҾ͖ܧ͙
initializerݺͼग़͠ݩͷActor ContextΛҾ͖ܧ͙ 4XJGU͔Β༻Մೳ ৄࡉ1SPQPTBMΛ☑ IUUQTHJUIVCDPNTXJGUMBOHTXJGUFWPMVUJPOCMPCNBJOQSPQPTBMT BDUPSJOJUJBMJ[FSTNE
01 02 03 04 05 ৽ͨʹग़ͨWarning, Build Errorͷछྨ initializerݺͼग़͠ݩͷActor ContextΛҾ͖ܧ͙
nonSendable͕ActorڥքΛ͑Δʹ`sending` ڞ௨ͷܕͷProtocolՃ४ڌʹ`@retroactive` 24 awakeFromNib
nonSendable͕ActorڥքΛ͑Δʹ`sending`
nonSendable͕ActorڥքΛ͑Δʹ`sending`
nonSendable͕ActorڥքΛ͑Δʹ`sending`
nonSendable͕ActorڥքΛ͑Δʹ`sending` ղফํ๏
nonSendable͕ActorڥքΛ͑Δʹ`sending`
nonSendable͕ActorڥքΛ͑Δʹ`sending` 4XJGU͔Β༻Մೳ ৄࡉ1SPQPTBMΛ☑ IUUQTHJUIVCDPNTXJGUMBOHTXJGUFWPMVUJPOCMPCNBJOQSPQPTBMT USBOTGFSSJOHQBSBNFUFSTBOESFTVMUTNE IUUQT[FOOEFWNBUTVKJBSUJDMFTGDF
01 02 03 04 05 ৽ͨʹग़ͨWarning, Build Errorͷछྨ initializerݺͼग़͠ݩͷActor ContextΛҾ͖ܧ͙
nonSendable͕ActorڥքΛ͑Δʹ`sending` ڞ௨ͷܕͷProtocolՃ४ڌʹ`@retroactive` 31 awakeFromNib
ڞ௨ͷܕͷProtocolՃ४ڌʹ`@retroactive`
ڞ௨ͷܕͷProtocolՃ४ڌʹ`@retroactive`
ڞ௨ͷܕͷProtocolՃ४ڌʹ`@retroactive` ղফํ๏
ڞ௨ͷܕͷProtocolՃ४ڌʹ`@retroactive`
ڞ௨ͷܕͷProtocolՃ४ڌʹ`@retroactive` `@retroactive`ͳͥඞཁʁ
ڞ௨ͷܕͷProtocolՃ४ڌʹ`@retroactive`
ڞ௨ͷܕͷProtocolՃ४ڌʹ`@retroactive` `ෳModuleͰProtocolΛ४ڌ͠ɺͦΕͧΕҟͳΔ࣮Λ͢Δͱɺ ҙਤ͠ͳ͍ڍಈʹɻ ։ൃऀࣄͰͲ͏ͯ͠ඞཁͳΒɺ`@retroactive`Λ͚ͭͯ swift 6ܥͰͷBuild ErrorΛճආͰ͖Δ( = ಀ͛ಓ)ɻ
ڞ௨ͷܕͷProtocolՃ४ڌʹ`@retroactive` `ෳModuleͰProtocolΛ४ڌ͠ɺͦΕͧΕҟͳΔ࣮Λ͢Δͱɺ ҙਤ͠ͳ͍ڍಈʹɻ ։ൃऀࣄͰͲ͏ͯ͠ඞཁͳΒɺ`@retroactive`Λ͚ͭͯ swift 6ܥͰͷBuild ErrorΛճආͰ͖Δ( = ಀ͛ಓ)ɻ 4XJGU͔Β༻Մೳ
ৄࡉ1SPQPTBMΛ☑ IUUQTHJUIVCDPNTXJGUMBOHTXJGUFWPMVUJPOCMPCNBJOQSPQPTBMT SFUSPBDUJWFDPOGPSNBODFXBSOJOHNE
01 02 03 04 05 ৽ͨʹग़ͨWarning, Build Errorͷछྨ initializerݺͼग़͠ݩͷActor ContextΛҾ͖ܧ͙
nonSendable͕ActorڥքΛ͑Δʹ`sending` ڞ௨ͷܕͷProtocolՃ४ڌʹ`@retroactive` 40 awakeFromNib
awakeFromNib
awakeFromNib
awakeFromNib
·ͱΊ 03
·ͱΊ • Xcode 16ͰେྔͷWarning͕ग़Δ
·ͱΊ • Xcode 16ͰେྔͷWarning͕ग़Δ • ProposalΛಡΈਐΊΔͱཧ༝͕Θ͔Δ
·ͱΊ ਏ͍͚Ͳ͕ΜΖʂ
͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ 48