'Parse/PFFile.h' file not found after Pod update - ios

I have big issues, today i want to update POD's in my project, after update i immediately get lot of error but i fix it except one.
I use ParseUI pod at my project, after pod update i got such error:
'Parse/PFFile.h' file not found
My podFile:
pod 'Parse'
pod 'ParseUI'
After searching at network, i found nothing, how i can fix this error?
I work with Swift 4.2
Error image :

Hello fellow Parse user!
pod 'ParseUI' is deprecated and you should use pod 'Parse/UI' instead.
Change that, delete your pods folder and podfile.lock. Run pod install --repo-update from your app directory and hopefully you will have resolved the issue.
You do not need to import ParseUI within your app any longer. Importing "Parse" now imports all things related to Parse, such as ParseUI, Parse/TwitterUtils and Parse/FacebookUtils. Only import "Parse" and you have access to everything.

Related

No such module 'GoogleSignIn' Xcode 9.3 and Swift 4.1

I am trying to login with Firebase Google Login. After installing the pods when i import header file
'GoogleSignIn' it gives me an error.
No such module 'GoogleSignIn'
Here is my pod file
I also tried different troubleshoot methods like
update pods
Restarted Xcode
But none of methods did work for me. How i fix this issue
Maybe you can fix that by cleaning the build with cmd+shift+k and removing the derived data(xcode->preferences->location->derived_data_folder and remove the derived data folder).
If the above process didn't work then reinstall the pods.
pod deintegrate
pod cache clean --all
pod install
I think #muhammad-qais answer will work. If not try removing the text "pod 'GoogleSignIn', '~> 3.0' " in podfile.
Then pod install. It removes the existing google Sign in pod.
And then install google sign in Pod from cocoapods.org as usual.
Hope it works.

Problem after first cocoapod installation

So this is the problem I'm having. Initially after the first one or two cocoapods install/updates everything was working fine. Then on subsequent updates I started getting duplicate dependency files which makes the build fail and screws with live preview in swiftui. There may be other issues but this seems to be the main one from my point of view(though let me know if you think there are other issues). I have included a screenshot of the pertinent errors
These are the pods I'm currently using:
pod 'Firebase/Analytics'
pod 'Firebase/Auth'
pod 'Firebase/Firestore'
This is very frustrating as I cannot continue to work on the project until this is resolves and it continues to happen. I tried doing pod deintegrate, deleting podfiles, podfile.lock and the xcworkspace and then re-installing with pod init and pod install but that didn't fix anything.
Would try these steps first.
clean the project
delete derived data
pod deintegrate
pod install
"Then on subsequent updates I started getting duplicate dependency files which makes the build fail"
If you're seeing issues when updating a pod, then you may want to set the pod to a specified version in your Podfile.

No such module 'Firebase' error in Xcode 11.0 beta 5

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.

Xcode Error: 'FirebaseCore/FirebaseCore.h' file not found

After running pod update on my project, I am now getting the errors:
'FirebaseCore/FirebaseCore.h' file not found
and (I imagine associated):
Could not build Objective-C module 'Firebase'
I have tried deintegrating and installing pods multiple times, creating new workspaces (and making sure I am in workspace rather than project). I am not all that experienced in programming (yet!), but my podfile contains use_frameworks! in case that's of any help?
I have also noticed that when I build my app I get a warning about not being able to find the pod.[AppName].xcconfig file, although the file isn't highlighted in red and appears to still be where it says?
i have the same issue, i simply reinstall the pod file through command prompt like
pod install
so then my project start working.
Hi, i was facing this issue . But i have this fixed error now. Go to Pod file and add "pod 'Firebase/Core', :modular_header => true and "pod 'Firebase/Messaging', :modular_header => true

No Such Module 'FBSDKLoginKit' Xcode 9

Using CocoaPods, I have imported the below frameworks:
platform :ios, '11.0'
use frameworks!
target '{APP NAME}' do
pod 'Firebase'
pod 'Firebase/Auth'
pod 'Firebase/Core'
pod 'Firebase/Database'
pod 'Firebase/AdMob'
pod 'Firebase/Messaging'
pod 'Batch'
pod 'FBSDKLoginKit'
pod 'FBSDKCoreKit'
pod 'Google-Mobile-Ads-SDK'
end
When I build my project, it runs happily on my iPhone with no errors.
When I try to create an Archive of the project, it shows one of the below and refuses to build the project to Archive.
No such module 'FBSDKCoreKit'
No such module 'FBSDKLoginKit'
I have no idea what I'm doing wrong as nothing has changed. I haven't archived in a few months and it's suddenly stopped working.
I've removed and re-installed the Pods but nothing seems to fix the issue.
Even if I remove one of the import statements the other FBSKD seems to fail.
Try this!
pod 'FBSDKCoreKit', '~> 4.10.0'
pod 'FBSDKLoginKit', '~> 4.10.0'
pod 'FBSDKShareKit', '~> 4.10.0'
Please add
pod 'FBSDKCoreKit'
also.
Try to update your pod file like this
pod 'FacebookCore'
pod 'FacebookLogin'
Not sure if you already found an answer but this worked for me, I had the same problem as you, kind of weird but it worked.
I uninstalled the pods 'FBSDKCoreKit', 'FBSDKShareKit', and 'FBSDKLoginKit'
I then installed pods 'FacebookCore' and 'FacebookLogin'
this also installs the previous pods I uninstalled.
When I typed import FBSDKCoreKit in my AppDelegate header I still received an error.
So just for shits and gigs I removed import FBSDKCoreKit and replaced it with import FacebookLogin and there were no errors
I then typed in the necessary code in my AppDelegate file stated in the instructions of Step 5: Connect to AppDelegate (https://developers.facebook.com/docs/ios/getting-started)
I ran the app, the build failed but I went into my AppDelegate file and again, for shits and gigs, typed in import FBSDKCoreKit in the header (without removing import FacebookCore) and there were no errors. Then I removed import FacebookCore from the header and still no errors.
still messing with the syntax to get "Build Successful" but it seems to be heading in the right direction.
I'm new to xCode and Swift, so honestly I'm not exactly sure what I did that was the main reason for the fix but this worked for me. Let me know if this helped!
This error appeared for me when I added a new build-target to my project.
Xcode added this change which caused all the trouble.
- E31B6D4E3385CBFF63FDF655 /* BuildFile in Frameworks */,
+ E31B6D4E3385CBFF63FDF655 /* (null) in Frameworks */,
When I removed the change from my commit history, all worked fine.
I did so with an interactive rebase.
Try this!!
Goto General -> Linked Frameworks and Libraries -> remove Framework.
The actual issue is there is a bug with Xcode wherein it's not recognizing the pods already installed and added to the project. That's why the module not found error during compile time. I am getting the same build error with many other pods afterwards also. It's happening only at times that too unexpectedly. The only way is to build the project multiple times until it recognizes the module and the error is gone. This sounds crazy but no other way so far. Also, Use cmd+B to build your code.

Resources