cocoapods

Firebase framework not found

我是研究僧i 提交于 2019-11-30 04:50:50
问题 I've been trying to migrate my project to cocoapods. I feel like i'm almost there but I'm stuck in: ld: framework not found Firebase for architecture x86_64 error: linker command failed with exit code 1 (use -v to see invocation) I'm trying to compile using my "app.xcworkspace" and the project looks like this: Also: I've tried starting other projects and firebase works there so it's a problem with THIS project settings... Any idea? My podfile looks like this: # Uncomment this line to define a

DEBUG preprocessor macro not defined for CocoaPods targets

烂漫一生 提交于 2019-11-30 04:47:31
I'm having issues with a pod called DCIntrospect-ARC which should only work in DEBUG mode. It checks if the DEBUG macro is defined before running. However, it is not defined in the CocoaPods target and even though I am running in debug mode in Xcode it fails to run because the DEBUG macro is not defined. I can define the DEBUG macro in the podspec using s.xcconfig = { "GCC_PREPROCESSOR_DEFINITIONS" => '$(inherited) DEBUG=1' } but this defined DEBUG for all build configurations and not only the DEBUG configuration. Is this a CocoaPods issue? Shouldn't the DEBUG macro generally be defined for

Pods was rejected as an implicit dependency for 'libPods.a' because its architectures 'XXX' didn't contain all required architectures

牧云@^-^@ 提交于 2019-11-30 04:11:44
A friend updated Cocoapods in our project. When I pulled the latest stuff from git I got the following error: Pods was rejected as an implicit dependency for 'libPods.a' because its architectures 'x86_64' didn't contain all required architectures 'i386' This results in ld: library not found for -lPods-___PODLIBRARY____ clang: error: linker command failed with exit code 1 (use -v to see invocation) I have searched around for hours now trying to find it. The most common fixes I've tried are.. Deleted derived data Delete build data Delete pods, and reinstalled with 'pod install' Clean project All

ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension

我的梦境 提交于 2019-11-30 03:42:24
I am trying to install cocoapods to my macbook pro running with OSX 10.9.1 (new mavericks) and after type gem install cocoapods I get the following error: Building native extensions. This could take a while... ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension. "/usr/local/rvm/rubies/ruby-1.9.3-p194/bin/ruby" -rubygems /usr/local/rvm/gems/ruby-1.9.3-p194/gems/rake-10.1.1/bin/rake RUBYARCHDIR=/Users/rangreenberg/gems/gems/xcodeproj-0.14.1/ext RUBYLIBDIR=/Users/rangreenberg/gems/gems/xcodeproj-0.14.1/ext /usr/local/rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb

Cocoapods 1.0: Header files not found

强颜欢笑 提交于 2019-11-30 03:18:28
I just tried to update from cocoapods 0.39.x to Cocoapods 1.0. Running pod install from the terminal causes no warnings. Everything seems normal. However, when I try to build my project it outputs: AFNetworking/AFNetworking.h file not found My pod file looks like this (there are a few more dependencies but I only listed a part of it): platform :ios, '8.0' use_frameworks! source 'https://github.com/CocoaPods/Specs.git' target 'MyApp' do pod 'AFNetworking', '~> 2.6' pod 'BEMCheckBox' pod 'ActionSheetPicker-3.0', '~> 2.0.5' pod 'SCLAlertView' pod 'DZNEmptyDataSet' pod 'SSZipArchive' end target

dyld: Library not loaded: @rpath/Alamofire.framework/Versions/A/Alamofire Reason: image not found

家住魔仙堡 提交于 2019-11-30 03:01:54
I'm using CocoaPods v0.36 with my Swift project and the following pods: Alamofire , CocoaLumberjack , SwiftyJSON . Everything was fine till I used my Developer ID. Compiler started to have problems to compile the project, after some fixes and updates for CocoaPods my project compiles but at runtime I get the following error: dyld: Library not loaded: @rpath/Alamofire.framework/Versions/A/Alamofire Referenced from: /Users/Ivan/Library/Developer/Xcode/DerivedData/myApp-bsxfcnwqpaxnzbhencwzteasshzf/Build/Products/Debug/myApp.app/Contents/MacOS/myApp Reason: image not found I read different posts

Cocoapods + Cannot load underlying module for 'x'

大憨熊 提交于 2019-11-30 02:32:44
I am running XCode 7, Swift 2.0, iOS 9. I want to install Alamofire in my project using Cocoapods. I have done the following: gem install cocoapods pod setup pod init Updated Podfile to: # Uncomment this line to define a global platform for your project # platform :ios, '9.0' use_frameworks! target 'JSONeg' do pod 'Alamofire', :branch => 'swift-2' end Then I installed the pod: pod install And I added the following to ViewController.swift import Alamofire This raises the following error: Cannot load underlying module for 'Alamofire' I tested with another pod and it raised the same error, so I

Localization and CocoaPods

落花浮王杯 提交于 2019-11-30 01:52:10
I have a project that uses CocoaPods. As a result, I have a workspace which contains two projects: mine and Pods. Pods contains code which I'd like to localize, and I've created .strings files in Pod. However, NSLocalizedString fails to load these strings. I suspect this happens because the .strings file is not in the main bundle, but there's no Pod bundle, because it is compiled into a static library. Is there a better way to localize code in a CocoaPods project than in my main project? NSLocalizedString just invokes NSBundle's localizedStringForKey:value:table: so I wrote a NSBundle category

Add run script build phase to Xcode project from podspec

自古美人都是妖i 提交于 2019-11-30 01:39:58
I'm trying to write Cocoapods specification for my library which must modify Xcode project and add "Run Script Build Phase" to project's target. I thought I can use post_install hook. But " pod spec lint " says that this hook is deprecated: - WARN | [iOS] The post install hook of the specification DSL has been deprecated, use the `resource_bundles` or the `prepare_command` attributes. I have no idea how I can replace post_install hook with *resource_bundles* or *prepare_command*. Who knows any other approach to solve my problem? Is it possible? And another problem is how to modify Xcode

CocoaPods详解之----使用篇

邮差的信 提交于 2019-11-30 01:37:40
一、什么是CocoaPods 1、为什么需要CocoaPods 在进行iOS开发的时候,总免不了使用第三方的开源库,比如SBJson、AFNetworking、Reachability等等。使用这些库的时候通常需要: 下载开源库的源代码并引入工程 向工程中添加开源库使用到的framework 解决开源库和开源库以及开源库和工程之间的依赖关系、检查重复添加的framework等问题 如果开源库有更新的时候,还需要将工程中使用的开源库删除,重新执行前面的三个步骤,顿时头都大了。。。 自从有了CocoaPods以后,这些繁杂的工作就不再需要我们亲力亲为了,只需要我们做好少量的配置工作,CocoaPods会为我们做好一切! 2、什么是CocoaPods CocoaPods是一个用来帮助我们管理第三方依赖库的工具 。它可以解决库与库之间的依赖关系,下载库的源代码,同时通过创建一个Xcode的workspace来将这些第三方库和我们的工程连接起来,供我们开发使用。 使用CocoaPods的目的是让我们能自动化的、集中的、直观的管理第三方开源库。 二、安装CocoaPods 1、安装 CocoaPods是用Ruby实现的,要想使用它首先需要有Ruby的环境。幸运的是OS X系统默认的已经可以运行Ruby了,因此我们只需要执行以下命令: $ sudo gem install cocoapods