解决'FlutterPluginRegistrant/GeneratedPluginRegistrant.h' 文件找不到的错误
This error occurs when the file 'GeneratedPluginRegistrant.h' is not found in the FlutterPluginRegistrant framework.
To fix this error, follow these steps:
-
Open your project in Xcode.
-
In the project navigator, right-click on your project and select 'New Group'.
-
Name the group 'Frameworks'.
-
Drag and drop the FlutterPluginRegistrant.framework from the Pods project to the newly created 'Frameworks' group in your main project.
-
Click on your project in the project navigator to open the project editor.
-
Select your target and go to the 'Build Phases' tab.
-
Expand the 'Link Binary With Libraries' section.
-
Click the '+' button and select 'Add Other...'.
-
Navigate to your project's 'Frameworks' group and select the FlutterPluginRegistrant.framework file you just added.
-
Clean and rebuild your project.
This should resolve the error and allow your project to build successfully.
原文地址: https://www.cveoy.top/t/topic/otsf 著作权归作者所有。请勿转载和采集!