cocoapods Framework file not found after installing github repo pod - ios

So i'm trying to user this pod for my project:
https://github.com/PhamBaTho/BTNavigationDropdownMenu
However, after I install the podfile and try to build my app, I get tons of errors for the target but two of them stood out, however I cannot find a proper solution for this error:
Im opening the .xcworkspace file so I'm sure that's not the issue.
I also tried setting "Buid Active Architecture Only" to 'NO'
I tried using pods deintegrate as well and then re running pod install but that also didn't fix the error.
pls help, I've gone through so many solutions regarding these errors but none have this weird problem of a file from the framework missing.

Related

Problem with Google Maps and Cocoapods and XCode

I am not a cocoapods expert so I'm a little stumped by this. One of my projects uses Google Maps and Google Places, and I did a "pod update", which led to "Module Not Found" errors for Google Maps. The build folder looked odd, so I created a new project, used the same podfile (except for target/project settings) and did a pod install.
In the image below, my big/real project is in the background and it is obvious that the GoogleMaps/Base group/folder is missing entirely, when compared to the foreground project.
Any suggestions on what could be going wrong or how to fix this? I'm currently reviewing how to uninstall/re-install pods.
TIA
It would be nice to know how/why things got wonky, but doing the following steps seems to have cleared out the issue by removing the pods from the project, then re-adding them:
pod deintegrate
pod install

'Missing Module Map' Error Xcode 11 Cocoapods error after deleting pod folder

I recently started my first Xcode project (I am really new to app development) and I accidentally deleted a pod folder and moved it to the trash when I meant to simply delete the reference. I removed the Pod files from the left side bar out of the "Pods" folder and I was left with a pretty nasty set of errors.
The project no longer builds, I am no longer able to run "pod install" using terminal without getting errors, and I am worried that my project is completely trashed now after an immense amount of work I have put into the application and the pod created workspace. If you have any ideas on what to do, please offer all the help you can as I am terrified that I have corrupted the whole project.
Wanted to send an update for all of those who have a similar issue: I have resolved the issue and everything seems to be working again.
What I did to resolve the errors
I reinstalled Cocoapods using Terminal with the command $ sudo gem install cocoapods
Once it reinstalled, I ran the command pod cache clean --all (This removed all pod cache files)
Next, I ran the command pod deintegrate to remove all pod files
Once all pod files were removed, I ran the command pod install
After completing these steps, all the issues were resolved
I hope this helps someone else who may have similar issues due to improperly removing pod framework and module files or those who's
This article will help detail all the steps for installing Cocoapods for those who may be confused by my explanation to fixing these specific errors:
https://guides.cocoapods.org/using/getting-started.html

Admob pods do not work after firebase integration

As you may be aware of it, Google now switch to Firebase instead of Google Analytics. So I tried to integrate it to my current working project. Admob is also integrated to my project with Pods.
I have followed Google's document and created a new pod and re-install with firebase. After it , now my project does not build.
Here is error
Use of unresolved identifiers "GADBannerView"
Try switching your imports to just:
#import GoogleMobileAds;
Everything should work as it was before, but using the module map is a great a way to pull in the headers rather than directly importing.
I have resolved it with:
-delete all pod related files from my project folder
-pod init
-re-add my required pods
-pod install
So I get this error as well with GADRequest errors even on Google's sample Banner project.
I fixed it with #Ian Barber's suggestion with #batgun's answer, of updating cocoapod version to 1.0.0 by running
$ [sudo] gem install cocoapods
https://guides.cocoapods.org/using/getting-started.html
then deleting all cocoapod items then install them again.
When I was in cocoapod version lower than 1.0.0, when I run pod install again, I still had errors, like "Use of unresolved identifier 'GADRequest'"
I retyped the whole thing and worked perfectly. When I was still not in cocoapod 1.0.0 version (i think it was 0.39 version), I can only find GADRequestError and not GADRequest.
When I retry extracting the original project now, do pod install and run the app, It doesn't throw any errors now.
I believe this has something to do with cocoapod version but it is not in google admob instruction to update it on.
I was trying to figure this out since the day of the release and losing hope for firebase because it was the sample basic banner project and it doesn't work!
VERIFIED!
I can verify it has something to do with cocoapod version.
I was trying to do the Google's Codelab 'FriendlyChatSwift' practice project since the release and throws a bunch of errors after running pod, not finding bunch of classes.
Steps:
$ [sudo] gem install cocoapods
I deleted the existing downloaded pods and related (ProjectName.xcworkspace, PodFile.lock, /Pods)
Run pod install
Build and Run of the project
It worked perfectly. I also tried running the project before doing this steps and It had bunch of errors.
I had this same issue and this helped me get setup the way I needed it but I don't think anyone touched on my exact issue. Thought I'd provide that just in case someone was looking.
After I cleared everything out and ran pod init I noticed that the generated pod file has use_frameworks! set in it. Once I added that everything was solved. Stupid mistake on my part since you need use_frameworks! for swift projects but leaving that out lead to a lot of random not found errors showing up and going away at random. Hope this helps someone.

