my Podfile is
pod 'Amplify'
pod 'AmplifyPlugins/AWSCognitoAuthPlugin'
pod 'AmplifyPlugins/AWSAPIPlugin'
pod 'AmplifyPlugins/AWSCognitoAuthPlugin'
pod 'AmplifyPlugins/AWSS3StoragePlugin'
pod 'AmplifyPlugins/AWSDataStorePlugin'
I have added the dependancy in the build phases before importing here,
I have clean build the project.
I have deleted the pod and reinstalled. I am opening .workspace file only.I am able to
import Amplify
and import AWSPluginsCore
without any issue. but I get No such module 'AWSCognitoAuthPlugin'
when I try to import AWSCognitoAuthPlugin
If I am missing something, please point it out.
Related
Yesterday I cleared the Derived data folder enitrely and started facing this error.
I tried :
Clearing Derived Data and Clean and rebuild
Deleting all pods using pod deintegrate and reinstall using pod install
Deleting the Podfile.lock file
Run pod update to update the pods
My podfile contains these Firebase pods:
pod 'Firebase/Core'
pod 'Firebase/Messaging'
pod 'Firebase/Firestore'
pod 'Firebase/Database'
But the error still remains. Anyone faced this error lately.
Simply explicitly import 'FirebaseMessaging' in your project, I had to call it explicitly to make it work.
import FirebaseMessaging
Open your project, in Project Navigator click on Pods.xcodeproj and in a targets list check if your pod is installed. If it is not then pods are not installed properly or Firebase might removed it because it was deprecated.
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.
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!
I'm trying to import JSQMessagesViewController:
import JSQMessagesViewController
And it gives me the error 'no such module'. I've seen many people with this problem on the web but I can't find the solution. Here's my podfile:
# Uncomment this line to define a global platform for your project
platform :ios, ‘9.2’
# Uncomment this line if you're using Swift
use_frameworks!
target ‘IXODES’ do
pod 'JSQMessagesViewController'
pod 'Firebase'
pod 'Firebase/Core'
pod 'Firebase/Database'
pod 'Firebase/Auth'
pod 'Firebase/Messaging'
end
I've tried cleaning the build, also pod deintegrate and then pod install and pod update. Nothing works and I can see the library in my project like the rest. Any help?
perhaps you tried to import the file and the file is missing by any chance,
a few things you can do.
you can clean the project from cocoapods and re-install cocoapod(this helped me onetime i got the same problem the file were missing) you can do that by
run this code on the terminal
[sudo] gem install cocoapods-deintegrate
once done
cd your file
and then run thispod deintegrate
then you're all set! and re install it
---- another solution ---
try these
1-Adding all of the .frameworks to the Projects Build Phases -> Link Binary With Libraries
2-Selecting each framework and building it. You can do this by selecting your project name next to the run arrow.
3-Cleaning the project and restarting my computer.
hope it helps
I have ran into a peculiar issue with Xcode 9.2 (9C40b) and Cocoapods 1.3.1. When I try to import the GoogleSignIn framework, Xcode complains:
But there are no other errors throughout the file regarding classes in GoogleSignIn, and when I CMD+Click on a class I can view its header (note the path at the top, which means that the framework definitely exists in my workspace):
As a result, I can still reference types from classes involved in GoogleSignIn wherever I import it, but I am unable to build because Xcode thinks that the framework is missing.
Here's my Podfile. I have ran pod update and I am opening the MyApp.xcworkspace file inside of Xcode.
platform :ios, '10.3'
target 'MyApp' do
use_frameworks!
# Pods for MyApp
pod 'Firebase/Core'
pod 'Firebase/Database'
pod 'Firebase/Auth'
pod 'ActionsList', '~> 0.9.1'
pod 'GoogleAPIClientForREST/Classroom'
pod 'Google/SignIn', '~> 3.0.3'
end
GoogleSignIn is the only framework where this issue arises -- I can use everything else flawlessly, and when I comment out all the code involved with GoogleSignIn (the import statement, all references, etc.) the app builds just fine. I should note that I have been able to successfully import GoogleSignIn in another project with Cocoapods
How can I fix this issue and convince Xcode that the framework exists?
first of all make that pod: pod 'GoogleSignIn'
In your app's project-Bridging-Header.h file, import the Google Sign-In SDK headers: #import <Google/SignIn.h>
GoogleSignInDOcs for more information
The problem could be resolved executing the cd project/directory; pod install in the terminal to analyze, download and install your project dependencies.
My pod file contains:
pod 'Firebase'
pod 'Firebase/Auth'
pod 'Firebase/Core'
pod 'GoogleSignIn'
And it's working.
Good Luck!