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
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
0
100
Macとオーディオ再生 2024/11/02
yusukeito
0
370
[Do iOS '24] Ship your app on a Friday...and enjoy your weekend!
polpielladev
0
110
見せてあげますよ、「本物のLaravel批判」ってやつを。
77web
7
7.8k
Streams APIとTCPフロー制御 / Web Streams API and TCP flow control
tasshi
2
350
ActiveSupport::Notifications supporting instrumentation of Rails apps with OpenTelemetry
ymtdzzz
1
230
Creating a Free Video Ad Network on the Edge
mizoguchicoji
0
120
Click-free releases & the making of a CLI app
oheyadam
2
120
Jakarta EE meets AI
ivargrimstad
0
110
みんなでプロポーザルを書いてみた
yuriko1211
0
260
リアーキテクチャxDDD 1年間の取り組みと進化
hsawaji
1
220
Duckdb-Wasmでローカルダッシュボードを作ってみた
nkforwork
0
130
Featured
See All Featured
It's Worth the Effort
3n
183
27k
Typedesign – Prime Four
hannesfritz
40
2.4k
GraphQLとの向き合い方2022年版
quramy
43
13k
Raft: Consensus for Rubyists
vanstee
136
6.6k
How To Stay Up To Date on Web Technology
chriscoyier
788
250k
VelocityConf: Rendering Performance Case Studies
addyosmani
325
24k
The Power of CSS Pseudo Elements
geoffreycrofte
73
5.3k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
0
97
Into the Great Unknown - MozCon
thekraken
32
1.5k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
665
120k
Agile that works and the tools we love
rasmusluckow
327
21k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5k
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