cocoapods

Any way to clean only current Xcode project but not Cocoapods dependencies?

Deadly 提交于 2019-12-29 06:31:29
问题 Relatively frequently I need to clean & rebuild because Swift starts to miss things up. But doing so, I am rebuilding Cocoapods dependencies, to no avail. Can I clean only the project, not the whole workspace? Thanks, Zsolt 回答1: Go to Manage schemas -> Click Edit button for your active schema -> Select Build target -> Uncheck the "Find Implicit dependencies" checkbox . 回答2: I tested the plugin cocoapods-binary and it is working pretty well: Plugin website: https://github.com/leavez/cocoapods

Duplicate interface definition for class 'GTMHTTPUploadFetcher'

你离开我真会死。 提交于 2019-12-28 17:57:05
问题 I plan to use Google Drive API in my Swift project. I'm trying to add the Drive SDK via CocoaPods (v0.39.0). Below is my Podfile. platform :ios, '8.0' use_frameworks! pod 'Google-API-Client/Drive' I have the use_frameworks! flag added so that CocoaPods can convert Objective-C pods to Swift frameworks instead of static libraries. Pod installation is successful. However when I build the project, I get the following error. Duplicate interface definition for class 'GTMHTTPUploadFetcher' Deleting

ld: framework not found Pods

久未见 提交于 2019-12-28 02:22:05
问题 I'm trying to add a framework to my IOS project but when I build I always got the same message : ld: framework not found Pods clang: error: linker command failed with exit code 1 (use -v to see invocation) I tried to remove my Pods directory and then run pod install I open the .xcworkspace like it is written in the logs on the pod install, I clean the project on xcode and then try to build but it won't works.. My podfile looks like this : xcodeproj '/Users/guillaume/project/Mobile/iOS/FoodPin

Remove or uninstall library previously added : cocoapods

£可爱£侵袭症+ 提交于 2019-12-27 11:06:42
问题 I added an external framework via cocoapods into my iOS application. How can i remove that library from the project? 回答1: Since the accepted answer's side effects have been removed by a script written by Kyle Fuller - deintegrate, I'll post the proper workflow here: Install clean: $ sudo gem install cocoapods-clean Run deintegrate in the folder of the project: $ pod deintegrate Clean: $ pod clean Modify your podfile (delete the lines with the pods you don't want to use anymore) and run: $ pod

ios开发之--/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file

ε祈祈猫儿з 提交于 2019-12-27 10:50:14
有一段时间没有用pod了,突然报了个这种错误,查了下,原来是没有更新pod, 1, 更新gem:sudo gem update --system 2, 查看gem源是否是最新的:gem sources -l 3, 升级cocoapods:sudo gem install -n /usr/local/bin cocoapods --pre 4, 查看升级后的cocoapods版本:pod --version 我是直接更新了下,然后就可以使用了,至于用不用更换镜像,这个我没尝试过,上面的步骤已经解决了我的问题,亲测有效! 我把其他的步骤也列下: 1、更新gem:sudo gem update --system 2、删除gem源:gem sources --remove https://ruby.taobao.org/ 3、修改gem源:gem sources -a https://gems.ruby-china.org 4、查看gem源是否是最新的:gem sources -l 5、升级cocoapods:sudo gem install -n /usr/local/bin cocoapods --pre 6、查看升级后的cocoapods版本:pod --version 来源: https://www.cnblogs.com/hero11223/p/9000228.html

library not found for -lPods

懵懂的女人 提交于 2019-12-27 10:35:37
问题 I got an error when archiving a project. This is my environment. Mac OS Lion Xcode 4.3.1 iOS SDK 5.1 The project deployment target is: IPHONEOS_DEPLOYMENT_TARGET 3.2 The error shows: ld: library not found for -lPods clang: error: linker command failed with exit code 1 (use -v to see invocation) I guess Pods is CocoaPods that I used to manage XCode project dependencies. https://github.com/CocoaPods/CocoaPods This is my Podfile platform :ios dependency 'libPusher', '1.1' I am not sure what the

library not found for -lPods

懵懂的女人 提交于 2019-12-27 10:35:34
问题 I got an error when archiving a project. This is my environment. Mac OS Lion Xcode 4.3.1 iOS SDK 5.1 The project deployment target is: IPHONEOS_DEPLOYMENT_TARGET 3.2 The error shows: ld: library not found for -lPods clang: error: linker command failed with exit code 1 (use -v to see invocation) I guess Pods is CocoaPods that I used to manage XCode project dependencies. https://github.com/CocoaPods/CocoaPods This is my Podfile platform :ios dependency 'libPusher', '1.1' I am not sure what the

Mac OS 10.12系统cocoapods安装

Deadly 提交于 2019-12-26 00:15:00
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 从git上下载的项目运行后: The file “Pods.xcconfig” couldn’t be opened because there is no such file. 1、检查当前ruby版本 $gem sources - 成功后提示: *** CURRENT SOURCES *** https://ruby.taobao.org/ 否则,移除现有的ruby:$gem sources --remove https://rubygems.org/;添加使用淘宝镜像:$gem sources -a https://ruby.taobao.org/ 2、开始安装cocoapods $sudo gem install cocoapods 运行后出现错误 2.1检查ruby版本 $ruby -v ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin15] 2.2需要升级ruby; 查看目前所有ruby版本:$rvm list known 如果提示command not found $curl -L get.rvm.io | bash -s stable 请先安装rvm:rvm install 2.2.2 ;如果不成功

How do I tell my app where my Pod header files are?

一世执手 提交于 2019-12-25 18:17:00
问题 The Question How do I tell my app where my Pod header files are. The Setting I inherited an ios app from someone else. I wanted to add locksmith to the app for passwords. The app already had pods, but pod install wasnt working so I gem installed cocoapods and it worked. Then I pod installed locksmith and it worked, until I ran my app again. The Errors Now I get these errors on pods that I never messed with. In my Bridge.h file this first line gives an error #import <TPKeyboardAvoiding

Getting error: Use of unresolved identifier “LinkingObjects”

旧时模样 提交于 2019-12-25 17:17:24
问题 I am getting the following error in my Realm Swift (1.03.1) schema after updating to Cocoapods 1.0.0. Error: Use of unresolved identifier "LinkingObjects" On sample below: import Foundation import RealmSwift class Metric: Object { dynamic var UUID: String = "" let linkingDimensions = LinkingObjects(fromType: Dimension.self, property: "metric") dynamic var createdAt: NSDate = NSDate() dynamic var createdBy: Int = CreatedBy.System.rawValue override static func primaryKey() -> String? { return