If you are developing a Flutter app and encounter the “Include non-modular header in Framework module” error in Xcode, this quick guide will help you fix it and get back to building.
Steps to Resolve:
- Open Xcode: Open your Flutter project’s iOS module in Xcode.
- Navigate to Build Settings:
- In Xcode’s project navigator, select your project file and choose the target with the error.
- Adjust Build Settings:
- In Build Settings, search for “Allow Non-modular Includes in Framework Modules” and set it to
YES
.
- In Build Settings, search for “Allow Non-modular Includes in Framework Modules” and set it to
- Clean and Build:
- Select Product > Clean Build Folder, then Product > Build to rebuild your project.
Following these steps should help resolve the error, allowing Xcode to build the project without issue. If problems persist, a quick restart of Xcode and another build attempt may help. Happy coding!
Developer: Zain Shaikh
Designation: Flutter Developer
LinkedIn: Zain Shaikh
GitHub: zainshaikh017
Find for More Code Error related news Click here.
Subscribe our WhatsApp Channel to received Personalized updates.