cocoapods

Using OpenSSL cocoa pod in iOS project

久未见 提交于 2020-01-03 18:37:10
问题 I'm trying to import OpenSSL pod header files into my iOS project. However, Xcode cannot find OpenSSL header. It says #import <OpenSSL/bio.h> OpenSSL/bio.h file not found But I was able to command + click to jump to the bio.h The OpenSSL pod is installed successfully and my PodFile is like below platform :ios, '9.0' use_frameworks! target 'MyProject' do pod 'OpenSSL', '~> 1.0' end using Xcode 7.2 Edit I have tried clean, build and delete Derived Data folder but still not working. 回答1: 1) I

App is crashing after an IAP - only after podfiles were updated

纵然是瞬间 提交于 2020-01-03 16:57:29
问题 I have an IAP setup in an app, along with a few Cocoapods: - Firebase/AdMob (4.8.0): - Firebase/Core - Google-Mobile-Ads-SDK (= 7.27.0) - Firebase/Core (4.8.0): - FirebaseAnalytics (= 4.0.5) - FirebaseCore (= 4.0.13) - Firebase/Crash (4.8.0): - Firebase/Core - FirebaseCrash (= 2.0.2) - FirebaseAnalytics (4.0.5): - FirebaseCore (~> 4.0) - FirebaseInstanceID (~> 2.0) - GoogleToolboxForMac/NSData+zlib (~> 2.1) - nanopb (~> 0.3) - FirebaseCore (4.0.13): - GoogleToolboxForMac/NSData+zlib (~> 2.1)

Google Analytics Pod installs too many dependencies

血红的双手。 提交于 2020-01-03 09:30:10
问题 I've just included the Google Analytics Pod as described in their iOS developer guide with: pod 'Google/Analytics' When running pod install it installs the following dependencies: Installing FirebaseAnalytics (3.2.0) Installing FirebaseInstanceID (1.0.6) Installing Google (3.0.3) Installing GoogleAnalytics (3.14.0) Installing GoogleInterchangeUtilities (1.2.1) Installing GoogleSymbolUtilities (1.1.1) Installing GoogleUtilities (1.3.1) Since I don't use Firebase, I would like to get rid of the

Cocoapods platform, what does it mean exactly?

好久不见. 提交于 2020-01-03 07:24:08
问题 It is unclear to me what effect changing the platform value will have, can someone elaborate? Will this simply mean that an error gets thrown if minimum version requirements for a library are not met? https://guides.cocoapods.org/syntax/podfile.html#platform 回答1: Yes, if POD A supports iOS 4.0 and has a dependency on POD B which only supports iOS 7.0, an error will be thrown when trying to publish the POD A's pod spec. It will also be used to populate the iOS Deployment Target build setting

Using CocoaPods for the “Charts” framework. Swift 2

旧巷老猫 提交于 2020-01-03 06:04:07
问题 I am a newbie when it comes to CocoaPods so please bear with me! I am looking at the tutorial (https://www.raywenderlich.com/97014/use-cocoapods-with-swift) however this is using the dependency "pod 'Alamofire', '2.0.2'". I have looked online for over a hour now and I can't find what to use for the Charts framework (https://cocoapods.org/?q=charts). So Far i have done the following steps: 1. sudo gem install cocoapods and got the following output: 2. pod setup --verbose and got the following

SpeechKit Pod for Swift results in undeclared type errors

喜你入骨 提交于 2020-01-03 05:58:11
问题 I have implemented the Nuance SpeechKit using this CocoaPod https://cocoapods.org/pods/SpeechKit and implementing the instructions from the accepted S.O. answer here: https://stackoverflow.com/questions/30327372/implementing-nuance-speech-recognition-on-swift-cannot-listen-to-onresult-oner After doing so I get a "use of undeclared type 'SKRecognizerDelegate'" error: Supporting Files: and Errors in UIViewController: 回答1: The only difference I see are these #ifndef / #define lines in your

Cocoapod 0.38.0 and AFNetworking 2.5 AF_APP_EXTENSIONS compilation error

对着背影说爱祢 提交于 2020-01-03 03:52:08
问题 My project has 9 targets : - Prod - Prod_app_extension_1 - Prod_app_extension_2 - Beta - Beta_app_extension_1 - Beta_app_extension_2 - Dev - Dev_app_extension_2 - Dev_app_extension_2 I'm using 0.38.2 cocoapod version and 2.5.4 AFNetworking. I'm trying to use AFNetworking with cocoapod but I get the AF_APP_EXTENSIONS error while compiling. After searching for the solution on the web, I understand the problem and found that defining the 'preprocessor macros' AF_APP_EXTENSIONS can fix the

GoogleMobileVision GoogleSignIn duplicate symbol using Cocoapods?

﹥>﹥吖頭↗ 提交于 2020-01-02 20:11:10
问题 I am using CocoaPods to add two frameworks. target 'TestGoogleLib' do # Comment the next line if you're not using Swift and don't want to use dynamic frameworks use_frameworks! # Pods for TestGoogleLib pod 'GoogleMobileVision' pod 'GoogleSignIn' end But when I run - I get duplicate error. It seems both framework are using same file. My Pod version is 1.5.3 duplicate symbol _OBJC_IVAR_$_MDMPasscodeCache._localAuthenticationInfo in: ld: 13 duplicate symbols for architecture x86_64 clang: error:

Swift and Cocoapods - Missing required module

半城伤御伤魂 提交于 2020-01-02 07:29:12
问题 I am trying to make a Swift framework. This framework depends on two libraries, Alamofire and SwiftyJSON, which are both written in Swift. I am using CocoaPods to import these libraries in my framework. Here is the content of my Podfile: source 'https://github.com/CocoaPods/Specs.git' platform :ios, '8.0' use_frameworks! pod 'Alamofire', '1.2' pod 'SwiftyJSON', '2.2' In my framework, I have a class that imports and uses these two modules: import Alamofire import SwiftyJSON I can run pod

Firebase Analytics with iOS framework development project

白昼怎懂夜的黑 提交于 2020-01-02 04:55:30
问题 I am adding Firebase analytics using coocapods, my Podfile is platform :ios, '8.0' use_frameworks! workspace 'ProjectWorkspace.xcworkspace' abstract_target 'Shows' do pod 'SwiftProtobuf', git: 'https://github.com/apple/swift-protobuf.git', :tag => '0.9.24' pod 'Firebase/Core' pod 'Firebase/Messaging' target 'HostApp' do project 'HostAppFolder/HostApp.xcodeproj' end target 'HostAppReleaseTarget' do project 'HostAppFolderApp/HostApp.xcodeproj' end target 'FrameWorkProject' do project