something wrong when I install Google-Mobile-Ads-SDK - ios

when I try to add google mobile ads sdk to my file, there comes out some problems.
when i start install:
pic1
there is nothing wrong here, but when i run the app with xcode, i got a lot of error:
pic2
i don't know how to fix that ...... if anyone could help me ? thanks!!!!!!

Open your old project(without Google-Mobile-Ads-SDK framework), I think it was working(compiling & running) properly. Now add Google-Mobile-Ads-SDK pod line in the project's pod file and install pod by --no-repo-update in the terminal.
pod install --no-repo-update

Related

Problem with firebase_in_app_messaging dependency. Getting error : "Use of undeclared identifier 'FIRInAppMessaging' "

I've installed firebase_in_app_messaging: ^0.1.2 Flutter lib from pub.dev. After that, I couldn't run the app because iOS can't see FIRInAppMessaging. Checked in Xcode Pods/Targets there is no FirebaseInAppMessaging pod installed. Does anybody else had this problem and knows how to fix it?
I've tried fixing it with adding pod 'FirebaseInAppMessaging' into the Podfile and running pod install and it works but I am searching for a better solution because Podfile is autogenerated file in Flutter.

mobile-ffmpeg-https (4.3.1) POD install failed

I am getting error on my pod install command , Error creating package is mobile-ffmpeg-https (4.3.1). Image attached for more details.
Actually i have not used this package anywhere in my project. I tried to use it and then removed it from project. But i am not getting why this is still showing up in pod install.
i tried deleting my podfile.lock and again running pod install but issue remains.
thanks in advance .
Just try to install it with different wifi or mobile data, and you're done

How to fix build error with FBSDKLoginKit in Xcode

My ios app was working fine until I ran "pod install" and updated all of my pods. I'm now getting an error when trying to build in Xcode.
FBSDKLoginKit/FBSDKLoginManagerLoginResult.m:43:25: No known class method for selector 'dictionary:setObject:forKey:'
Here are the FB pod versions used:
Installing FBSDKCoreKit (5.0.0)
Installing FBSDKLoginKit (4.44.1)
Those are not specified in my podfile. I think they're installed as part of FirebaseAuth which is in my podfile.
How can I resolve this?
Add pod 'FBSDKCoreKit', '~> 4.44' to the Podfile.
There's a bug in the 4.x versions of FBSDKLoginKit. Its podspec allow major version updates to its FBSDKCoreKit dependency, but the code doesn't comply.
There's no FBSDKCoreKit version specified in the 4.44.1 version like there is in the 5.0.0 version.
The suggested Podfile change is a workaround for the podspec problem.
The current version of FirebaseUI requires version 4.x of FBSDKLoginKit.
In my case, I had to also fix the version of Firebase/Core, like following.
pod 'FBSDKCoreKit', '~> 4.35'
pod 'FBSDKLoginKit', '~> 4.35'
pod 'Firebase/Core', '~> 5.20'
Additionally information
The above case is that you have FirebaseUI/Twitter for Twitter login, which is using TwitterKit internally. But TwitterKit is finished to support. So if you have already used FirebaseUI/Twitter, the following should be used
pod 'FirebaseUI/OAuth'
instead of the below.
pod 'FirebaseUI/Twitter'
At the result, we can use the latest & stable FBSDKCoreKit, FBSDKLoginKit and Firebase/Core.
I have similar issue. It is after installing FBSDKCoreKit 5.0.0 (was 4.44.1) as part of the Firebase codebase.
It seems that there may be some code that Firebase use:
(void)addLoggingExtra:(id)object forKey:(id)key
{
[FBSDKInternalUtility dictionary:_mutableLoggingExtras setObject:object forKey:key];
}
That seem to be problematic and gives the error:
No known class method for selector 'dictionary:setObject:forKey:'
While I don't know how to solve it, the above may provide insights to others.
the above answer marked as correct didn't work for me.
this is how I fixed this error. First I downloaded iOS sdk from facebook : https://developers.facebook.com/docs/facebook-login/ios?sdk=fbsdk
then I opened downloaded sdk and copied FBSDKCorekit.framework, FBSDKLoginKit.framework, and Bolts.framework into 'Frameworks' folder in my Xcode project.
(I'm not using facebook to login at this time but I was still getting the same error as you guys are)
At last I changed my pod to:
pod 'Firebase/Core'
pod 'FirebaseUI/Auth'
pod 'FirebaseUI/Phone'
pod 'FirebaseUI/Google'
pod 'FirebaseUI/Email'
update pod, clean project and rebuild
a couple errors pop up for deprecated code in the fb sdk. click 'fix' from the error and project runs as expected.
Very first you need to proper check version of pod which you are installing. Because it looks that you are installing earlier version of Facebook Pod. Please look at screenshot I have attached. It's work fine for me.
Though you can follow these steps to overcome this error.
Comment All Facebook pods in pod file.
Now close Xcode project, clear all recent items, Quit Xcode. Clean derived data.
Go to Terminal, jump to your project path directory, run command pod install (It will remove all Facebook pods).
Please save or commit your code if you are using versioning system.
Now open your Xcode project and go to pod file.
Copy latest pods from here and paste into pod file.
Now again close Xcode project, clear all recent items, Quit Xcode. (Please don't build or run project)
Go to Terminal and run command pod install (It will install all latest Facebook pods).
Don't forget to save or commit code.
Then open Xcode project, clean folder, build and then run.

The application bundle does not contain a valid identifier IOS

I will use the camera in my app, and I add Camera Usage Description in Xcode
but a alert shows the error:
Someone help me, plus?
UPDATE:
My Bundle Resources:
RemoveDerived data for your project:
/Users/{Username}/Library/Developer/Xcode/DerivedData/{AppName}
If you have installed any cocoapods, please deintegrate using- $ pod deintegrate, and uninstall all the cocoapods versions and then delete all of the pod files (pod.lock, pod, xcworkspace) from your project. Now, go to your Xcode project and remove the pod file and framework file from there. Then reinstall your cocoapods version that you need and use your library. It worked for me.

Cocoapods Twilio Video

i renamed my xcode project and delete all pods (pod deintegrate) and then i install pods again but now i get this error:
this is output from terminal after pod install:
My podfile:
How is it possible that my app doesnt work anymore with this new name? Can someone help me fix this issue?

Resources