Flutter ios build error (Lexical or Preprocessor Issue (Xcode): Include of non-modular header inside framework module 'firebase_dynamic_links.FLTFirebaseDynamicLinksPlugin')공부방/Flutter2024. 10. 18. 13:40
Table of Contents
2024/10/18 기준 메모.
XCode 16 업데이트 후 iOS빌드를 하면 아래와 같이 오류가 발생해요.
Failed to build iOS app
Lexical or Preprocessor Issue (Xcode): Include of non-modular header inside framework module 'firebase_dynamic_links.FLTFirebaseDynamicLinksPlugin': '/Users/gangjeongu/Documents/FlutterProject/signal-app/ios/Pods/Headers/Public/Firebase/Firebase.h'
/Users/gangjeongu/.pub-cache/hosted/pub.dev/firebase_dynamic_links-6.0.5/ios/Classes/FLTFirebaseDynamicLinksPlugin.h:3:8
Lexical or Preprocessor Issue (Xcode): Include of non-modular header inside framework module 'firebase_messaging.FLTFirebaseMessagingPlugin': '/Users/gangjeongu/Documents/FlutterProject/signal-app/ios/Pods/Headers/Public/Firebase/Firebase.h'
/Users/gangjeongu/.pub-cache/hosted/pub.dev/firebase_messaging-15.1.0/ios/Classes/FLTFirebaseMessagingPlugin.h:11:8
Lexical or Preprocessor Issue (Xcode): Include of non-modular header inside framework module 'firebase_crashlytics.Crashlytics_Platform': '/Users/gangjeongu/Documents/FlutterProject/signal-app/ios/Pods/Headers/Public/Firebase/Firebase.h'
/Users/gangjeongu/.pub-cache/hosted/pub.dev/firebase_crashlytics-4.1.0/ios/Classes/Crashlytics_Platform.h:20:8
Lexical or Preprocessor Issue (Xcode): Include of non-modular header inside framework module 'firebase_crashlytics.ExceptionModel_Platform': '/Users/gangjeongu/Documents/FlutterProject/signal-app/ios/Pods/Headers/Public/Firebase/Firebase.h'
/Users/gangjeongu/.pub-cache/hosted/pub.dev/firebase_crashlytics-4.1.0/ios/Classes/ExceptionModel_Platform.h:20:8
Could not build the application for the simulator.
결론부터 말하면
Project Runner -> Build Settings -> Apple Clang - Language - Modules -> Allow Non-modular Includes In Framework Modules Yes 로 변경 해주면 잘 동작해요.
Apple Clang - Language - Modules 옵션에 대한 설명은 아래링크에 정리가 되어있으니 참고 하면 돼요.
https://zenn.dev/miharun/articles/c860a9e0648a45
반응형
'공부방 > Flutter' 카테고리의 다른 글
@soycrab :: 꿀맛코딩
행복한 코딩을 위하여!
포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!