Module 'firebase_analytics' not found - ios

I have a problem,
I tried to publish a new version of my app on the apple store and it gave this problem:
Module 'firebase_analytics' not found
Has anyone ever experienced this?
Module 'firebase_analytics' not found

First of all, make sure you add analytics to your podfile.
target 'Runner' do
pod 'Firebase/Analytics'
end
The other thing is to go to the ios directory and execute the command.
pod clean
pod install
Finally you could run the following commands in the root directory.
flutter clean
flutter pub get

Related

Build fails on adding pod 'Firebase/AppCheck' to the Podfile

I'm using firebase_app_check package. All good. The following command works as expected.
flutter build ios
But as soon as I add the following in the Podfile(ios)
pod 'Firebase/AppCheck'
iOS build fails with this error:
Definition of 'GULAppEnvironmentUtil' must be imported from module 'GoogleUtilities.GULAppEnvironmentUtil' before it is required
What am I missing?
Try to run following command it may help you
run flutter clean
run flutter pub get
go to your project iOS directory and run pod install then run pod update
if this issue is because of outdated pod files

No such module 'Flutter' [duplicate]

This question already has answers here:
Getting error "No such module" using Xcode, but the framework is there
(82 answers)
Closed 26 days ago.
I have published my app in TestFlight but it is crashing while startup. When I view crash logs, it say “No such module 'Flutter’”. I do know how to fix.
Thanks in Advance

Open IOS Folder in terminal ,
write
pod install
then
pod update
then it will work
This apparently a bug in XCode 13.1.
It is claimed by Flutter team to be a bug with the visual component of XCode... as evidenced by the fact that the project will still build and run from XCode.
There are many reported ways to get rid of it temporarily, such as doing Product\build , Product\Clean Build Folder, or running the project on IOS from within Android Studio...
But these are only temporary and the problem will reappear.
https://github.com/flutter/flutter/issues/92337
Just did like #Tasnuva said, and it worked in my case:
Remove podfile.lock file and Pods folder
Run pod install then pod update
Reopen Runner.xcworkspace
No such module Flutter still exist, just ignore and run as usual
No such module flutter suddenly disappear after build succeed
Try this steps. Checked on XCode 14.1
Make sure that you open xcworkspace instead of xcodeproj. xcworkspace - contains information about pods.
flutter clean
flutter pub get
pod install
The error all the same will be display
Try to build. Build should be succeeded and the error disappear.
i just removed Podfile.lock and Pods folder then run pod install
You shouldn't need to touch pod directly. Instead, you can remove ios/Pods and then:
flutter clean
flutter pub get
flutter build ios
Which has come up in a related issue before, e.g. https://github.com/flutter/flutter/issues/73845#issuecomment-879428744
In my case it was me not putting
install_all_flutter_pods(flutter_application_path)
in the Podfile
for target 'my_app'
I added it for the testing target but not the project...
than pod install
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'my_app' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for counter_app
flutter_application_path = '../flutter_project'
load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb')
install_all_flutter_pods(flutter_application_path)
target 'my_appTests' do
inherit! :search_paths
# Pods for testing
install_all_flutter_pods(flutter_application_path)
end
target 'my_appUITests' do
# Pods for testing
install_all_flutter_pods(flutter_application_path)
end
end
This problem occurs when you have changed your podfile and the pod install command does not work
The piece of code mentioned below is not executing inside your podfile.
flutter_install_all_ios_pods
Fix this out then run
flutter pub get
cd ios && pod install

GoogleUtilities/GULSceneDelegateSwizzler.h file not found

Unable to build Flutter app on iOS/Xcode
Pubspec file with used dependencies
Already tried all the pod install/upgrade, flutter clean, pub install etc solutions.
Error message looks like this:
ios/Pods/FirebaseAuth/Firebase/Auth/Source/Auth/FIRAuth.m:32:9: fatal error:
'GoogleUtilities/GULSceneDelegateSwizzler.h' file not found
#import <GoogleUtilities/GULSceneDelegateSwizzler.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ios/Pods/FirebaseAuth/Firebase/Auth/Source/Auth/FIRAuth.m:32:9: note: did not find header
'GULSceneDelegateSwizzler.h' in framework 'GoogleUtilities' (loaded from 'build/ios/Debug-iphonesimulator/GoogleUtilities')
1 error generated.
Would be very grateful for any input on this issue.
Update pods from Terminal:
pod update
That should resolve your problem.
ps. backup your app before update
Move into iOS directory (in your flutter project) and update pod
cd ios
pod update
cd..
flutter clean

AppCenter build fails with no such module

My automatic iOS build on AppCenter fails with the following error (snippet):
ViewController.swift:10:8: error: no such module 'MBCircularProgressBar'
import MBCircularProgressBar
^
But I don't know what the problem might be. I'm using CocoaPods to import that framework.
My Podfile looks like this (removed all other pods):
target 'MyApp' do
use_frameworks!
pod 'MBCircularProgressBar'
end
And I have a Post Clone script appcenter-post-clone.sh which is recognized in AppCenter that contains:
#!/usr/bin/env bash
pod repo update
pod install
EDIT: After moving the offending file down in the list of files to compile, I get the same error for another CocoaPod. So it seems to me that no CocoaPods are being found
What is going wrong here?
Can you check you are building your projects workspace? You'll need to build the workspace in orde to get Cocoapods to work, not the Xcode project.

No such module 'AWSCore'

Im new to swift and going through a Tutorial on integrating AWS tools and I keep getting this error, " No such module 'AWSCore' "
However, on the left, you can see these modules are downloaded and there in the pod File.
My question is how to get rid of these errors and correctly import those features. Any help on how to fix this problem will be much appreciated!
re-create a new 'Podfile' on the Root folder of your Xcode project by running the command:
$ pod init
Now make sure your 'Podfile' contains the AWSCore module like shown below.
platform :ios, '9.0'
target :'MyNotes' do
use_frameworks!
# Analytics dependency
pod 'AWSPinpoint', '~> 2.6.10'
pod 'AWSCore', '~> 2.6.10'
# other pods
end
Kindly note for every module you import in your project you will need to include it in your 'Podfile' and then update the 'Podfile' by running the command :
$ pod install
or
$ pod install --repo-update
Close the Xcode project and then open the *.xcworkspace file to relaunch Xcode
I was able to get past this issue by adding $(BUILD_PRODUCT_DIR) ------ recursive. I added it to me release settings as well.
Do not open PROJ.xcodeproj but rather open PROJ.xcworkspace in some case to build pods.
In your case, other answer should lead to right way.

Resources