cocoapods

How can I modify OTHER_LDFLAGS via CocoaPods post-install hook?

纵饮孤独 提交于 2019-11-28 18:18:08
My project uses CocoaPods and also custom xcconfig files. Until now, this hasn't caused any problems: I've just had to #include the CocoaPods-generated configuration at the end of my custom configuration. However, I've run into a problem where a need to conditionally specify OTHER_LDFLAGS based on the xcconfig , but I can't figure out how to do this. As a start, I've tried simply logging the OTHER_LDFLAGS like this, but the flags aren't actually logged: post_install do |installer_representation| installer_representation.project.targets.each do |target| target.build_configurations.each do

Obj-C CocoaPods + Swift Framework

六眼飞鱼酱① 提交于 2019-11-28 18:15:53
I'm creating a Swift framework in the latest Xcode 6 DP4. I need to internally use AFNetworking in my framework, but can't figure out a way to compile it. I know how to use bridging headers, but those aren't supported in Swift frameworks. My framework, Core.framework, looks like this: > Core.h #import <UIKit/UIKit.h> #import <AFNetworking/AFNetworking.h> //! Project version number for Core. FOUNDATION_EXPORT double CoreVersionNumber; //! Project version string for Core. FOUNDATION_EXPORT const unsigned char CoreVersionString[]; > SomeFileThatNeedsAFNetworking.swift And I'm using a podfile to

Xcode 8 cocoapods abort trap: 6

大兔子大兔子 提交于 2019-11-28 18:04:27
localhost:PodTest3 haiwang$ pod install Analyzing dependencies Downloading dependencies Installing MBProgressHUD (0.9.2) Installing Masonry (1.0.2) Generating Pods project Abort trap: 6 After upgrading to Xcode 8, cocoapods doesn't work anymore. I have tried to uninstall and install, but it still doesn't work. For me, I solved this issue by uninstalling and then again installing CocoaPods with --pre with the command sudo gem uninstall cocoapods sudo gem install cocoapods --pre Hopefully this will solve your problem. Update CocoaPods has released version 1.2.0, so you can now install using sudo

Error running pod install with swift

陌路散爱 提交于 2019-11-28 17:27:40
I followed the instruction from Cocoapods. Below is my Podfile: platform :ios, '8.2' pod 'SwiftyJSON', '~> 2.1' pod 'SwiftSpinner', '~> 0.6' pod 'Alamofire', '~> 1.1' pod 'SuperRecord', '~> 1.2' pod 'Toucan When I did pod install I got the following error: Pods written in Swift can only be integrated as frameworks; this feature is still in beta. Add use_frameworks! to your Podfile or target to opt into using it. Updated: Below is my console log: $ pod install Analyzing dependencies Downloading dependencies Installing Alamofire (1.1.4) Installing SuperRecord (1.2) Installing SwiftSpinner (0.6.0

Integrate Fabric/Crashlytics via CocoaPods

巧了我就是萌 提交于 2019-11-28 17:20:58
问题 I try to integrate Fabric/Crashlytics via CocoaPods, my Podfile looks like this: pod 'Fabric/Core', '1.2' pod 'Fabric/Crashlytics', '1.2' But when I try to build my app, the build fails and I get a Shell Script Invocation Error that the run script isn't found: .../Script-F8D74CB61AB5D7A50013D134.sh: line 2: ./Fabric.framework/run: No such file or directory Is it possible to install Fabric only using CocoaPods? 回答1: Fabric now supports installation with CocoaPods: http://docs.fabric.io/ios

Cocoapods: Unable to find a specification for [PrivateSpec] depended upon by [PrivateClientSpec]

浪子不回头ぞ 提交于 2019-11-28 16:51:53
I am trying to use private repositories to break up a larger application. I have followed the guides at: http://www.objectpartners.com/2014/06/25/developing-private-in-house-libraries-with-cocoapods/ http://guides.cocoapods.org/making/private-cocoapods.html How to add a private CocoaPod as a dependency in another pod .podspec (similar but a different problem) I have created a local repository to contain the specs, published to cocoapods via pod remote add MySpecs ~/local/path/to/MySpecs.git , verified that cocoapods sees them by looking at the contents of ~/.cocoapods/repos/MySpecs I have

'No such module' when I use CocoaPods

社会主义新天地 提交于 2019-11-28 16:47:53
So here's my procedure. I create a new Podfile in the project directory, then I added the following platform :ios, '9.0' use_frameworks! target 'CPod' do pod 'AFNetworking', '~> 2.5' pod 'ORStackView', '~> 2.0' pod 'SwiftyJSON', '~> 2.1' end I fire off pod install , and everything goes well, open up the xcworkspace . I then go over to ViewController.swift and if I try to import a pod I get No such module 'SwiftyJSON' , if I were to do import SwiftyJSON . Any ideas? EDIT: SwiftyJSON is a Swift based module, not Obj-C Micah Benn Try adding the Pods framework to your build scheme and building the

Cocoapods dependency in pod spec not working

荒凉一梦 提交于 2019-11-28 16:40:28
问题 I'm getting a syntax error with this spec file: Pod::Spec.new do |s| s.name = "BSImageLoader" s.version = "0.1.3" s.summary = "The image loading framework for PicPoc" s.homepage = "https://bitbucket.org/boolalsofware/bsimageloader" s.license = 'MIT' s.author = { "Spencer Comerford" => "Spencevail@gmail.com" } s.source = { :git => "git@bitbucket.org:boolalsofware/bsimageloader.git", :tag => "0.1.3" } s.source_files = 'Classes/*.{h,m}', 'Classes/PublicHeaders/*' s.public_header_files = 'Classes

How to import and use Swift Pod Framework in Objective-C Project

扶醉桌前 提交于 2019-11-28 16:37:28
I've been trying to checkout CocoaPods new framework setup to get some Pods going and I'm having trouble using the Swift one's in my Objective-C project. First things first, this is CocoaPods prerelease 0.35, you can read about how to use and install it here . Here's my current Podfile: source 'https://github.com/CocoaPods/Specs.git' platform :ios, '8.0' pod 'MBProgressHUD' pod 'SLPagingViewSwift' MBProgressHUD is a common spinning indicator, and SLPagingViewSwift is a random project I found by typing Swift into the cocoapods search. Here's the ViewController.m In my project: #import

Xcode Unit Testing with Cocoapods

别等时光非礼了梦想. 提交于 2019-11-28 16:16:36
I've been banging my head against a wall with this for the last few days but despite multiple Google/SO/Github searches I can't find a resolution to the issues I'm having! All I'm trying to do is create some unit tests for my app which makes use of Firebase pods. I'm using Xcode 7.3.1 & Cocoapods 1.0.1. Update: Issue remains with Xcode 8.0 With this podfile: platform :ios, '9.0' use_frameworks! inhibit_all_warnings! target 'MyApp' do pod 'Firebase' pod 'Firebase/Auth' pod 'Firebase/Database' pod 'Firebase/Storage' target 'MyAppTests' do inherit! :search_paths end end In my XCTest class I get