cocoapods

Specifying preprocessor macros for a cocoapod dependency, without forking it

。_饼干妹妹 提交于 2019-12-23 07:29:19
问题 I have an XCode workspace managed by Cocoapod with a few dependencies to external libraries. One of them, MTDates, extends NSDate and NSDateComponents with either prefixed methods, or non-prefixed if a certain preprocessor macro is defined (which is what I want). There are a few places where I can put the preprocessor macro definition in order to have the compiled library provide the non-prefixed methods, but all seem to be reset as soon as I ask Cocoapod to update the project, which leads me

Specifying preprocessor macros for a cocoapod dependency, without forking it

对着背影说爱祢 提交于 2019-12-23 07:29:06
问题 I have an XCode workspace managed by Cocoapod with a few dependencies to external libraries. One of them, MTDates, extends NSDate and NSDateComponents with either prefixed methods, or non-prefixed if a certain preprocessor macro is defined (which is what I want). There are a few places where I can put the preprocessor macro definition in order to have the compiled library provide the non-prefixed methods, but all seem to be reset as soon as I ask Cocoapod to update the project, which leads me

RestKit compile fails with cocoapods use_frameworks for swift

血红的双手。 提交于 2019-12-23 07:19:09
问题 I am using RestKit along with some Swift only frameworks and when I use the cocoapods use_frameworks! flag, I get compile errors. It can't find CoreData.h in the bridging header and can't find RKValueTransformers.h If I remove the flag it all compiles correctly. Anyone else seen this? Is there a workaround 回答1: As far as I know one can only use either Objective-C or Swift libraries in the bridging-header. There is no solution enabling you to use both Objective-C and Swift libraries in the

How do I Integrate the Firebase cocoaPods in my custom swift framework?

时光怂恿深爱的人放手 提交于 2019-12-23 07:10:41
问题 I want to build a iOS swift framework (ex. XYZ) which for users to login firebase with customized access token. I finished my login method and get the access token in XYZ. Now I want to Integrate the Firebase in XYZ to pass the access token to Firebase. So I install Firebase in XYZ with cocoaPods. and write the code and build a XYZ framework. Everything seems fine. Than I create a swift project ABC, and import XYZ framework. Then I got error "Missing required module 'Firebase' " at the line I

How do I Integrate the Firebase cocoaPods in my custom swift framework?

送分小仙女□ 提交于 2019-12-23 07:10:28
问题 I want to build a iOS swift framework (ex. XYZ) which for users to login firebase with customized access token. I finished my login method and get the access token in XYZ. Now I want to Integrate the Firebase in XYZ to pass the access token to Firebase. So I install Firebase in XYZ with cocoaPods. and write the code and build a XYZ framework. Everything seems fine. Than I create a swift project ABC, and import XYZ framework. Then I got error "Missing required module 'Firebase' " at the line I

CocoaPods framework with dependencies - include of non-modular header inside framework module

家住魔仙堡 提交于 2019-12-23 07:03:29
问题 I am trying to build a private CocoaPods framework with other pod dependencies. Among others, I added Parse as a dependency in the podspec file: s.dependency 'Parse' However, when I try to lint it, pod lib lint MyPrivateSpec.podspec --verbose --sources 'git@bitbucket.org:MY_BITBUCKET_NAME/specs.git,https://github.com/CocoaPods/Specs' I get the following errors: Target Support Files/Parse/Parse-umbrella.h:3:9: note: in file included from Target Support Files/Parse/Parse-umbrella.h:3: ERROR |

Cocoapods: Error -9806 while trying to integrate a library

不羁的心 提交于 2019-12-23 06:56:16
问题 I like to integrate a zip library in my macOS application. I created the Podfile with pod init and added the pod to it: # Uncomment this line to define a global platform for your project platform :osx, '10.10' target 'Test' do # Comment this line if you're not using Swift and don't want to use dynamic frameworks use_frameworks! # Pods for Test pod 'Zip', '~> 0.4' end But if I execute pod install I am getting following output on the console (tried it a few times): Analyzing dependencies

Error installing Geofirestore - Could not find remote branch 1.1.0 to clone

僤鯓⒐⒋嵵緔 提交于 2019-12-23 05:21:35
问题 I'll be honest my knowledge of Terminal is little to none. I normally just run pod install and they work, however, I have the below error on installing the pod 'Geofirestore' I am getting the directory of my Xcode project in the terminal and calling pod install Any help greatly appreciated. 回答1: You shoul use latest library of Geofirestore i.e. 1.2.0 In Pod file, pod "GeoFire", "~> 3.0.0" pod "Geofirestore", "~> 1.2.0" Hope it helps. 来源: https://stackoverflow.com/questions/51454724/error

Can't use Objective-C Pod Framework in Swift 2 project (“Use of undeclared type 'SMPageControl'”)

和自甴很熟 提交于 2019-12-23 05:07:33
问题 I have a Swift 2 project running on Xcode 7. I'm using CocoaPods (v 0.38.2 with use_frameworks! ) and have already managed to get those frameworks working: CryptoSwift Pluralize_swift Both Pods are written in Swift, so no problems so far. They work as charm. Now I'm trying to use SMPageControl which is written in Objective-C. I've seen it's possible to use Obj-C Pods with Swift 2, tried a lot of different combinations but I can't get it to work. SMPageControl class doesn't show on

Cannot find <GoogleToolboxForMac/GTMNSData+zlib.h> error when building an ionic project for ios

时光总嘲笑我的痴心妄想 提交于 2019-12-23 03:24:06
问题 I came across this error when trying to build an ionic project for ios. It happened in the FirebaseCore build part of the process. I found the problem was a bug in the following file on line 23: platforms/ios/Pods/FirebaseCore/Firebase/Core/FIRNetwork.m It seems the angle brackets don't allow the search for the file to start at the Pods level, whereas quotes allow a relative path to be used. I found the solution was to do the following, so I thought I'd post it here in case anyone else has