Problem with Google Maps and Cocoapods and XCode - ios

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

Related

cocoapods Framework file not found after installing github repo pod

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.

Swift - Modules not loading or directories can't be found on new install

forgive my ignorance I am not too familiar with SWIFT but my developers sent me the package for one of our iOS apps. I wanted to make a small adjustment but everytime it's run it cannot find all the modules associated with Cocopods
When I originally received the files it came with a podfile and podfile.lock
I installed cocopods then in the directory I tried
pod install
When I try to compile it none of the modules can be found.
I tried removing the podfile and podfile.lock even starting from scratch doing a pod init and replacing the text.
I tried a
pod update and still no luck either. Any ideas what I need to be doing ?
So the answer of open xcworkspace instead of xcodeproj did the trick. Thanks

Framework not found GoogleMapsCore

I am using the Google Maps framework in my iOS app. But I cant seem to understand what is causing the error: Framework not found GoogleMapsCore.
Yes I know that it can't find that module. But I can see it in the Pods folder. See the image below.
I even added the link to that folder in the Framework Search Path.. see image below.
Do you have any idea?
Generally, this is an indication that the Pods projects is not properly built. The best way to solve this is to remove the GoogleMaps pods from your Podfile, run pod install. This will remove the GoogleMaps Framework. Then edit the Podfile again, add the GoogleMaps framework and run pod install again. This will reinstall the pods, and regenerate the Pods Project linking all your frameworks properly to your app. It almost always works for this error - Framework not found.
A good place to start would be those red files. See all those red filenames? They are missing from the project. You need to build them.
Look up cocoapods and follow the instructions to create your workspace file. [it's just one simple install command]
Always from now on, when working on this project, instead of
ProjectName.xcodeproj (blue avatar) you should double-click on the ProjectName.xcworkspace (white avatar) file. That will open the project in Xcode. And the filenames should no longer be red.
I had the same problem. For me I needed to remove armv7s from the valid Architectures. I guess GoogleMaps (2.3.1), which is what I am using, does not build against that architecture.
Delete your PODS folder, and run pod install again.

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.

Trying to remove a pod with CocoaPods 0.36 Beta2

I am using CocoaPods with swift, therefor I need a pre release. I'm not sure whether I found a bug or maybe it's just a wrong thing I do.
If I want to remove a pod, I simly remove it from the podfile and call pod install again.
This works, but afterwards, the remaining frameworks are not recognized as frameworks anymore.
Is this the right way to remove pods and am I missing something? E.g. cleaning up my workspace or so?
Thanks
#Christian, removing from Podfile and running pod install at the command line should work. It sounds like a bug.
Can you post one or more errors about the frameworks so we have more to work with? Also, you should consider reporting it.

Resources