cocoapods

CocoaPods Installation Failure (Unable to resolve dependencies)

て烟熏妆下的殇ゞ 提交于 2019-12-22 08:23:07
问题 I have a problem while installing CocoaPods on MacOS X 10.3. The first try fails with a DependencyError for nap. I install nap and try again with the same result. Uninstalling and reinstalling doesn't help. andreass-mbp:~ AndreasB$ sudo gem uninstall cocoapods Password: andreass-mbp:~ AndreasB$ sudo gem uninstall nap Successfully uninstalled nap-1.0.0 andreass-mbp:~ AndreasB$ sudo gem install nap Fetching: nap-1.0.0.gem (100%) Successfully installed nap-1.0.0 Parsing documentation for nap-1.0

Alamofire Swift 2 - cannot submit for beta testing (Xcode 7 GM)

假装没事ソ 提交于 2019-12-22 07:04:48
问题 I have followed the instructions on installing the swift2 branch of Alamofire with cocoa pods. The app works well in the simulator, however, when I archive it for submission with Xcode 7 GM I receive an email with an error: "The bundle contains an invalid implementation of Swift. The app may have been built or signed with non-compliant or pre-release tools" This issue definitely relates to the framework as without it I am able to submit for beta testing with the same version of Xcode. I have

Development CocoaPod for both iOS and OSX

六眼飞鱼酱① 提交于 2019-12-22 05:25:14
问题 I've got a CocoaPod published for iOS and want to make it available on OS X as well. I've fixed up my PodSpec so that it's ready for both iOS and Mac OS X: Pod::Spec.new do |s| s.name = "EveryoneAPI" s.version = "0.9.5" s.summary = "An objective-c wrapper for EveryoneAPI.com's API" s.description = <<-DESC To retrieve all information for EveryoneAPI use the following: EveryoneAPI *everyoneAPI = [[EveryoneAPI alloc] initWithAccountSID:@"ACb8444c3013dc40518e46b48c91f82ba0" withAuthToken:@

Cocoapods in subproject

泄露秘密 提交于 2019-12-22 04:44:22
问题 I have a project with a subproject. Both the subproject and the main project must use Cocoapods to integrate a library which is seemingly impossible to integrate without Cocoapods. So I have Cocoapods set up for both the Main project and its subproject. The subproject builds in its generated workspace, but compiling the main project produces the following error: ld: library not found for -lPods-Subproject name-Library. The only idea I have right now is that I should somehow get the subproject

FIRApp Linker Error [“_OBJC_CLASS_$_FIRApp”]

浪尽此生 提交于 2019-12-22 04:26:31
问题 I have scoured SO and Google but can't find an answer that works. I have used the new Firebase Cocoapod on multiple projects but now, when adding it to a different project I am getting the following error. I am using Xcode 7.3.1 with cocoapods 1.0.1. Here is my podfile: Any help is greatly appreciated! 回答1: Go to Build Settings > Other Linker Flags > on a new line $(inherited) . Do a Cmd+Ctrl+K for a clean, and then build. 回答2: Uncomment this line to define a global platform for your project

What is the best way to get a specific CocoaPod's version at runtime?

半城伤御伤魂 提交于 2019-12-22 04:15:14
问题 I'm currently trying to create a way to log the current version of my Pod at runtime, there are a few ways that come to mind, but I wanted to ask here to make sure i'm not missing something obvious. What I've done so far: Found out that Cocoapods generates an myPod-umbrella.h header file that exports the following : FOUNDATION_EXPORT double myPodVersionNumber; FOUNDATION_EXPORT const unsigned char myPodVersionString[]; They Only myPodVersionNumber seems to be accessible, and it always has 1.0

Failed to demangle superclass with Cocoapods in Xcode 10.2

孤者浪人 提交于 2019-12-22 03:20:58
问题 After moving to Xcode 10.2, when running my app I get a crash with the error failed to demangle superclass of MyClass from mangled name MySuperClass . The crash occurs when I try to create an instance of MyClass. I am using CocoaPods 1.6.1 and have not yet upgraded to Swift 5. The class in question is defined inside a Pod, and is a subclass of a class defined a different Pod (listed as a sub dependency of the first Pod). Adding to the complexity (unsure if it is related) is that the super

Cannot find module FBSDKCoreKit Cocoapods

核能气质少年 提交于 2019-12-21 18:20:01
问题 I'm trying to integrate facebook into my app using CocoaPods, using the use_frameworks! tag, and according to facebook's instructions here, also included the pod bolts. When I try use import FBSDKCoreKit in my appdelegate, I get a no such module 'FBSDKCoreKit error. I've included my podfile below: source 'https://github.com/CocoaPods/Specs.git' platform :ios, '9.2' use_frameworks! pod 'Bolts' pod 'Alamofire', '~> 3.0' pod 'FBSDKCoreKit' pod 'FBSDKShareKit' pod 'FBSDKLoginKit' Additionally, in

possible to have a CocoaPods have a search path that includes the main app

空扰寡人 提交于 2019-12-21 12:41:59
问题 This is my first time writing my own Cocoapod so this might be a really simple quedstion but .... I am trying to use Cocoapods to distribute common code for a series of apps used within our company (the CocoaPod is called CommonHex with a prefix of HEX so HEXItem.h/m). However, we have a config file specific to each app called HOSTConfig.h/m. Is there any way to access this HOSTConfig.h/m from within our CommonHex pod? It would seem like I should bOe able to have for example a config file

Is the heuristic CocoaPods uses for the “pod try” command documented anywhere?

a 夏天 提交于 2019-12-21 09:36:45
问题 In CocoaPods v.0.29, the 'pod try' command was added (see http://blog.cocoapods.org/CocoaPods-0.29/). From the documentation (bold emphasis mine): In other words the command automates the following steps: Checkout the source of the Pod in a temporary directory. Search for any project looking like a demo project using some simple heuristics . Install any CocoaPods dependencies if needed by the located project. Open the workspace/project in Xcode. I've searched both Google and StackOverflow and