cocoapods

Charts Pod not downgrading

一个人想着一个人 提交于 2019-12-10 22:47:13
问题 I am using Xcode 8.3 and swift 3. In order to use charts library, I need to use Charts 3.0.2 but Cocoapods is always installing the latest library. I tried following commands - pod install pod update but none are working. Here is the screenshot 回答1: By trial and error, I figured out that removing the ~> thingy works, so now your line will look like: pod 'Charts', '3.0.2' And then you need a pod update , and this will show up: Installing Charts 3.0.2 (was 3.0.5) 来源: https://stackoverflow.com

How to add Google Drive API in Swift iOS Application?

℡╲_俬逩灬. 提交于 2019-12-10 22:11:36
问题 I have an application written in Swift which already uses the SwiftyDropbox API. I installed SwiftyDropbox with cocoapods and the use_frameworks! keyword. And now, when I add this pod 'Google-API-Client' to my Podfile, I get a Duplicate definition error in my Google Drive API when I tried to build my project. So, I've decided to follow the Google Drive guide : https://developers.google.com/drive/ios/quickstart?ver=swift But it seems this guide is deprecated, because there is no file named GTL

Can't run pod install - permission error

主宰稳场 提交于 2019-12-10 21:46:42
问题 I have been trying to run someone's project but can't do pod install. pod install Analyzing dependencies Pre-downloading: `KNMultiItemSelector` from `https://github.com/kentnguyen/KNMultiItemSelector.git` Downloading dependencies Installing AFNetworking (2.5.1) Installing Amplitude-iOS (2.2.4) Installing Analytics (1.11.2) Installing AppsFlyer-SDK (2.5.3.10) Installing Bugsnag (4.0.3) [!] Error installing Bugsnag [!] /usr/bin/git submodule update --init Submodule 'KSCrashModule' (git@github

GeoFire giving problems with CocoaPods

…衆ロ難τιáo~ 提交于 2019-12-10 21:25:34
问题 I'm trying to add Geofire to my iOS project that uses Google Firebase as a backend. When I add the Geofire pod and run pod update I get this message in terminal... [!] Unable to satisfy the following requirements: - `Firebase` required by `Podfile` - `Firebase (~> 2.1)` required by `GeoFire (1.1.0)` Specs satisfying the `Firebase, Firebase (~> 2.1)` dependency were found, but they required a higher minimum deployment target. Here is what my Podfile looks like... # Uncomment this line to

How can I fix my install of ReactiveCocoa (with CocoaPods)?

别来无恙 提交于 2019-12-10 20:57:09
问题 Newbie here, trying to install ReactiveCocoa 2.2.4 with CocoaPods into a project and running into errors at runtime. I have used this podspec on github. Here's my code -- MainViewController.m @interface has: @property (strong, nonatomic) NSString *testString; MainViewController.m viewDidLoad() has: self.testString = @"hello"; [RACObserve(self, testString) subscribeNext:^(NSString *newString) { NSLog(@"%@", newString); }]; self.testString = @"yellow"; This is the runtime error I get, where it

Source files not found in Swift

白昼怎懂夜的黑 提交于 2019-12-10 20:34:04
问题 I am trying to create a Cocoapod. I used the steps listed on their website to do so; however, now that I am trying to create the sample app I'm running into issues. It finds and auto completes the Module, however it says "Undefined Type" for anything I have defined in Classes: Podfile: Podspec: Class attempting to use the pod: Protocol defined in the pod, included in the correct project: Not sure what is going on but when I Command+Click on the highlighted protocols in image 3 it does link me

MapKit (Swift 4) Xcode 9.2 - 'Could not inset legal attribution from corner 4'

帅比萌擦擦* 提交于 2019-12-10 20:22:46
问题 I'm doing a project that deals with a MapKit. My issue is when I run the app, I get the 'Could not inset legal attribution from corner 4.' error. What solution can I take to resolve this issue? error: My app screen: 回答1: I had the exact same error as you - the map was not showing up and I was getting the error: 2018-08-25 09:59:17.324966-0400 Parse Foursquare Clone[45537:42276733] Could not inset legal attribution from corner 4 2018-08-25 09:59:17.332612-0400 Parse Foursquare Clone[45537

library not found for -lCloudinary

你。 提交于 2019-12-10 18:46:14
问题 Library not found whenever I added from pod . I have already added pod from terminal. Error: ld:library not found for -lCloudinary clang: error: linker command failed with exit code 1 (use -v to se invocation) 回答1: When you perform pod install or pod update you must use the new <YourProject>.xcworkspace file instead of the old <YourProject>.xcodeproj file. It happens because .xcworkspace contains your .xcodeproj and the pods . If you just run .xcodeproj the pods will be missing. 来源: https:/

Unable to use pod in Notification service extension

与世无争的帅哥 提交于 2019-12-10 18:23:36
问题 I am creating a Notification extension, added target as per norm and added a pod in it as follows: Step 1 : target 'MyProject' do # Integration - Frameworks pod 'Fabric' pod 'Crashlytics' pod 'MORichNotification' end target 'NotificationServices' do pod 'MORichNotification' end Step : 2 Import "MORichNotification.h" into my Project bridge header file. Now I want to use MORichNotification class in my NotificationService class, and it shows below error. I tried with Clean project, Restarted,

Error: “no such module <Swift Cocoapod name>” with Jenkins

ぃ、小莉子 提交于 2019-12-10 17:55:48
问题 I'm trying to setup Jenkins slave, to build my Swift project that uses a Swift pod called "Freddy". The problem is the build failed with error: error: no such module 'Freddy' This is my Podfile: platform :ios, '8.0' use_frameworks! target 'MyProject' do pod 'AFNetworking', '~> 3.0' pod 'Freddy' end CocoaPods version 0.39.0 Xcode 7.2.1 ( no problems while building from Xcode directly ) PS. Same problem had happened with Alamofire pod before I replaced it with AFNetworking. PSS. Jenkins