I'm developing a Flutter plugin that was running until a minute ago.
I haven't changed my Flutter project or the generated Xcode workspace at all. But all of a sudden the iOS Runner build breaks:
/path/to/myplugin/example/ios/Runner/GeneratedPluginRegistrant.m:10:9:
fatal error: module 'nativeguest' not found
@import myplugin;
~~~~~~~^~~~~~~~~~~
1 error generated.
I haven't renamed or moved anything so I have no clue where this came from. I double checked there are no changes through my Git history.
I don't quite remember what happened except a few flutter clean
and flutter run -d <udid>
ops. I probably did these in both the plugin example folder and the plugin root folder.
My Flutter global setup is perfectly fine
$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel dev, 1.19.0-1.0.pre, on Mac OS X 10.15.4 19E287, locale en-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
[✓] Android Studio (version 3.6)
[✓] VS Code (version 1.45.1)
[✓] Connected device (2 available)
• No issues found!