You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[firebase_messaging] for iOS XCode Product/Archive failed with "Module 'firebase_messaging' not found" #2156
I started with default Flutter app, and successfully published on AppStore
When trying to add messaging- following pub.dev/packages/firebase_messaging instructions for iOS, flutter build ios --release
finished OK
====
But then in XCode Product/Archive failed with "Module 'firebase_messaging' not found"
I tried several times without success
Versions:
firebase_messaging 6.0.12
Flutter (Channel stable, v1.12.13+hotfix.8, on Mac OS X 10.15.3 19D76, locale en-GB)
It might be a beginner's mistake, but I thought I just followed simple instructions ok.
Several tricks used without success (modifying Podfile, deleting this or that...)
Hi @igorantolic
can you please provide your flutter doctor -v ,
your flutter run --release --verbose,
and your pubspec.yaml
or if possible a reproducible minimal code sample.
Thank you
Here are required details.
minimal code sample:
Take default Flutter sample project (famous counter), then add firebase_messaging: ^6.0.12 in pubspec yaml,
and add in MyApp FirebaseMessaging
class MyApp extends StatelessWidget {
final FirebaseMessaging _firebaseMessaging = FirebaseMessaging();
That is all what is required to reproduce the problem on my Mac
Activity
iapicca commentedon Mar 11, 2020
Hi @igorantolic
can you please provide your
flutter doctor -v,your
flutter run --release --verbose,and your
pubspec.yamlor if possible a reproducible minimal code sample.
Thank you
igorantolic commentedon Mar 11, 2020
Here are required details.
minimal code sample:
Take default Flutter sample project (famous counter), then add firebase_messaging: ^6.0.12 in pubspec yaml,
and add in MyApp FirebaseMessaging
That is all what is required to reproduce the problem on my Mac
pubspec
igorantolic commentedon Mar 12, 2020
after connecting real iOS device with a cable
app successfully run on a device - see attached flutter-run-release.txt
flutter-run-release.txt
.
BUT, again - after that in XCode Product / Archive again reports the same exception in line marked with <====HERE
flutter-run-release.txt
WebBurnout commentedon Apr 10, 2020
Make sure you are opening
Runner.xcworkspaceand notRunner.xcodeprojflutter/flutter#47394 (comment)
igorantolic commentedon Apr 11, 2020
The reason is that I opened XCode on wrong way.
Opening Runner.xcworkspace and not Runner.xcodeproj solves the problem!
Although closed, I found this confusing as a beginner in XCode.