Error (Xcode): ../../.pub-cache/hosted/pub.dev/win32-4.1.4/lib/src/guid.dart:31:9: Error: Type ‘UnmodifiableUint8ListView’ not found.
could not build the application for the simulator.
Error launching application on iPhone 15 Pro.
This is the error on my Macbook.
How can I solve these issues?
2
Answers
I imagine you’ve recently upgraded your local Flutter or you’ve cloned a Flutter project with old dependencies. Either way, what you’ll want to do is upgrade all your dependencies by running
flutter pub upgrade
.It should remove the win32 package as it’s no longer being depended on in the latest Flutter version, so you should see something like this in the log:
Adding this package win32: ^5.0.0.