I have been looking up on every website that had a similar/identical to this specific issue for Xcode of earlier version errors and I have tried everything and nothing has worked. I have cleaned and then tried to build the project but that hasn't worked.
The terminal shows that the firebase pod has been successfully installed but when try to import firebase the xcode says there is no such module Firebase
Then I tried to use adding the framework manually but when I try to build then Xcode says framework not found firebasecore .
I am stuck there ..what can I do next?
Comment all pods in pod file, then install only
pod 'Firebase/Analytics'
pod 'Firebase/Messaging'
For firebase notifications, because some time xcode do not install frameworks of pod files.
Open your pod file from project directory and add this
pod 'Firebase/Core'
then go to terminal and install pod again
pod install
after that make sure you build your project (⌘+B) before use.
Make sure you are opening .xcworkspace file from project directory.
Related
I am facing an error while making a flutter plugin on the iOS side while using pods. The pods are installed successfully then also I am able to import them in the file.
The pod in my case which I am trying to use is Freshchat iOS SDK
Steps I have followed to install the pod
Start a new Flutter plugin project.
In .podspec file add s.dependency 'FreshchatSDK'
Run pod install in example/ios folder.
I got an error
The 'Pods-Runner' target has transitive dependencies that include statically linked binaries: (/Users/nimish/FlutterProjects/freshchat_flutter/freshchat_flutter/example/ios/Pods/FreshchatSDK/FreshchatSDK/libFDFreshchatSDK.a)
I removed use_frameworks! from podfile following this comment .
I ran pod install again and the pods were successfully installed and Pods folder was created which had FreshchatSDK folder in it.
Now I need to have use_frameworks! in my project because other plugins are not compiling because of this.
I added s.static_framework = true in .podspec and use_frameworks! in podfile. Now pod install ran successfully,
After I added the import #import "FreshchatSDK.h" in my Plugin.h file I got the error
error: include of non-modular header inside framework module
I tried this answer but was not able to resolve it.
Please help me resolve this. I'll be respectful of your time.
There is another flutter plugin available here but it has many issues and one unhandled case is making my iOS app crash so I want to make it my own.
There may be problems in the PodFile due to unmatched Targets.
When this happens to me, I used these simple steps.
Delete Podfile
Open Terminal at the specific file
Pod init
Open Podfile and adds Dependencies
Pod install
Podfile
pod 'Firebase/Core'
pod 'FirebaseUI'
pod 'FirebaseUI/Auth'
In my ViewController.swift i have
import FirebaseUI
error i get is
No such module 'FirebaseUI'
Sounds to me like you might be opening the Xcode project instead of the Xcode workspace created by CocoaPods.
After you run pod install, CocoaPads will create an Xcode workspace (it has a .xcworkspace extension). You need to open this instead of the Xcode project (with the .xcodeproj) extension, otherwise Xcode will not be able to find the frameworks in your pod file.
Oh, and one more thing... Even if you open the workspace, you will still get this error until after your first compile. This is because the frameworks specified in the Podfile will not yet be built. After your first build all should be well!
Pod succesfully installed in my app but files are not imported
Please kindly any one help me this .
Example: I installed SCLAlertView library in my app but not able to import files with XCode 9.
If you are using public Pod and if some problem are coming then First update your Cocoapod in your System and follow below steps:
remove existing pod from your app from Build Phase tab (All Targets)
use pod init to create pod file
Add your pods for each target separately
pod install
pod update (if required)
I have faced pod problem while switching xcode 8.3.3 to XCode 9, and it helped me.
Here is my issue, I recently updated to macOS High Sierra and Xcode 9.1.
I also installed cocoa pods. Then, I have a project, an IOS app which uses Firebase realtime database and Firebase storage.
So, I follow the guide provided by Firebase step by step but I always end with this issue when I try to build my project :
GTMSessionFetcher.framework: No such file or directory
or
GoogleToolboxForMac.framework : No such file or directory
I already read several similar posts on stackOverflow and I try different solutions provided but nothing works...
I tried :
Clean the project
Open .xworkspace
Uninstall/Reinstall pods
Delete Derived Data
Close/Open workspace
Restart Mac
Here is my pod file :
# Uncomment the next line to define a global platform for your project
platform :ios, '11.1'
target 'Jack\'n\'Ferdi' do
use_frameworks!
pod 'Firebase/Core'
pod 'Firebase/Database'
pod 'Firebase/Storage'
end
Pods are installed without errors when I launch pod install into the command line. I also try pod update. I am kind of desperate...
Update
When I create a new project from scratch and add those pods, it works perfectly ! The initial project is not from scratch. I got it from Github.
Its frustrating seeing this error every time i use cocoa-pods. The only thing that works with cocoa-pods is 'Firebase SDK' but when i install any other framework such as JSQMessages or Eureka forms or any other framework i got an error 'No such a module" ... Its not the first time I work with these frameworks I did before and it was working correctly in fact I still got my previous projects installed with JSQMesgs, eurka..etc and its working fine till now. For the new projects it doesn't work/import in xcode anymore it is frustrating that I can't run it with this error ... not sure if its xcode or the cocopods .. I have tried instaling using terminal then uninstall and reinstall again with cocoapods application. I cleaned my build, change deployment target several times, and nothing worked so please if any one could share the same problems faced or advice me on how to avoid them or any alternatives to cocoapods.
deployment target 10.3 my xcode version 8.3.3 swift 3 macOS Sierra 10.12.5
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'FinalProject' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for FinalProject
pod 'Firebase/Core'
pod 'Firebase'
pod 'FirebaseAuth'
pod 'FirebaseDatabase'
pod 'FirebaseStorage'
pod 'ProgressHUD'
pod 'JSQMessagesViewController'
pod 'Eureka'
pod 'Former'
pod 'SwiftForms'
end
Please help.
Build the project.
The Xcode editor doesn't recognize modules coming from the Pods until after they've been built for the first time.
If that doesn't work for you, please share a screen shot of the issue, or even better, a reproducible example.
I had the same problem trying to work with SwiftyStoreKit.
I finally manage to solve my problem and hope that sharing the solution will help someone.
I tried everything was suggested until I realised that I was loading the pod in the wrong target, (in the pod file itself.)
After I repaired the pod file, run again pod install, and, voila, the xcode recognised the pod.