cocoapods

Remove dependency from pod

孤人 提交于 2019-12-10 17:48:36
问题 How do I remove dependency from a pod? I have a podfile with pod 'GData' which seems to be broken, because it generates 163 duplicate symbols errors. I think I know what it is. While installing this can be observed: Installing GTMHTTPFetcher (1.141) Installing gtm-http-fetcher (1.0.141) [!] GTMHTTPFetcher has been deprecated in favor of gtm-http-fetcher One of these is not needed. So to remove it I try to modify podfile to use custom, local podspec file: podspec :path => '~/GData.podspec.json

cocoapods pods project build settings

十年热恋 提交于 2019-12-10 17:39:39
问题 So everytime we run a pod update, the pods project gets regenerated. Whatever build settings we manually set in the pods project is reset. I'm wondering if theres anyway to set some build settings of the targets in the pods project after the pod project is generated by a pod update? Any help is appreciated. 回答1: After a few hours of twiddling with cocoapods and reading documentation, I have come up with the following solution: In your podspec file, there is an option to specify the xcconfig

Combining Swift and Objective-C in a CocoaPod

懵懂的女人 提交于 2019-12-10 17:37:10
问题 I am trying to add some Swift code to my existing Objective-C CocoaPod. I have added a bridging header for my example project, but I can't actually get my podspec file to validate as CocoaPods isn't aware of my bridging header file. Anyone know how to fix this issue? Thanks! 来源: https://stackoverflow.com/questions/24248975/combining-swift-and-objective-c-in-a-cocoapod

cocoapods安装和使用,教程,经验

試著忘記壹切 提交于 2019-12-10 16:11:27
目录 CocoaPods是什么? 如何下载和安装CocoaPods? 如何使用CocoaPods? 场景1:利用CocoaPods,在项目中导入AFNetworking类库 场景2:如何正确编译运行一个包含CocoPods类库的项目 场景3:使用中可能会出现的问题及相应解决方法 CocoaPods是什么? 当你开发iOS应用时,会经常使用到很多第三方开源类库,比如JSONKit,AFNetWorking等等。可能某个类库又用到其他类库,所以要使用它,必须得另外下载其他类库,而其他类库又用到其他类库,“子子孙孙无穷尽也”,这也许是比较特殊的情况。总之小编的意思就是,手动一个个去下载所需类库十分麻烦。另外一种常见情况是,你项目中用到的类库有更新,你必须得重新下载新版本,重新加入到项目中,十分麻烦。如果能有什么工具能解决这些恼人的问题,那将“善莫大焉”。所以,你需要 CocoaPods。 CocoaPods应该是iOS最常用最有名的类库管理工具了,上述两个烦人的问题,通过cocoaPods,只需要一行命令就可以完全解决,当然前提是你必须正确设置它。重要的是,绝大部分有名的开源类库,都支持CocoaPods。所以,作为iOS程序员的我们,掌握CocoaPods的使用是必不可少的基本技能了。 如何下载和安装CocoaPods? 在安装CocoaPods之前,首先要在本地安装好Ruby环境

Bridging Header for Flurry.h not working with Pod

本小妞迷上赌 提交于 2019-12-10 16:10:08
问题 I have an existing bridging header that currently contains several obj-c pods. I am having issue importing the Flurry framework with Xcode saying 'Flurry.h' file not found even though it has been correctly inserted using pods. My bridging header currently looks like #import <EstimoteSDK/EstimoteSDK.h> #import <SDWebImage/UIImageView+WebCache.h> #import <FBSDKCoreKit/FBSDKCoreKit.h> #import <FBSDKLoginKit/FBSDKLoginKit.h> #import "Flurry.h" // <----- The Warning is here I have tried several

Many build errors after pod update

假如想象 提交于 2019-12-10 15:36:09
问题 I have many pods installed in my project. Everything worked fine since my last pod update. After last pod update, I have 28 build errors starting with "Could not build module xxx". Here is my podfile: target 'projectXXX' do use_frameworks! pod 'Firebase' pod 'Firebase/Database' pod 'Firebase/Auth' pod 'Firebase/Storage' pod 'Firebase/Messaging' pod 'Firebase/Crash' pod 'TwitterKit' pod 'Fabric' pod 'Crashlytics' end I tried to uninstall - install cocoapods. I tried to deintegrate pod from

CocaPods importing AFNetworking but not OHAttributedLabel

限于喜欢 提交于 2019-12-10 15:15:49
问题 I am using CocaPods to add AFNetowrking and OHAttributedLabel into my project. I installed both of the libraries. AFNetworking is importing just fine in my project. But OHAttributedLabel isn't. I am not sure why! Podfile platform :ios, '6.0' pod 'AFNetworking' pod 'OHAttributedLabel' After installing both the libraries, when I import #import "AFHTTPClient.h" #import "AFJSONRequestOperation.h" #import "UIImageView+AFNetworking.h" I do not get any errors and everything works just fine but when

Xcode 9 - Alamofire Pods. Command /bin/sh failed with exit code 1

ぃ、小莉子 提交于 2019-12-10 14:45:52
问题 /Users/Alex/Library/Developer/Xcode/DerivedData/MyProject-ehabmnclpzlywhabrefntacibonm/Build/Intermediates.noindex/ArchiveIntermediates/Fuego/InstallationBuildProductsLocation/Applications//MyProject.app/Frameworks/Alamofire.framework: unknown error -1=ffffffffffffffff Command /bin/sh failed with exit code 1 I got this issue when I Archive my project. When I run app on simulator it works ok without such issue above. Also it works ok with Xcode 8 , but now when I try to Archive it on Xcode 9 I

Xcode 11 beta 4 build error: “Command CompileSwiftSources failed with a nonzero exit code” (error: unknown argument: '-Wno-shorten-64-to-32')

流过昼夜 提交于 2019-12-10 14:16:41
问题 A project that compiles fine in Xcode 11 beta 3, cannot compile in beta 4 with errors in the pods: <unknown>:0: error: unknown argument: '-Wno-shorten-64-to-32' Command CompileSwiftSources failed with a nonzero exit code The pod in question is Down, a Markdown library in Swift. This is very similar to this other SO question but with a different "unknown argument": error: unknown argument: '-Wno-shorten-64-to-32' Any suggestions? 回答1: Commenting out this line in the Down.podspec file: spec

Using cocoapods without use_frameworks! in swift

瘦欲@ 提交于 2019-12-10 13:43:49
问题 According to this tutorial, we should add use_frameworks! to Podfile in Swift project. But how to use third-party code in .m in the same project? One possible way is, Do NOT add use_frameworks! to Podfile Import header in ...-Bridging-Header.h Then, I can use third-party code in both .swift and .m file But when I try to import header in ...-Bridging-Header.h , it just throw *.h file not found error, how to fix this issue? 回答1: Past Up to CocoaPods 1.4.x (included), it was NOT possible to use