module 'firebase_auth not found" - xcode

Hello guys,
I have been trying to run my flutter code in IOS 11 simulator but after integrating firebase into my project i'm getting this error while running for IOS simulator. Is there anything i can do to solve it?

I got the same problem,
First erase your Pods/ and Podfile, then run
$ flutter clean
then
$ flutter run
finally open in xcode Runner.xcworkspace

I met the same problem. These are what I performed to resolve.
At your project folder:
flutter clean
cd ios
rm -rf Podfile.lock
rm -rf Pods/*
flutter build ios
cd ..
open ios/Runner.xcworkspace
if flutter build ios takes a long time u can improve building time by edit Podfile (refer):
...
target 'Runner' do
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '6.26.0'
...
I hope this is useful.

Related

XCode does not create pod dependencies for React Native Project

Project config:
Xcode # 13.4.1 (13F100)
cocoapods # 1.11.3
React Native # 0.64.0
iOS target # 11.0
I can't build this mobile project and XCode says there's file missing.
fatal error: module map file '/Users/myself/Library/Developer/Xcode/DerivedData/myproject/Products/Debug-iphonesimulator/NextLevelSessionExporter/NextLevelSessionExporter.modulemap' not found
When I run pod install, says its has run without errors, but checking into Xcode/DerivedData/myproject/Build/Products/Debug-iphonesimulator and it does not show all the dependencies folder as it should.
I tried
Removing ~/.cocoapods folder
Deleting ios/Pods/ folder and Podfile.lock
Deleting DerivedData folder completely
No progress so far.
Any guidance will be welcome.
Follow the below steps:
Delete cocoapods folder, ios/Pods/ folder and Podfile.lock file
Deleting DerivedData folder
delete node_modules folder
Run command pod install or pod repo update
Hope it will help you!

fatal error: 'boost/preprocessor/control/expr_iif.hpp' file not found

I have a React Native project. I recently updated to macOS Big Sur 11.3 and XCode Version 12.5 (12E262).
When I build the project in XCode I get the following error:
../ios/Pods/Headers/Public/Flipper-Folly/folly/functional/Invoke.h:22:10: fatal error: 'boost/preprocessor/control/expr_iif.hpp' file not found
#include <boost/preprocessor/control/expr_iif.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
When I browse to Pods folder, expr_iif.hpp file exists.
I tried removing Pods folder, Podfile.lock, .xcworkspace. Deleted npm cache. Then ran pod install.
But no luck.
This build-time error is thrown by Flipper-RSocket and Flipper-Folly.
I can provide further details if requested.
I just had this issue and it happens when you have incompatible versions of Flipper pods.
This worked for me:
Update your Podfile to install Flipper like this:
use_flipper!({ 'Flipper' => '0.93.0', 'Flipper-Folly' => '2.6.7', 'Flipper-DoubleConversion' => '3.1.7' })
Update deployment target on both Podfile and Xcode project o 12.1 or newer:
platform :ios, '12.1'
Remove Podfile.lock
pod install --repo-update
Close and re-open the Xcode project
You may also try fixing permissions if the above is not enough for you:
chmod -R 755 ios/Pods/boost-for-react-native
The error went away after this.
It completely removes Flipper, but here's a workaround I used
disabled Flipper in PodFile (as explained in an answer here: React Native Project is not running on iOS Simulator)
deleted Pods directory
re-ran npx pod-install
started the application (npx react-native run-ios)
Instead of giving him the precise version I used the next line:
use_flipper!
Put it in Podfile and run: pod install --repo-update.
It worked for me!

ld: library not found for -lDoubleConversion React Native 0.62.2 when "Archive" in Xcode but I can build and run my app with Xcode

When I do archive build, I got the following error. This has been discussed on stackOverflow before. But most of them are the case that the error happens at debug/build level. I don't have problems with build/run. Also, I tried everything I possibly can but none of them helps.
Here is how I get this error:
1) rm -rf node_modules
npm install
cd ios
pod install
2) open MyAppName.xcworkspace with Xcode.
3) Product -> Archive.
some more info about my setup:
in my Podfile, DoubleConversion lib is there.
pod 'DoubleConversion', :podspec => "#{rnPrefix}/third-party-podspecs/DoubleConversion.podspec"
from Xcode, this lib DoubleConversion is also linked
Does anyone can give me some suggestion?

Xcode, Pods ProjectName.debug.xcconfig unable to open file. Wrong directory

When I build project, I see build error: ProjectName.debug.xcconfig unable to open file. I couldn't understand my problem for a long time, but today I take attention, what directory is wrong: full error: projectName/Pods/Pods...ProjectName.debug.xcconfig unable to open file Where Pods part duplicated, so correct directory must be as projectName/Pods...ProjectName.debug.xcconfig How to fix it?
Xcode 10.1
After trying other suggestions found here #8091 (comment) and at Incorrect path for Pods.debug.xcconfig in Xcode?
I found that Kaspik's suggestion worked:
pod deintegrate
pod install
edit the .xcodeproj/project.pbxproj file and change the PBXGroup "path = Pods" to "name = Pods"
source https://github.com/CocoaPods/CocoaPods/issues/8091
updated from: pod reintegrate to: pod deintegrate
I have encored with this solution...Here is how I solved
Close Xcode,
run on terminal "pod install"
open xcode,
clean build folder and run again
Remove the duplicates from the Pods folder ƒrom xcode project here:
Deleting extra files in target->Linked Frameworks and Libraries solved my problem
Do the following
Delete .xcworkspace file
Go to project build phases - delete Check Pods Manifest.lock and Embed Pods Framework section
Remove Pods folder from the left project navigator
Remove Pods folder from the project directory
Delete everything related to pods except Podfile
Do Pod install
This should resolve the problem.
Run pod repo update first and then you should be able to install pods with yarn install:pods if you're using yarn.
I was able to manage by reopening Xcode, in my case i had already run pod install with the ide open (Xcode 12.0).
Clean build folder. Then use the code following:
pod reintegrate
pod install
I ran into this issue in CI. Simply running xcodebuild clean fixed it for me.
In Xcode that'd be equivalent to cmd + shift + k.
I was getting the same issue, I checked my npm modules was corrupted so I deleted npm modules
And npm install ==> cd iOS ==> pod install.
And the code works smoothly!
Happy coding!
Better solution for further this kind of issues
$ cd ~/.cocoapods/repos
$ git clone https://github.com/CocoaPods/Specs.git master

CocoaPods integration problems: dyld: Library not loaded: #rpath/Bolts.framework/Bolts

I know that there are almost 1000 questions like this one, but I've tried all the answers on the others and no one could helps me.
I'm creating an app in Swift 2.0 that works with cocoapods. In my podfile I have:
platform :ios, '8.0'
use_frameworks!
target 'TargetName' do
pod 'SinchRTC'
pod 'SinchVerification-Swift'
pod 'Parse'
end
And everything was working fine, at one point I tried to run again the app and I got this error:
dyld: Library not loaded: #rpath/Bolts.framework/Bolts
Referenced from: ...
Reason: no suitable image found.
Did find: ... (lldb)
Then I tried everything like deleting and adding again pods, create a new project, deintegrate and reinstall cocoapods...
Everytime I get the same error and if I remote Bolts.framework I get the error on another framework.
What should I do?
P.S. The app isn't running also in the simulator, not only on device.
I've solved it! I tried everything but then I remember that the problem should also be the certificate signing my project and I run this lines in the terminal:
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache"
rm -rf ~/Library/Developer/Xcode/DerivedData
rm -rf ~/Library/Caches/com.apple.dt.Xcode
This worked and the app is running right now on my device!

Resources