libPods google map iOS , Install - ios

I have This code in Podfile
source 'https://github.com/CocoaPods/Specs.git'
target 'Kine' do
pod 'GoogleMaps'
pod 'GooglePlaces'
end
I want Install in Terminal
cd /Users/-----
pod Install
I received this error
[!] Automatically assigning platform ios with version 11.0 on target because no platform was specified. Please specify a platform for this target in your Podfile. See https://guides.cocoapods.org/syntax/podfile.html#platform.
and in the site I see iOS 10.6 but I don't have iOS 10.6 in Xcode when I change the target in iOS 8.0 or 9.0 or 10 it's not work again and received the same error
and the libPods.a its missing (Red)

Follow these steps:
Open terminal
type
sudo gem install cocoapods
create Podfile in your project root directory
Open Podfile
Type
platform :ios, '10.0'
use_frameworks!
target 'Kine' do
pod 'GoogleMaps'
pod 'GooglePlaces'
end
open terminal goto: cd /Users/path/to/project/root
type pod Install and press enter
goto your project root using Finder
open file Kine.xcworkspace
Run your project

Related

React native Firebase

I have peculiar issue, I have found many solutions for this error but none of them work.
[!] CocoaPods could not find compatible versions for pod "RNFBApp":
In Podfile:
RNFBApp (from `../node_modules/#react-native-firebase/app`)
Specs satisfying the `RNFBApp (from `../node_modules/#react-native-firebase/app`)` dependency were found, but they required a higher minimum deployment target.
I have tried
npm uninstall #react-native-firebase/app
npm install #react-native-firebase/app
cd ios/
pod install
It didn't work.
I tried delete Podfile.lock and then running
pod install --repo-update
Same error. I then tried changing the iOS deployment target to the highest 14.4 as well as my projects depoloyment target to 14.4.
It still failed. What is the cause? Any help please.
dependency were found, but they required a higher minimum deployment target.
in ios/Podfile you should have line like that -> platform :ios, '9.0'
change it to platform :ios, '10.0' or platform :ios, '11.0'
reinstall pods and rebuild project and check again

Running Xcode project on simulator with Cocoapods

