cocoapods

Playground in Swift won't use Firebase

China☆狼群 提交于 2019-12-06 06:27:22
问题 As u probably all might know Firebase made a Version jump and I am trying to get my setup working with the Xcode Playground. There is a reference how to implement Firebase in Playground with older versions of Cocoapods and Ruby but that won't really work for me swift playground for experimenting with firebase. Even though Firebase implementation in the Project itself works fine and i can import my Firebase it won't work on a Playground any more. Does somebody know how to add a working setup

CocoaPods: Linking with C++ symbols defined in libPods.a

孤街浪徒 提交于 2019-12-06 06:24:33
问题 I recently started working on a podSpec file that integrates levelDB into my projects. (https://github.com/iljaiwas/Podspecs/blob/master/LevelDBPodSpec/0.0.1/leveldb.podspec) However, when I reference any C++ symbol from a .mm file in the main target, I get a linker error like this: Undefined symbols for architecture x86_64: "leveldb::DB::Open(leveldb::Options const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, leveldb::DB**)", referenced from

iOS Unexpected platform condition (expected 'os', 'arch', or 'swift') - Reachability

吃可爱长大的小学妹 提交于 2019-12-06 06:14:50
I just update my pods. after update Reachability causing an error Unexpected platform condition (expected 'os', 'arch', or 'swift') I tried to build and clean but it does not work. what's the solution? Please help me to fix this. Thanks in advance. Muhammad Umair Gillani use this 1 #if (arch(i386) || arch(x86_64)) && os(iOS) #endif You can try as Muhammad says. I suggest the following code which is very easy to maintain. Copy paste the following code to a file and try yourself. import Foundation import SystemConfiguration class Network { // Declarations static let shared = Network() // Check

Cocoa Pods and Google Maps SDK

老子叫甜甜 提交于 2019-12-06 06:13:49
When using CocoaPods to get the Google Maps SDK for iOS, I'm having troubles importing the sdk header file ( #import <GoogleMaps/GoogleMaps.h> ). I'm new to CocoaPods but I think I have everything working fine with the other libraries that I use (RestKit, AFNetworking...). For these APIs I still need to import the lib like this #import <AFNetworking/AFNetworking.h> instead of just #import "AFNetworking" . But it works fine. For Google Maps SDK I need to import it like this #import <Google-Maps-iOS-SDK/GoogleMaps/GoogleMaps.h> which leads to a compilation error because in the GoogleMaps.h

How do I prevent react-native-device-info causing React ambiguity on my setup?

*爱你&永不变心* 提交于 2019-12-06 06:12:31
I'm running into a problem with installing react-native-device-info into an existing react-native project (created using create-react-native-app and then ejecting) I run: yarn add react-native-device-info yarn install react-native link react-native-device-info cd ios && pod install & cd .. pod install installs RNDeviceInfo , but also React as a dependency? I then run yarn ios as normal. The MetroBundler fails with: ``` This warning is caused by a @providesModule declaration with the same name across two different files. Loading dependency graph, done. error: bundling failed: ambiguous

How to make a dynamic framework(Swift) based on two static libraries using Cocoapods

耗尽温柔 提交于 2019-12-06 06:07:38
问题 I want to make a dynamic framework that incorporates two 3-rd party frameworks with static libraries and later add it as a pod to my project. Here are their podspec files IndoorsSDK-iOS.podspec (By the way, this one lacks modulemap in .framework file) IndoorAtlas.podspec I tried to add them as s.dependency in my podspec file but got following error Pods error - target has transitive dependencies that include static binaries Tried to include them as s.vendored_frameworks but got following

RestKit with cocoapod with use_frameworks! can't use AFNetworkReachability

独自空忆成欢 提交于 2019-12-06 05:56:19
问题 My pod file looks like this: source 'https://github.com/CocoaPods/Specs.git' platform :ios, '8.0' use_frameworks! pod 'RestKit' pod 'CocoaLumberjack' On top of my App delegate I added: #import <RestKit/RestKit.h> In the application:didFinishLaunchingWithOptions: I added this: RKObjectMapping *mapping = [RKObjectMapping mappingForClass:[NSString class]]; So far it compiles fine, then I added: AFHTTPClient* client = [[AFHTTPClient alloc] initWithBaseURL:[[NSURL alloc] initWithString:@"asdf"]];

CocoaPods project structure for unit testing with private components

无人久伴 提交于 2019-12-06 04:44:40
问题 I am using CocoaPods for a project with the following structure: Example/ Example/PublicUmbrellaHeader.h Example/PrivateHeaderForComponent1.h Example/PrivateHeaderForComponent2.h Example.podspec Tests/ Tests/Podfile Tests/Tests/UnitTestForPrivateComponent1.m Tests/Tests/UnitTestForPrivateComponent2.m Tests/Podfile pod 'Example', :path => '../' This is not unusual. For example, AFNetworking follows a similar structure. What is different is the need to expose a certain set of headers only to

on mac os sierra, stuck on “Setting up CocoaPods master repo”

拈花ヽ惹草 提交于 2019-12-06 04:37:27
问题 After moving to mac os sierra, I completely formatted my mac now I'm facing problem to install cocoapods, every time I run sudo gem install cocoapods --pre every thing installed well, and when I try to install a pod, the terminal stack on Setting up CocoaPods master repo . Already updated the system with sudo gem update --system and still got the same problem, searched online to found old answers to use pod install --verbose Ss I found in THIS answer fail again tells to install it manually.

How do I install Frank when my project is using Cocoapods?

允我心安 提交于 2019-12-06 04:29:06
问题 I have a sample, new project that and I used Cocoapods to install TestFlight and RestKit . Now I am trying to add Frank but "frank build" does not work. I've tried following steps listed here; I've tried to modify the franked ../Frank/frankify.xcconfig and I've modified the .xcconfig for the default target. When I run "frank build", the build fails and leaves me a message, "ld: library not found for -lPods" . Any ideas on how to get this to work? 回答1: from the article you link to, after