cocoapods

Using Carthage and CocoaPods in the same project

随声附和 提交于 2019-12-03 15:46:17
问题 I'm currently looking at a library which only supports Carthage as a package manager. The project I'm looking to integrate it with already has some CocoaPods dependencies. Has anybody tried using both of these managers at the same time? It strikes me as a bad idea, but I'd love to hear if this is the case in practice. 回答1: The main issue you will run into is that CocoaPods and Carthage are not aware of each other. This means that if a dependency managed by CocoaPods and a dependency by

How to add a private Spec Repo for using private pods?

大兔子大兔子 提交于 2019-12-03 15:38:33
I went through this tutorial http://guides.cocoapods.org/making/private-cocoapods.html but coun't get any hint like how to create it. Its just shows what would be the structure only. On the other side if i try to run pod install this came. Here i am trying to install sample-pod (Private pod) to one of my local project. siddarths-MacBook-P:PodInstallDemoApp siddarthchaturvedi$ pod install Analyzing dependencies Pre-downloading: `sample-pod` from `git@github.com:MY_COMAPNY_NAME/sample-pod.git` Enter passphrase for key '/Users/siddarthchaturvedi/.ssh/id_rsa': Enter passphrase for key '/Users

Building a Cocoapod with Swift and dependency on Objective-C framework

空扰寡人 提交于 2019-12-03 15:29:59
问题 I know there are already a few questions on this theme here on SO, but very few have accepted answers, and I don't think I have found the exact same problem as mine. I'm building a Swift pod, and in my code I rely on the Google Maps iOS SDK, which is bundled as a .framework file. The project builds OK in Xcode, however I have troubles publishing the lib to Cocoapods. I managed to have a Podspec file that almost validates using the pod lib lint command. However, now that I've added the Google

error using cocoapods “use_frameworks!” SWIFT

旧巷老猫 提交于 2019-12-03 15:22:11
问题 I had a clean swift project, using some cocoapods : Parse, AFNetworking and RESideMenu. I need to use STZPopupView pod, so I updated cocoapods with the last version: gem install cocoapods Then I relaunched it for my project: pod install Because of this 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. I updated my podfile adding "use_frameworks!" My podfile is now: #

Module file's deployment target is ios9.0 v9.0 with Xcode 7 / Swift 2

╄→尐↘猪︶ㄣ 提交于 2019-12-03 15:06:17
问题 I have a project using some modules that I have installed via cocoapods. One of them is Charts. In order to migrate my project from Swift 1.2 to Swift 2 I have gone through the wizard that comes up when first opening the project with Xcode 7. The Charts module is already available for Swift 2, and I have changed my Podfile to contain the following in order to upgrade to this newer and not yet officially released version: pod 'Charts', :git => 'https://github.com/danielgindi/ios-charts.git'

CocoaPods file reference is a member of multiple groups

醉酒当歌 提交于 2019-12-03 15:03:58
问题 I have an app with a share extension. My app depends on CocoaLumberjack/Default , and my share extension depends on CocoaLumberjack/Core . When I build with use_frameworks! , I get the following error: $ rm -rf Pods Podfile.lock; pod install Updating local specs repositories Analyzing dependencies Downloading dependencies Installing CocoaLumberjack (2.0.3) Generating Pods project 2015-10-28 10:46:04.015 ruby[53095:3440989] warning: The file reference for "CocoaLumberjack.framework" is a

Build target randomly added to Xcode scheme

孤人 提交于 2019-12-03 15:03:12
I am developing an iPhone app using Xcode 5 and CocoaPods. I have a scheme and target called Oahu that I run my tests against. Accordingly, I am not surprised to see my two test targets present to be built in the scheme's build phase. However, there is a fourth build target that cannot be removed: When I run tests, all four targets are built, and the test targets are run against the last, incorrect one, Ku . And after closing Xcode, deleting the contents of the DerivedData directory, and deleting all the *userdata files in my project directory ( find ./ | grep userdata | xargs rm -rf ), I

- Use the `$(inherited)` flag, or - Remove the build settings from the target. CocoaPod Swift3 pod update error

放肆的年华 提交于 2019-12-03 14:38:14
问题 I've been running into a couple of strange errors in terminal when updating cocoapods after updating a Switf2 project to Swift3. Here are the errors: [!] The `MyShowGuide [Debug]` target overrides the `FRAMEWORK_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-MyShowGuide/Pods-MyShowGuide.debug.xcconfig'. This can lead to problems with the CocoaPods installation - Use the `$(inherited)` flag, or - Remove the build settings from the target. [!] The `MyShowGuide [Release]`

How to bundle CocoaPods dependencies with Cordova Plugin?

心不动则不痛 提交于 2019-12-03 14:37:56
问题 I'm developing a Cordova plugin, and for the iOS platform, I'd like to incorporate a few existing (non-cordova-specific) Cocoapods. I haven't been able to find any info or examples on how to get this working, and I would've expected this to be a fairly common use-case. Note that I am not trying to use Cordova as a Cocoapod, for which there is a decent amount of information out there, but rather use Cocoapods from within the iOS platform of a Cordova plugin that I'm developing. Cordova's

CocoaPods CDN: trunk Repo update failed

这一生的挚爱 提交于 2019-12-03 14:35:08
问题 今天升级 CocoaPods 到 1.8.4 版本 但是随即问题就来了, 执行 pod install 下载库时,出现错误 解决 在 Podfile 加上 source ‘https://github.com/CocoaPods/Specs.git’, 就是不用新版本的 CDN 原本的 Podfile target 'XQWatchDemo' do use_frameworks! pod 'JPush' end 增加后的 Podfile source 'https://github.com/CocoaPods/Specs.git' target 'XQWatchDemo' do use_frameworks! pod 'JPush' end 来源: https://www.cnblogs.com/chglog/p/11800118.html