Replies: 1 comment 1 reply
-
Hi @seanmrich, we applied a change to swift-perception to help out problems that devices on beta iOS 17.0.0 were having, but unfortunately it had a lot of knock-on effects that have caused more troubles than its worth. We are in the process of reverting that now. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After updating the package to 1.10.1, I've started to get runtime warnings about accessing Perceptible state. I'm using Xcode 15.3, swift 5.10, and iOS 17.4. There are no
@Perceptible
declarations in the project. Looking at the stack trace for the warning, they're all accesses of a store's state from aView
. The state structs are all marked with@ObservableState
inside a reducer declared with@Reducer
. I looked through the docs and the observation code in the library, but there doesn't seem to be any steps I should be taking to prevent using the Perception framework on modern architectures. Anyone have guidance about how to track this down?Example stack trace
``` #0 0x00000001002c9117 in runtimeWarn(_:category:) ()#1 0x00000001002d2153 in PerceptionRegistrar.perceptionCheck(file:line:) at /Users/sean/Library/Developer/Xcode/DerivedData/Palettable-ejpdesbaddkpqfeotchwstyvhxbi/SourcePackages/checkouts/swift-perception/Sources/Perception/PerceptionRegistrar.swift:216
#2 0x00000001002d1ec7 in PerceptionRegistrar.access<τ_0_0, τ_0_1>(_:keyPath:file:line:) at /Users/sean/Library/Developer/Xcode/DerivedData/Palettable-ejpdesbaddkpqfeotchwstyvhxbi/SourcePackages/checkouts/swift-perception/Sources/Perception/PerceptionRegistrar.swift:94
#3 0x00000001000ec1bf in ObservationStateRegistrar.access<τ_0_0, τ_0_1>(_:keyPath:) at /Users/sean/Library/Developer/Xcode/DerivedData/Palettable-ejpdesbaddkpqfeotchwstyvhxbi/SourcePackages/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Observation/ObservationStateRegistrar.swift:124
#4 0x0000000100bd024f in PaletteDetail.State.generateStyle.getter at /var/folders/0y/xzk4y_yn2975mfd8d1j2yhrc0000gn/T/swift-generated-sources/@_swiftmacro_13PaletteDetailAAV5StateV13generateStyle011ObservationC7TrackedfMa.swift:7
#5 0x0000000100ba2a23 in key path getter for PaletteDetail.State.generateStyle : PaletteDetail.State ()
#8 0x000000000011044f in swift_getAtKeyPath ()
#9 0x00000001000ce61b in Store<>.subscript.getter at /Users/sean/Library/Developer/Xcode/DerivedData/Palettable-ejpdesbaddkpqfeotchwstyvhxbi/SourcePackages/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Observation/Binding+Observation.swift:74
#10 0x0000000100bde7c3 in closure #2 in DetailContent.body.getter at /Users/sean/Documents/Projects/Palettable/Sources/PaletteDetail/PaletteDetail.swift:262
#11 0x00000000008e7e33 in View.safeAreaInset<τ_0_0>(edge:alignment:spacing:content:) ()
#12 0x0000000100bdd93f in DetailContent.body.getter at /Users/sean/Documents/Projects/Palettable/Sources/PaletteDetail/PaletteDetail.swift:261
#13 0x0000000100be0563 in protocol witness for View.body.getter in conformance DetailContent at /var/folders/0y/xzk4y_yn2975mfd8d1j2yhrc0000gn/T/swift-generated-sources/@_swiftmacro_13PaletteDetailAAV11DestinationO5State010ObservableD0fMm.swift:1
#14 0x00000000006ac593 in ___lldb_unnamed_symbol143310 ()
#57 0x00000000001c49b3 in ___lldb_unnamed_symbol111881 ()
Beta Was this translation helpful? Give feedback.
All reactions