cocoapods

How to build an iOS framework with weak-linked CocoaPods libraries

可紊 提交于 2019-12-03 05:41:00
I am trying to build an iOS Framework (Test.framework) using the new template offered by Xcode 6 for creating Cocoa Touch Frameworks. The framework has different dependencies (as AFNetworking or FacebookSDK) specified in a Podfile. I don't want dependencies to be included in the framework, I just want to link against them. The problem is that when I build the framework, the libPods.a is linked and included. Q: How can I link against libPods.a library, but not include it in the framework? More details: I have read about weak linking: https://developer.apple.com/library/ios/documentation/MacOSX

Cocoapods OpenCV 2.4.10 Linker Error

三世轮回 提交于 2019-12-03 05:40:16
问题 I'm trying to build a simple project using OpenCV 2.4.10 but I get a bunch of errors like this: Undefined symbols for architecture x86_64: "_jpeg_free_large", referenced from: _free_pool in opencv2(jmemmgr.o) "_jpeg_free_small", referenced from: _free_pool in opencv2(jmemmgr.o) _self_destruct in opencv2(jmemmgr.o) Here is ViewController.m #import "ViewController.h" #import <opencv2/opencv.hpp> @interface ViewController () @end @implementation ViewController - (void)viewDidLoad { [super

Can't import dependency installed with Cocoapods

懵懂的女人 提交于 2019-12-03 05:40:13
I've installed FBSDK with Cocoapods but can't import it in my AppDelegate.swift file for some reason. The FBSDK kit appears in my Xcode project so I feel like it should be working. I'm not an iOS developer by any means, I'm just trying to write a simple native plugin for Flutter SDK. Anyone an idea? --Here is what the pod file looks like-- # Uncomment this line to define a global platform for your project # platform :ios, '9.0' if ENV['FLUTTER_FRAMEWORK_DIR'] == nil abort('Please set FLUTTER_FRAMEWORK_DIR to the directory containing Flutter.framework') end target 'Runner' do use_frameworks! #

What's the difference between 'pod spec lint' and 'pod lib lint'?

橙三吉。 提交于 2019-12-03 05:39:06
问题 Cocoapods provides two lint commands, spec lint and lib lint . What's the exact different between them, and in what scenario are they each used? I read the documentation (spec, lib), but I can not find the difference between them, and I do not understand why Cocoapods provides two command for the same thing. 回答1: TL;DR : pod lib lint = local, pod spec lint = local/remote You mentioned that you had read the docs but it's still unclear. I'll try to make it more clear : pod lib lint Will lint

This terminal won't let me run or install cocoa pods because I am on MacOS Catalina Beta?

六月ゝ 毕业季﹏ 提交于 2019-12-03 05:23:56
I am very interest to install one of the GitHub programs that request install cocoa pods. There is no problem with my terminal seem fine on the macOS normal version. I have one problem terminal is not install cocoa pods because I was on macOS Catalina beta? I did install pod 'Card' from Podfile is finished but after that Podfile is close. I am going text "pod install" on the terminal, then the only error that I get. The error said -bash: /usr/local/bin/pod: / System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby: bad interpreter: No such file or directory". Does someone know how

How can I load an image from Assets.car (compiled version of xcassets) within an NSBundle?

时光总嘲笑我的痴心妄想 提交于 2019-12-03 05:13:57
问题 In a nutshell : How can I load images from a compiled Assets.car within an NSBundle ? Full Version: I'm in the process of converting a suite of apps to use CocoaPods . Each app relies on a shared pod called Core . Core includes code files, xib files, and several xcasset files. Here's the relevant line from the Podspec for Core that creates the resource bundle: s.resource_bundles = {'CoreResources' => ['Core/Resources/*']} The Podspec passes pod spec lint , and main project that relies on it

How can I open Podfile for editing [closed]

空扰寡人 提交于 2019-12-03 05:11:06
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . I used CocoaPods with my app I noticed I can't open pod file and the file turn to exec file like the image down, I need to edit it to add new libraries. 回答1: Open the Podfile with TextEdit use terminal $ cd "your_project_location" $ open -a TextEdit Podfile 回答2: I think you will

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

那年仲夏 提交于 2019-12-03 05:07:22
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-Maps-iOS-SDK pod as a dependency in the Podspec file, it fails with the following message: $ pod lib

How to install specific pod without touching other dependencies

♀尐吖头ヾ 提交于 2019-12-03 04:48:24
问题 I want to install specific dependency using cocoapods . if I execute pod install , other dependencies are getting updated before installing my newly added dependency. I just want to install specific pod without touching any others. And I know deleting , updating any dependency also updates others. Is there any way to solve this problem? Actually my problem is when I myself modify some dependency (AFNetworking for example) and run pod install it reverts back to its original version. But I don

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

不想你离开。 提交于 2019-12-03 04:46:54
I have a project using some modules that I have installed via cocoapods. One of them is Charts ( https://github.com/danielgindi/ios-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' Now the project workspace opens fine in XCode except one