I'm using XCode 11.5 and created a empty project integrated with cocoapods 1.10.0.
When I add some dependency, the build phase "[CP] Embed Pod Frameworks" fails with following message:
/Users/jeferson/Projects/AwesomeProject/ios/Pods/Target Support
Files/Pods-AwesomeProject/Pods-AwesomeProject-frameworks.sh: line 131:
ARCHS[#]: unbound variable.
Podfile:
platform :ios, '10.0'
target 'Example' do
pod 'google-cast-sdk', '4.4.6'
pod 'ComScore', '~> 6.6'
end
Note: It works only in legacy build system
How to use run cocoapods projects on simulator?

Please specify a platform for this target in your Podfile?

I want to config Firebase Firestore. I followed all the steps, but at the last step, I got the error link below I mention.
After Executing this pod install command below error I got
[!] Automatically assigning platform ios with version 11.4 on
target testing_gowtham because no platform was specified. Please
specify a platform for this target in your Podfile. See
https://guides.cocoapods.org/syntax/podfile.html#platform.
My podfile:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'testing_gowtham' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for testing_gowtham
target 'testing_gowthamTests' do
inherit! :search_paths
# Pods for testing
end
target 'testing_gowthamUITests' do
inherit! :search_paths
# Pods for testing
end
pod 'Firebase/Core'
pod 'Firebase/Firestore'
end
I saw this https://guides.cocoapods.org/syntax/podfile.html#platform but I did not find which line I need to change .
How to solve this issue?
Replace your whole pod file text with below text and then check.
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'testing_gowtham' do
use_frameworks!
pod 'Firebase/Core'
pod 'Firebase/Firestore'
end
(or) solution 2
platform :ios, '9.0' is working...I simply removed # this
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'testing_gowtham' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for testing_gowtham
pod 'Firebase/Core'
pod 'Firebase/Firestore'
end
In your Podfile ->
Uncomment platform and set ios : 10.0
platform :ios, '10.0'
this will work.
If the above error occurs when you install pod 'PusherSwift' and pod 'AlamofireImage' you have to remove # symbol from
# platform :ios, '9.0'.
Then write the command pod install in your terminal.
When you run the project again the error will appear according to 'pusher swift'.you have to click unblock option. Then the problem is successfully solved.
Delete Podfile.lock file and run pod install.
I got this issue by changing the target iOS version and developing application on more devices.
Worked for me, but be careful - it will replace all, let's say, locked (cached) versions of libraries, that you are using. Check yourself that you fully understand what Podfile.lock file does here --> https://guides.cocoapods.org/using/using-cocoapods.html
Updated answer for 2022.
This is due to your minimum deployment target being less than iOS 10. According to the Firebase ios setup documentation, your project must target ios platform versions iOS 10 or later:
command $ flutter clean
open the Podfile in the directory ios/Podfile
uncomment the line platform :ios, '9.0' and change 9.0 to 10.0
# Uncomment this line to define a global platform for your project
platform :ios, '10.0'
save the file
$ flutter run
For Apple Silicon M1 chips:
Edit ./ios/Podfile
platform :ios, '11.4' or whatever version
Install ffi arch -x86_64 sudo gem install ffi
Reinstall pods
flutter clean
cd ios
arch -x86_64 pod install
cd ..
flutter run
You shouldn't remove everything inside Podfile, just Uncomment this line:
platform :ios, '9.0'
from ios/Podfile
The simplest answer is uncomment second line of Podfile and change the iOS version to 10 like this. Note that the very next following Xcode build will take a bit more time than usual. I don't know why...
platform :ios, '10.0'
In Flutter project, I Also faced with this issue. Fixed by updating flutter and cocoa pods to the latest version.
Solution:-
flutter clean
rm -Rf ios/Pods
rm -Rf ios/.symlinks
rm -Rf ios/Flutter/Flutter.framework
rm -Rf ios/Flutter/Flutter.podspec
cd ios
pod install
cd ..
flutter build ios
In side the Podfile
Specifying the platform version on your plaform
Remove the # platform :ios, '9.0'
# platform :ios, '9.0' ( comment note)
Write it like these
platform :ios, '13.0'
platform :ios, '9.0' is working...I simply removed # this
In my case it was because of an old project which I didn't run for like 6 months.
I just created a new Flutter project using this command
flutter create -i swift -a kotlin project_name
And moved the ios folder to my project, run it and it works!
I have got this error many times while running flutter firebase project.
Simple solution is:
Replace:
# platform :ios, '9.0' with platform :ios, '9.0'
Actually # make it commented so we are just uncommenting it.
pod update and pod install again
cd iOS
run the following -
pod deintegrate --verbose
sudo gem pristine ffi --version 1.14.2
sudo arch -x86_64 gem install ffi
arch -x86_64 pod install
You have to remove # symbol from
cd ios
open podfile
and remove # symbol and save this file
#platform :ios, '9.0'.
Then write the command pod install in your terminal.
To solve this :
open your pod file in Andriod Studio --> ios--> Podfile then you will see at the top of the file a commented out example:
platform :ios, '9.0'
uncomment this line and re-run the app to see if it works. If it's still not working then change the version to match your minimum requirement. I've set mine to iOS 12 as one of my dependencies required this.

Adding cocoapods into my PodFile

I am working on an app, which requires cocoapods. In the manual of this app is written
Add this to your Podfile:
pod 'SwiftSocket'
And run then pod install
But when I make a pod file using pod init into my folder and then open -a Xcode Podfile and there I add lines
target 'SwiftSocket' do
pod 'SwiftSocket'
end
and the last pod install it says me an error
Unable to find a target named SwiftSocket, did find SwiftSocket iOS, SwiftSocket macOS, SwiftSocket tvOS, and iOS Example.
Edit____________
Picture of my folder.
and how looks my Podfile now
It is working perfectly, check out my podfile
# Uncomment the next line to define a global platform for your project
platform :ios, '10.0'
target 'Demo' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
pod 'SwiftSocket'
# Pods for Demo
end
Demo is the project name. Target name will be your project name.

Pods not installing properly

I had been installing pods and the pods get installed properly . However , in the Project navigator , the .xcconfig files are red in color and I cannot set the same in the project-> info -> configurations either as they don't get listed and only none is listed. When debugged , I could find that the .xcconfig files were getting accessed by the xcode in the following path
/Volumes/Macintosh HD/Users/xxxxxxxxxx/Documents/xxxxxxxx/app/Pods/Pods/Target Support Files/Pods-broadcastuploadSetupUI/Pods-broadcastuploadSetupUI.release.xcconfig
/Pods is there twice , Because of which I am getting the following errors :
diff: /Podfile.lock: No such file or directory
diff: /Manifest.lock: No such file or directory
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
I am working with Xcode 9 beta . Can anyone kindly help ?
P.S , I have tried sudo gem install , pod update , disintegrate , install and everything that is available on the internet as a solution. I'd be glad if anyone could help
This is my podfile :
#platform :ios, ‘11.0’
source 'https://URL_TO_ACCESS_PODSPEC_FOR_POD'
source 'https://github.com/CocoaPods/Specs.git'
target 'app' do
pod 'objective-zip', '~> 1.0'
pod 'AssistScreenShareKit'
use_frameworks!
end
target ‘broadcastupload’ do
pod 'AssistScreenShareKit'
use_frameworks!
end
target ‘broadcastuploadSetupUI' do
pod 'AssistScreenShareKit'
use_frameworks!
end
Error :
The file “Pods-app.release.xcconfig” couldn’t be opened because there is no such file. (/Volumes/Macintosh HD/Users/xxxxxxxx/Documents/xxxxx/app/Pods/Pods/Target Support Files/Pods-app/Pods-app.release.xcconfig)
Steps to install pod
Open a terminal window, and $ cd into your project directory.
To create a Podfile you need to to run $ pod init.
Open your Podfile. The first line should specify the platform and
version supported.
platform :ios, '9.0'
use_frameworks! target 'yourProjectName' do
pod 'Alamofire' end
Then install the pod
pod install
First delete all pods and Podfile.lock
open terminal and go to folder path
Edit your podfile by this
platform :ios, '8.0'
use_frameworks!
target 'MyApp' do
//add your all pods
end
pod install
close xcode and open MyApp.xcworkspace file
check for more: Command-line Reference
This will help you.
update your Cocoapods version, I had this problem with Cocoapods 1.5.3 and it was fixed in 1.6.1
to do that open terminal and just type
gem install cocoapods

Resources