-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Description
Steps to Reproduce
- create a new flutter project by intelliJ and choose Swift as iOS language.
- add
firebase_messaging: anyinto pubspec.yaml - build on simulator with debug mode, you will see following error message.
Inference" build setting to "Default" for the "Runner" target.
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
PATH_FOR_FLUTTER_PROJECT/ios/Runner/GeneratedPluginRegistrant.m:6:9: fatal error: 'firebase_messaging/FirebaseMessagingPlugin.h' file not found
#import <firebase_messaging/FirebaseMessagingPlugin.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
If we choose the Objective-C based project, it works fine.
Logs
Inference" build setting to "Default" for the "Runner" target.
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
PATH_FOR_FLUTTER_PROJECT/ios/Runner/GeneratedPluginRegistrant.m:6:9: fatal error: 'firebase_messaging/FirebaseMessagingPlugin.h' file not found
#import <firebase_messaging/FirebaseMessagingPlugin.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Flutter Doctor
[✓] Flutter (Channel master, v0.2.1-pre.42, on Mac OS X 10.12.6 16G29, locale en-TW)
• Flutter version 0.2.1-pre.42 at /Users/jerry/Documents/project/flutter
• Framework revision 2890e18bcb (9 hours ago), 2018-03-08 16:02:21 -0800
• Engine revision 24cf8ebd86
• Dart version 2.0.0-dev.33.0
[✓] Android toolchain - develop for Android devices (Android SDK 26.0.3)
• Android SDK at /Users/jerry/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 26.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.2, Build version 9C40b
• ios-deploy 1.9.2
• CocoaPods version 1.4.0
[✓] Android Studio (version 3.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
[✓] IntelliJ IDEA Community Edition (version 2017.3.4)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin version 22.2.2
• Dart plugin version 173.4548.30
[✓] Connected devices (3 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.0.0 (API 26) (emulator)
• SM G930F • ce01171121b67a1a02 • android-arm64 • Android 7.0 (API 24)
• iPhone X • 94158934-6313-4593-921E-D4437A7BBF71 • ios • iOS 11.2 (simulator)
• No issues found!
this may be related to #15152.
Metadata
Metadata
Assignees
Labels
No labels