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
97
Concurrency Warningが 沢山出たから聞いてほしい ~Xcode 16.1 Beta 編~
おしん
September 06, 2024
Tweet
Share
More Decks by おしん
See All by おしん
iOSのPhoto Libraryアクセス権限を見直してみよう
shincarpediem
1
150
SwiftUI登場前のVIPERアプリでもSwiftUIをスムーズに導入できた話
shincarpediem
2
1.4k
VIPERアプリにSwiftUIを導入してみた
shincarpediem
1
340
Other Decks in Programming
See All in Programming
Honoの来た道とこれから
yusukebe
19
3k
Android 15 でアクションバー表示時にステータスバーが白くなってしまう問題
tonionagauzzi
0
140
現場で役立つモデリング 超入門
masuda220
PRO
13
2.9k
弊社の「意識チョット低いアーキテクチャ」10選
texmeijin
5
23k
Snowflake x dbtで作るセキュアでアジャイルなデータ基盤
tsoshiro
2
430
アジャイルを支えるテストアーキテクチャ設計/Test Architecting for Agile
goyoki
7
2.8k
役立つログに取り組もう
irof
26
8.7k
開発効率向上のためのリファクタリングの一歩目の選択肢 ~コード分割~ / JJUG CCC 2024 Fall
ryounasso
0
360
Pinia Colada が実現するスマートな非同期処理
naokihaba
2
160
ECSのサービス間通信 4つの方法を比較する 〜Canary,Blue/Greenも添えて〜
tkikuc
11
2.3k
レガシーな Android アプリのリアーキテクチャ戦略
oidy
1
170
macOS でできる リアルタイム動画像処理
biacco42
7
1.9k
Featured
See All Featured
Gamification - CAS2011
davidbonilla
80
5k
Thoughts on Productivity
jonyablonski
67
4.3k
Building Better People: How to give real-time feedback that sticks.
wjessup
363
19k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
32
1.8k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
27
1.9k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
43
6.6k
What's new in Ruby 2.0
geeforr
342
31k
RailsConf 2023
tenderlove
29
880
[RailsConf 2023] Rails as a piece of cake
palkan
51
4.9k
Agile that works and the tools we love
rasmusluckow
327
21k
Building Flexible Design Systems
yeseniaperezcruz
327
38k
Navigating Team Friction
lara
183
14k
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