cocoapods

Unable to install Cocoapods on Yosemite DP 7

醉酒当歌 提交于 2019-12-01 07:34:17
I am having trouble installing Cocoapods on Yosemite DP 7 installed on a separate partition. I already attempted following the instructions found on Cocoapods with Xcode 6 and 10.10 Yosemite and in the issue( https://github.com/CocoaPods/CocoaPods/issues/2219 ) closed due to the same solution proposed on the Stack Overflow link. I continue to get the following error: Rasmuss-MacBook-Pro:~ rasmusth$ sudo gem install cocoapods Building native extensions. This could take a while... ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension. "/System/Library/Frameworks/Ruby

Code coverage with cocoapods library - iOS Unit Test

允我心安 提交于 2019-12-01 07:07:57
问题 In Xcode 7, the library for cocoapods library with exclude for the code coverage. But In Xcode 8, the library will include for code coverage. Can I had anyway to exclude the library in the code coverage? Example: Install pod 'TPKeyboardAvoiding' TPKeyboardAvoidingScrollView.m is include in the code coverage. 回答1: You should disable the Code Coverage for the Targets that you don't want to be covered. If you want all of your pods to not be included in the code coverage you can add on your

iOS App failing when running UI Test in XCode 7.1.1

落花浮王杯 提交于 2019-12-01 06:55:50
I'm creating my first UI Test for my iOS app. Every time I run the test I get the error: UI Testing Failure - App accessibility isn't loaded (please see attached image) plus an error message in the debug console: dyld: Library not loaded: @rpath/RestKit.framework/RestKit Referenced from: /Users/Claus/Library/Developer/CoreSimulator/Devices/<code>/data/Containers/Bundle/Application/<code>/MyApp.app/MyApp Reason: image not found I would like to point out that the RestKit (installed using CocoaPods) library doesn't give any problem when I build and run my app on the simulator or real device. I

Duplicate target after “pod install”

落花浮王杯 提交于 2019-12-01 06:49:16
问题 After I added new dependency to my project and run pod install , I have duplicate target in my workspace(.xcworkspace) as below: And this is the pod file structure: platform :ios, '8.0' use_frameworks! pod 'AFNetworking', '~> 2.6' pod 'Fabric' pod 'Crashlytics' pod 'SocketRocket' I restart the project and also Xcode, but it does not help. What is the reason and how can I solve the problem? 回答1: First, try to wrap your pods with target specification, like this: target 'TargetName' do pod

How to fix framework with conflicting names in Cocoapods?

喜你入骨 提交于 2019-12-01 06:44:24
问题 I have created two private pods which both relies on a same vendor framework. When I add the pods into my main project I get below error: target has frameworks with conflicting names: FirebaseAnalytics, FirebaseInstanceID, GoogleInterchangeUtilities, GoogleSymbolUtilities, and GoogleUtilities. I tried with both cocoapods 0.39 and version 1.0.1. 回答1: This is a bug in Cocoapod 1.0.1. To solve this untill they fix beta, I used: pod _1.0.0_ install 来源: https://stackoverflow.com/questions/38453410

How to add a CocoaPod framework to Xcode 8 Playground

跟風遠走 提交于 2019-12-01 06:37:47
I tried to add some pods to the Playground within an Xcode project. Unfortunately, the only scope supported is targets since the update, and link_with is no longer supported. ERROR: [!] Invalid Podfile file: [!] The specification of link_with in the Podfile is now unsupported, please use target blocks instead. When I use target blocks, I get this error: [!] Unable to find a target named MyPlayground , did find Target_1 , Target_2 OR: [!] Unable to find a target named MyPlayground.playground , did find Target_1 , Target_2 Also tried adding it within Target_1 target scope: ERROR [!] Invalid

如何在CocoaPods中添加自定义的库

孤人 提交于 2019-12-01 06:37:40
CocoaPods命令介绍 在 上一篇文章 中,已经介绍过CocoaPods的几条基本命令。 pod setup 用于初始化本地第三方库的Spec描述文件,所有的spec文件存都存放在 ~/.cocoapods 目录中。 pod install 用来安装或删除Podfile文件声明中的第三方依赖库。下面继续介绍其它一些命令。 $ pod list # 列出所有可用的第三方库 复制代码 $ pod search query 复制代码 搜索名称包含 query 的类库, query 可以替换为你想搜索的名字(如json),不区分大小写。也可以使用 pod search --full query 命令作更仔细的搜索,该命令不但搜索类库的名称,同时还搜索类库的描述文本,所以搜索速度也相对慢一些。 pod list 和 pod search 命令只搜索存在于本地 ~/.cocoapods 文件夹的所有第三方库,并不会连接到远程服务器。如果你要从服务器更新本地第三方库的描述文件,可以: $ pod repo update master 创建自己项目的Podspec描述文件 复制代码 CocoaPods还是一个相对年轻的项目,所有的项目的Podspec文件都托管在 https://github.com/CocoaPods/Specs 。可能有一些库并未收录其中

How to add Objective-C Bridging Header entry?

隐身守侯 提交于 2019-12-01 06:30:52
问题 I have a Swift project and have add a cocoapod, which is written in Objective-C. It has header and implementation files. From what I understand, to use/import these files into my Swift files, I need to add a bridging file. I found this site describing how to do this manually, since the Objective-C files are already part of my project (from the cocoapod). http://www.learnswiftonline.com/getting-started/adding-swift-bridging-header/ 1.) Navigate to your project build settings and find the

构建私有库

╄→гoц情女王★ 提交于 2019-12-01 06:08:52
构建私有库 索引库:存放索引地方 私有库:存放代码地方 ##1.构建索引库 1.1 构建Cocoapods管理 1.1.1 创建spec文件【记录私有库各个版本信息】 pod spec create 私有库文件名称 1.1.2 配置spec文件 # ――― Spec Metadata 元数据信息 s.name = "tztPodAPI" s.version = "0.0.1"#tag版本号 s.summary = "A short description of tztPodAPI."#概述信息 s.description = <<-DESC DESC #DESC中间添加描述信息 s.homepage = "http://EXAMPLE/tztPodAPI" # ――― Spec License 证书类型 s.license = "MIT (example)" # s.license = { :type => "MIT", :file => "FILE_LICENSE" } #――― Author Metadata 作者信息 s.author = { "xxxxxx" => "xxxxx@xxx.com" } #――― Platform Specifics 平台设置 s.platform = :ios, "8.0" #――― Source Location 代码路径 s.source

add a User Header Search Path to a podspec

南楼画角 提交于 2019-12-01 05:55:32
This is a follow-up to this question: possible to have a CocoaPods have a search path that includes the main app I'd like to add add a User Header Search Path to my .podspec so that it is added when I compile but I'm not sure how to do this so that it's effect is like this: Add this code to your .podspec file: s.xcconfig = { 'USER_HEADER_SEARCH_PATHS' => '"${PROJECT_DIR}/.."' } To set path recursive : s.xcconfig = { 'USER_HEADER_SEARCH_PATHS' => '"${PROJECT_DIR}/.."/**' } I did Google and this issue on GitHub helped me. 来源: https://stackoverflow.com/questions/28425765/add-a-user-header-search