CRASH: Could not cast value of type 'Observation.ObservationRegistrar' to 'Perception._PerceptionRegistrar' #3113
Replies: 5 comments 6 replies
-
The issue occurs when I use iOS 17.5 simulator as a test run destination. |
Beta Was this translation helpful? Give feedback.
-
Hi @iharandreyev, I am not able to reproduce this. I have run it in a variety of simulators and it all seems to work fine. Can you please provide a project that demonstrates the problem? I am also going to convert this to a discussion for the time being because it's not clear there is an actual issue with the library. Let's continue the conversation over there. |
Beta Was this translation helpful? Give feedback.
-
@mbrandonw Here is a link to a repo where the issue is reproduced. I now think it may have to do something with the fact I'm using tuist to generate the project.
I don't get this kind of warning with my own framework, that uses similar naming convention (package name is I see that point free also uses tuist, so you guys may have some knowledge to share that I'm lacking. |
Beta Was this translation helpful? Give feedback.
-
@mbrandonw by the way, why is |
Beta Was this translation helpful? Give feedback.
-
Created an issue in the tuist project, hope someone helps |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
The error in question happens when I'm trying to test the following feature
with a test below
Checklist
main
branch of this package.Expected behavior
Test fails with an invalid behavior error
Actual behavior
Test crashes with
Could not cast value of type 'Observation.ObservationRegistrar' to 'Perception._PerceptionRegistrar'
error inPerception/PerceptionRegistrar.swift:52
Steps to reproduce
Run the code in the description
The Composable Architecture version information
1.10.4
Destination operating system
iOS 15.0
Xcode version information
15.4
Swift Compiler version information
Beta Was this translation helpful? Give feedback.
All reactions