Trying to install Pod but getting an error - ios

enter image description hereI want to use google map for my application. By the guidence of google map SDK for iOS. I am installing pod but getting an error.
That is something like below.
The dependency GoogleMaps is not used in any concrete target.

You have to specify a target for each pod.
e.g. if before you had your Podfile written like this:
pod 'GoogleMaps'
just change it to
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.1'
target "TargetName" do
pod 'GoogleMaps'
end

Related

Transitive dependencies that include static binaries using google map and clustering

My Pod file looks like this
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
target 'MyApp' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for MyApp
pod 'GoogleMaps'
pod 'Alamofire', '~> 4.0’
pod 'SDWebImage', '~>3.8'
pod 'Applozic', '~>3.8'
pod 'Google-Maps-iOS-Utils'
end
When i install pod with all this framework Stated it gives me This error
[!] The 'Pods-MyApp' target has transitive dependencies that include static binaries: (/Users/Mad/Downloads/MyApp/Pods/GoogleMaps/Frameworks/GoogleMaps.framework)
Please help me.
I'm not saying that the answers above are wrong, but I recently cd'ed into the project instead of the project-folder which resulted in the same output.
You have to download the Utils repository locally and then import to your xcode project. A step by step guide can be found here: Integrating with Swift projects which use 'use_frameworks!' in the Podfile

The dependency `SinchVerification-Swift` is not used in any concrete target

I am trying to use SinchVerification in my IOS app. However after I do pod install I get this error:
The dependency SinchVerification-Swift is not used in any concrete target.
What does this mean? What should I do?
You should write your pod after do
target 'Your-Project' do
pod 'SinchVerification-Swift'
end
Here is usually caused by lost the target in Podfile. And if the Podfile is not in the same dir wiht .xcodeproj, you have also to add project 'path/to/Project.xcodeproj' to specify it.
platform :ios, '8.1'
use_frameworks!
pod 'SinchVerification-Swift'
target 'your target name.'

Error on terminal while adding pod - [!] Invalid Podfile file: The target Pods-MyApp already has a platform set

In my app i have integrated Googlemap using CocoaPod.
Now I want to integrate CitrusPay using CocoaPod but when i have execute pod install command on terminal then i am getting error -
[!] Invalid Podfile file:
The target Pods-MyApp already has a platform set..
from /Users/NewFolder/Desktop/xyz.app.MyApp.ios/Podfile:10
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.1'
pod 'GoogleMaps'
Does anyone knows how to solve this error?
i have the same question with you,and than search answer in the internet,but nothing ,so i solve question myself,
step:
first : sure you 'Podfile' file only have "platform:ios,'version'" one time;
second : add "target 'yourtarget'do" in the file top;
third : add "end" in the file bottom.
you must maintain your "Podfile" file have formatter:
enter image description here
you will solve this question, wish can help you.thanks.
Add target to your podfile
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.1'
target 'YourTarget' do
pod 'GoogleMaps'
end
I had the same issue and eventually I solved it, now my Podfile looks like this
#Alamofire - lib for HTTP requests
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!
target 'Fitzz' do
pod 'Alamofire', '~> 4.0'
#XCGLogger - lib for loggin output
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'XCGLogger', '~> 4.0.0'
end
I am a rookie in iOS, but this works for me

GoogleMaps SDK ios install with Cocoapod error

I'm recently learn iOS and I want to install the GoogleMap SDK for iOS in my project.
But when I installed with pod install it got an error say that the 'GoogleMaps' doesn't have concrete dependency ... or some thing like that.
I did as the instruction on the GoogleMapsAPI web source and this is my Podfile
'https://github.com/CocoaPods/Specs.git'
pod 'GoogleMaps'
Please tell me where do I did wrong. Thanks
You have to specify a target for each pod.
e.g. if before you had your Podfile written like this:
pod 'GoogleMaps'
just change it to
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.1'
target "TargetName" do
pod 'GoogleMaps'
end
When you are working with latest pod you need to write Target in Pod file
Like below.
Currently your pod file looking like
pod "YOUR_POD"
Change To
target "Your_Target_Name" do
pod "YOUR_POD"
end

Install 'JSONWebToken' library without cocoapods

Is there a way to install this library without cocoapods ? because when i install it with pod i get this error :
[!] Pods written in Swift can only be integrated as frameworks; add `use_frameworks!`
to your Podfile or target to opt into using it. The Swift Pods being used are:
CryptoSwift and JSONWebToken
And when i add 'use_framewords!' i got error on the other libraries written with objective-c that use pod also
Here is my podfile :
source “https://github.com/CocoaPods/Specs.git”
platform :ios, '8.1'
pod 'GoogleMaps'
pod 'RSKImageCropper'
pod 'AFNetworking', '~> 3.0'
pod 'DZNEmptyDataSet'
pod 'Instabug'
Thank's in advance
You can drag and drop the
link
sources into your project. If you add the library in this way, you
will update the library manually as you know.
The second option is using cocoapods and solving the problem. When you use use_frameworks! cocoapods tries to convert the whole pods as framework, so the error should be in your bridging header. Try to import your frameworks in your files.

Resources