cocoapods

Manage Dependencies of Multiple Targets with Cocoapods

ぐ巨炮叔叔 提交于 2019-12-04 05:00:05
I just started tinkering with cocoapods to manage dependencies of my iOS Projects. Currently I am trying to integrate unit tests using GHIOSUnit. I followed all their instructions and tried their sample tests and it all worked like charm. However, problems start when I start using my actual project files for testing. I am using AFNetworking for client server comms and whenever I access my sharedClient called 'CRLClient', a wrapper for AFHTTPClient, it gives me undefined symbols errors. Undefined symbols for architecture armv7: "_OBJC_METACLASS_$_AFHTTPClient", referenced from: _OBJC_METACLASS_

How do I create a cocoapod framework and add files to it?

♀尐吖头ヾ 提交于 2019-12-04 04:21:13
问题 I'm creating a private pod and would like it to be used as a module. According to Using Pod Lib Create, in CocoaPods.org: The first question you're asked is what language you want to build a pod in. For both choices CocoaPods will set up your library as a framework. In fact, when I run pod lib create MyLibrary , the initial project template they generate does have everything configured to be a framework, so that I can add a class to Development Pods/MyLibrary , and access methods of that

xcodebuild error - SecKey API returned: -25308

邮差的信 提交于 2019-12-04 04:16:30
I'm receiving the error below while trying to build my iOS app. This error only occurs while building for the Release configuration. Also, I'm using CocoaPods for my third-party dependencies and these builds are running on Jenkins through SSH. SecKey API returned: -25308, (null)/Users/iosbuilder/Library/Developer/Xcode/DerivedData/*/Build/Intermediates/ArchiveIntermediates/Production/InstallationBuildProductsLocation/Applications/*.app/Frameworks/AFNetworking.framework: unknown error -1=ffffffffffffffff Command /bin/sh failed with exit code 1 I've tried unlocking the keychain on the build

Git Submodules vs. Cocoapods [closed]

最后都变了- 提交于 2019-12-04 03:55:16
What are the advantages/disadvantages of using Cocoapods vs. Git Submodules? I am aware that there are several differences, but I would like to find out more about the advantages and disadvantages of using either system. Thanks! Git submodules shouldn't be used for dependancy management. I suggest you to use Cocoapods. Git Submodule Pros Basically a one liner to initiate it, no need for extra files / configuration. Cons You can't specify target directories, you always have to clone the whole repository. When the repository moves you have to manually update it. You have to check in the actual

Xcode: libpods.a is red

…衆ロ難τιáo~ 提交于 2019-12-04 03:53:29
Does anyone know why this is? I'm using SWRevealViewController. It has been working up until this point. I'm using the workspace, and I've already looked into other articles and nothing has worked so far. It's not pulling up an error, but when I run the program it won't load anything because SWRevealViewController is the first thing that comes up. Thoughts? Neva Do you get an error message when you try to compile? I've had libPods.a in red before, but that didn't stop my project from working. If I remember correctly, this used to be some kind of display bug back in previous versions of Xcode.

CocoaPods - build for iOS 9 / Swift 2 with Xcode-beta

梦想与她 提交于 2019-12-04 03:52:39
I have a "CocoaPod" (terminology?) that's currently at version 1.1. There's also a develop branch of the repo that requires Swift 2.0 (so needs a base SDK of IOS 9.0) with a PodSpec as follows: Pod::Spec.new do |s| s.name = 'ReachabilitySwift' s.version = '2.0-beta1' s.homepage = 'https://github.com/ashleymills/Reachability.swift' s.authors = { 'Ashley Mills' => 'ashleymills@mac.com' } s.summary = 'Replacement for Apple\'s Reachability re-written in Swift with callbacks.' s.license = { :type => 'MIT' } # Source Info s.ios.platform = :ios, "9.0" s.osx.platform = :osx, "10.11" s.ios.deployment

No such module 'GoogleMaps' found however it is installed

╄→尐↘猪︶ㄣ 提交于 2019-12-04 03:52:38
I have installed the 'GoogleMaps' pod using cocoa pods and the project was building correctly, however when I transferred my project to another device through iCloud (the projects directory is in iCloud) the GoogleMaps pod stopped working. I attempted to simply run pod install again however this mad no difference, the pod is clearly there and the pod install was successful. I am beyond confused. First off try to clean the project by Command + Shift + Options + K If I'm not mistaken, GoogleMaps framework is built from Objective-C so if there's still a problem then do the following steps: Create

'pod install' giving error on Xcode 7

我只是一个虾纸丫 提交于 2019-12-04 03:39:14
问题 I have updated my cocoapods(0.38.2) gem and xcodeproj(0.27.2), but still getting error:- Writing Xcode project file to `Pods/Pods.xcodeproj` 2015-09-24 09:40:27.969 ruby[12098:428715] [MT] DVTAssertions: ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-8227/IDEFoundation/Initialization/IDEInitialization.m:590 Details: Assertion failed: _initializationCompletedSuccessfully Function: BOOL IDEIsInitializedForUserInteraction() Thread: <NSThread:

Import Objective-c framework into Swift framework (Google Analytics + Cocoapod)

大兔子大兔子 提交于 2019-12-04 03:37:45
I'm trying to centralize my commonly used Swift code into a framework, and part of that code uses Google Analytics. I brought in Google Analytics as a Cocoapod, but I can't access it from the new framework like I did from the original project because it's Objective-C and there's no bridging header support in frameworks [I'm using Swift 1.2]. The line of code I normally have in the bridging header that makes all of this work is: #import <Google/Analytics.h> Where exactly do I put this in my project to make this all work like it did before in the bridging header? What I found in Apple's

Import Objective-C Framework (CocoaPod) into Swift?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 03:33:44
I'm trying to import the libjingle_peerconnection framework into my Xcode project, but for some reason I can't import the Objective-C header with import RTCICEServer in Swift source files. I have attempted to use header files, etc. What am I doing wrong? # Uncomment this line to define a global platform for your project # platform :ios, '8.0' # Uncomment this line if you're using Swift use_frameworks! target 'VideoRTCTest' do pod "libjingle_peerconnection" end target 'VideoRTCTestTests' do end target 'VideoRTCTestUITests' do end SwiftArchitect Bridge 1. Create a xxx-Bridging-Header Add a