I have added GoogleService-Info.plist
to iosRunner
using XCode.
I created this Podfile
platform :ios, '10.0'
target 'Runner' do
#use_frameworks!
pod 'Firebase/Core'
pod 'Firebase/Analytics'
end
pubspec.yaml has
firebase_core: ^1.0.2
firebase_analytics: ^7.1.1
Still get this error building on https://codemagic.io/
Xcode's output:
/Users/builder/clone/ios/Runner/GeneratedPluginRegistrant.m:10:9: fatal error: module 'firebase_analytics' not found
@import firebase_analytics;
Thanks!!
2
Answers
OK the answer from @Ashok was a good start. After you delete the old Podfile and other stuff, you run
pod install
and a newPodfile
is created. You need to addand
Also in
AppFrameworkInfo.plist
add/editDelete the
DerivedData
fromXcode
folder.Open
Runner.xcworkspace
inside the ios folder of your flutter project then selectFile -> Workspace Settings ->
Click the grey arrow besideDerivedData
path and delete theDerivedData
inside theXcode
folder.Delete
Podfile
inside ios folder of your flutter project.Delete
Podfile.lock
inside ios folder of your flutter project.Change the Deployment Target to
12.0
Clean your ios build folder
(Command+Option+Shift+K)
Or from themenu -> Product
, press Option on your keyboard and you’ll seeClean Build Folder
Run your application and it should work