cocoapods

How to bundle CocoaPods dependencies with Cordova Plugin?

浪尽此生 提交于 2019-12-03 04:21:14
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 plugin.xml generally needs to list all project dependencies to bundle things correctly. Does anyone know of

How to use a specific version of CocoaPods

人盡茶涼 提交于 2019-12-03 04:19:32
问题 Is it possible to somehow specific the version of CocoaPods I'd like to use when upgrading or installing a Podfile? I've encountered several times where Podfiles work correctly with one version of CocoaPods but not with others. For example, the syntax I'm looking for is like the following: pod -v 0.34 install 回答1: Since CocoaPods is installed through RubyGems you can use their mechanisms for doing this. As outlined here you can do this: pod _0.34.0_ install You can verify this is working with

Creating CocoaPod for existing GitHub repo

可紊 提交于 2019-12-03 03:37:11
Recently I've created small iOS class and I would like to use it with CocoaPods. By now I have added it to the GitHub and I have followed this tutorial which explains the process of creating CocoaPod but I have stuck with this one: "Adding the Podspec to the CocoaPods Specs Repo". Can someone explain following steps, like how to fork the repository and issue a pull request. I know there are a lot of similar answers on Google but I would be very appreciative if someone can share it's experience with creating CocoaPods. Also is there an option for checking what will be final result when I add

Install old cocoapods?

大兔子大兔子 提交于 2019-12-03 03:32:52
My entire project is wack currently because none of the dependencies are compliant with cocoapods 1.0. Not only are millions of Podspecs not working, there are also multiple other issues which used to be warnings and are now build halting errors... so frustrating. I have tried removing ~/.cocoapods , sudo gem uninstall cocoapods and sudo gem install cocoapods -v 0.39.0 and the same errors are occurring. It looks like it's installing it anyway or something? cocoapods (0.39.0) cocoapods-core (1.0.0, 0.39.0) cocoapods-deintegrate (1.0.0) cocoapods-downloader (1.0.0, 0.9.3) cocoapods-plugins (1.0

How to mix Swift and Objective-C in a pod lib?

非 Y 不嫁゛ 提交于 2019-12-03 03:28:37
I have created a new swift lib pod using the command : pod lib create MixSwiftObjectiveC found from https://guides.cocoapods.org/making/using-pod-lib-create.html In this pod lib I need to use a code that's written in Objective-C. If I would have a separate "normal" project I would just include the import in the header file …-Bridging-Header.h. Is there an equivalent for a pod lib? Can Swift and Objective-C be mixed inside a pod lib? As an example I've created this github: https://github.com/crarau/MixSwiftObjectiveC In order to run the example you'll need XCode Version 7.0 beta 6 and Swift 2.0

Building a static library with cocoapods

感情迁移 提交于 2019-12-03 03:17:48
问题 I am trying to build a static library that has different dependencies (AFNetworking for example) specified in a Podfile. I don't want the dependencies to be included in the final static library (call libMyProject.a), I just want to link against them and then create a MyProject.Podspec file where I can put the same dependencies. The problem is that when I build libMyProject.a the libPods.a is linked and included, so that if I distribute libMyProject.a and other people integrates it in a

Podspec Link Binary Library

时间秒杀一切 提交于 2019-12-03 03:17:43
I'm attempting to create a Podspec for: https://github.com/sincerely/shiplib-ios-framework Pod Lint passes & the files are being added to the project but it does not link the binary "Sincerely" file. The sample project build fails due to missing files when importing via: <Sincerely/filename.h> Pod::Spec.new do |s| s.name = 'ShipLib' s.version = '1.4' ... s.source = { :git => 'https://github.com/sincerely/shiplib-ios-framework.git', :tag => 's.version.to_s' } s.library = 'Sincerely' s.source_files = 'Sincerely.framework','Sincerely.framework/Headers/*.h' s.resources = 'Sincerely.framework

Include pods in main target and not in WatchKit extension

痴心易碎 提交于 2019-12-03 03:12:43
I added a WatchKit extension to my current project. The project uses Cocoapods 0.36.1 to add some frameworks, but now I want to exclude some pods from the WatchKit extension project. The WatchKit extension project doesn't need a lot of frameworks I use in my normal target, but I can't get Cocoapods to work correct after altering my Podfile. I use use_frameworks! in my Podfile, but after running pod install I get the following messages: [!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to

ERROR ITMS-90685: “CFBundleIdentifier Collision. There is more than one bundle”

匿名 (未验证) 提交于 2019-12-03 03:06:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When I am try to submit my app to app store, I am getting the error: ERROR ITMS-90685 : "CFBundleIdentifier Collision. There is more than one bundle with the CFBundleIdentifier value com.companyname.projectName under the application ProjectName.app" Can any one help me? 回答1: Have you got an App Extension in your app? I had this error because of Cocoapods embedded frameworks inside App Extension folder. You need to remove build phase '[CP] Embed Pods Frameworks' from Extension target. I wrote such ruby script for that: # remove.rb require

How to structure a Xcode project with Frameworks, Extensions and CocoaPods

≡放荡痞女 提交于 2019-12-03 02:59:15
问题 NB: Here is a more abstract and simplified sub-set of this question. With the addition of Touch Frameworks, Extensions and the Apple Watch Xcode 6 projects and workspaces are getting more and more complex. If you add CocoaPods into this mix things start to get almost unmanageable. How would I structure an Xcode project/Workspace with the following targets and dependancies? (Assumptions: I am using Git for all the components, I am using CocoaPods for all third party code, I am using Xcode 6).