You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Isolation errors when building with Xcode 16.2b1 #10
I'm seeing the following failures when building the latest version of ButtonKit:
/Users/tonyarnold/Library/Developer/Xcode/DerivedData/MyApp-gssxejlsmdmaqwgvadupmvxyerbe/SourcePackages/checkouts/ButtonKit/Sources/ButtonKit/Modifiers/Button+AsyncTask.swift:81:36: error: main actor-isolated property 'initialized' can not be referenced from a nonisolated autoclosure
if task == nil && !initialized {
^
/Users/tonyarnold/Library/Developer/Xcode/DerivedData/MyApp-gssxejlsmdmaqwgvadupmvxyerbe/SourcePackages/checkouts/ButtonKit/Sources/ButtonKit/Modifiers/Button+AsyncTask.swift:72:24: note: property declared here
@State private var initialized = false
^
/Users/tonyarnold/Library/Developer/Xcode/DerivedData/MyApp-gssxejlsmdmaqwgvadupmvxyerbe/SourcePackages/checkouts/ButtonKit/Sources/ButtonKit/Modifiers/Button+AsyncTask.swift:83:21: error: main actor-isolated property 'initialized' can not be mutated from a Sendable closure
initialized = true
^
/Users/tonyarnold/Library/Developer/Xcode/DerivedData/MyApp-gssxejlsmdmaqwgvadupmvxyerbe/SourcePackages/checkouts/ButtonKit/Sources/ButtonKit/Modifiers/Button+AsyncTask.swift:72:24: note: mutation of this property is only permitted within the actor
@State private var initialized = false
^
/Users/tonyarnold/Library/Developer/Xcode/DerivedData/MyApp-gssxejlsmdmaqwgvadupmvxyerbe/SourcePackages/checkouts/ButtonKit/Sources/ButtonKit/Modifiers/Button+AsyncTask.swift:87:17: error: call to main actor-isolated function in a synchronous nonisolated context
handler(task)
^
Thanks for your feedback! I've released 0.5.1 that solves this issue.
I don't use Xcode beta outside of summer, so if you encounter new issues, just post them out and I'll have a Quick Look on them!
Activity
Dean151 commentedon Nov 1, 2024
Thanks for your feedback! I've released 0.5.1 that solves this issue.
I don't use Xcode beta outside of summer, so if you encounter new issues, just post them out and I'll have a Quick Look on them!
Fix build with Xcode 16.2 beta