iOS error : library not found for -lGSDK_Overload

After pod update i am seeing the following error
library not found for -lGSDK_Overload
while trying to build the project. I have been using the Google Analytics in my project. Is this related to Google Analytics ? See the header search path in my project
I have seen the similar questions in SO. But here i have no idea what is GSDK and where the actual issue lies.
Pod update details
Any help will be appreciated
Check for the following solutions
Have u launched your project through [project_name].xcworkspace
Check for libGSDK_Overload_external.a library file at following path file-path/[project_name]/Pods/GoogleSymbolUtilities/Libraries/ in your root folder of the project and add this file to projects target.
Rebuild your project.
If problem still exit remove pod file and reinstall it.
After a few hours of trying the answer provided by #vje1998 and couple of other stuff like deleting derived data, removing cocoapods all together. I finally fixed it. I hope this helps anybody that might have the same issue.
Under Build Settings>Linking>Other Linker Flags. I deleted the row with -lGSDK_Overload. It solved the problem google analytics still works and there are no linker errors. After running pod install Other Linker Flags stays the same so I'm assuming that it wasn't needed to begin with.
I had a similiar issue:
library not found for -lPods
I fixed it by Rohit Agre's answer option 3
pod deintegrate
rm -r [project_name].xcworkspace
pod install

Pod Update is removing "Target Support Files" but not updating my project settings

Admittedly, it's been awhile since I've run a pod update on my project. Today I was trying to do just that, and am running into issues.
After running a 'pod update', the project will not compile. Here is what I've noticed. The update itself appears to run fine, just like normal. I did notice that all the files in 'Pods/Target Support Files` have been removed.
When I attempt to build, I get an error like this one for most of my pods:
lang: error: no such file or directory: '/Users/logan/development/ProjectNameRemoved/src/Pods/Target Support Files/Pods-AJNotificationView/Pods-AJNotificationView-dummy.m'
clang: error: no input files
When I go to the Build Phases for the pods with this error, I can see that the dummy .m file is still in there, even though it doesn't exist:
Removing all of those doesn't seem to help, as then I start getting the following errors:
Digging down into the target's settings I can see the GCC prefix header is still set to use a nonexistent pch file:
I'm not really sure where to go from here. It seems like pod update is removing certain files, but my pbxproj is not being updated to correlate these changes. Do I need to figure out how to do this manually?
I'm currently running XCode7 and CocoaPods 0.38.2
I encountered this problem when I was refactoring a project. After removing a CocoaPod, I had remnants of it that were referenced. Cleaning caches and rebuilding did not resolve the issue.
I was able to resolve it using cocoapods-deintegrate referenced in the user's comment above.
Steps to resolve:
Close the project in Xcode so you don't have Xcode throwing warnings at you about differences between versions (assuming you're using version control, which is a good idea if you're messing with CocoaPods).
Install cocoapods-deintegrate by typing in Terminal:
gem install cocoapods-deintegrate
Type pod deintegrate from the directory of your project.
Open the project in Xcode, clean caches and rebuild. Your Podfile should still be there...leave it alone. We'll get to that in a moment.
Close the project.
Type pod install
Open the project, clean caches and rebuild.
These are the steps I followed to resolve this issue.
Update:
I also used this methodology to resolve a linker error which cropped up when I deleted a reference to a class file instead of the file itself. Upon doing that, I got this error:
error: linker command failed with exit code 1 (use -v to see
invocation)
You can try
pod deintegrate
pod install
*You should be located at Podfile directory
Can you see if the answer in this post can help?
Xcode install on OSX 10.9 - clang: error: no input files
I would try reconstructing my project.
I just got the same thing after re configuring my podfile to accommodate multiple targets. I was just going to use the suggested answer above, but before doing anything I committed my changes in git. That solved the problem. The git commit included lots of file deletions and additions done by cocoapods, so I guess some things were still hanging around.

Resources