cocoapods

Error using Pod Install command on Podfile in Terminal

不想你离开。 提交于 2019-12-17 18:25:38
问题 I have installed Cocoapods, and created a Podfile using Atom containing the following lines: pod ‘Parse’, ‘~> 1.7.1′ pod ‘ParseUI’, ‘~> 1.1.3′ Upon placing this file into my Xcode Project Root Directory, and running 'pod install' in Terminal. The following is shown: [!] Your Podfile has had smart quotes sanitised. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes in your editor of choice. /Library/Ruby

Prevent duplicate symbols when building static library with Cocoapods

南楼画角 提交于 2019-12-17 17:34:22
问题 While I've seen many questions dealing with Cocoapods and static libraries, most of them seem to assume you'll eventually have a single workspace with your static library and end target app. In my scenario, I am building a static library. More specifically, I'm hacking a MyLib.framework for users to consume. I'd really like to manage MyLib.framework's dependencies with Cocoapods, but it creates many pain points when consumers of my library also use Cocoapods. For example, my library has an

Updating to latest version of CocoaPods?

半世苍凉 提交于 2019-12-17 17:28:17
问题 I'm having some issues installing Alamofire 4.0 into my project. I've got the latest version of Xcode , running Swift 3 , and when I try to install alamofire I'm getting like 800 compiler errors. Apparently CocoaPods 1.1.0+ is required to build Alamofire 4.0.0+ I looked at the version of CocoaPods I have in terminal and it says I'm at 1.0.1. Running an update didn't work I guess because CocoaPods 1.1 is in beta. So I'm not exactly sure how to update it up to where I'm good to go. Unless being

How to update a single pod without touching other dependencies

冷暖自知 提交于 2019-12-17 17:21:34
问题 I understand that the following command will update a single pod: pod update <podname> . However this also updates the dependencies of other pods (pods that were not included in the update command) that you have previously installed. Is there a way to update a single pod and leave all other dependencies alone? 回答1: Make sure you have the latest version of CocoaPods installed. $ pod update POD was introduced recently. See this issue thread for more information: $ pod update When you run pod

Bridge Google Drive API to Swift

大兔子大兔子 提交于 2019-12-17 16:59:53
问题 From a previously removed post: I am struggling to get the Google Drive API to work with Swift, and hoping someone has a suggestion. Here is where I am at so far: I have the Google Drive API installed and working in an Objective-C ... I am trying to reproduce this example from Google in Swift, but import GTLDrive returns an error in Xcode: No such module 'GTLDrive. I am unable to use GTLServiceDrive from the Swift classes. Which combination of CocoaPod + bridging header should I use? 回答1: You

Xcode - ld: library not found for -lPods

时间秒杀一切 提交于 2019-12-17 15:09:08
问题 I get these errors when I try to build an iOS application. ld: library not found for -lPods clang: error: linker command failed with exit code 1 (use -v to see invocation) Ld /Users/Markus/Library/Developer/Xcode/DerivedData/Totalbox-clpeqwpfvwuhpleeejnzlavncnvj/Build/Products/Debug-iphonesimulator/Totalbox.app/Totalbox normal x86_64 cd /Users/Markus/Development/xcode/totalbox-ios export IPHONEOS_DEPLOYMENT_TARGET=7.1 export PATH="/Applications/Xcode.app/Contents/Developer/Platforms

CocoaPods and GitHub forks

时光怂恿深爱的人放手 提交于 2019-12-17 15:03:31
问题 This is my first time forking a GitHub project, and I'm not too competent with CocoaPods either, so please bear with me. Basically, I forked a project on GitHub using the following in my Podfile : pod 'REActivityViewController', '~> 1.6.7', :git => 'https://github.com/<username>/REActivityViewController.git' I then made some changes to the fork, and of course when I did a pod install to install another pod it reinstalled the original REActivityViewController and erased my changes. I'm

Pod install command with error

匆匆过客 提交于 2019-12-17 14:01:13
问题 I've been trying to use cocoapods and install them into my project but its giving me this error while trying to install it in the project location. its kinda confusing ? /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.37.2/lib/cocoapods/command.rb:127: warning: Insecure world writable dir /usr/local in PATH, mode 040777 /Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.37.2/lib/cocoapods-core/standard_error.rb:88:in `message': incompatible character encodings: ASCII-8BIT and UTF-8 (Encoding:

Add cocoapods to tests target too? [duplicate]

↘锁芯ラ 提交于 2019-12-17 10:39:11
问题 This question already has answers here : Libraries not found when using CocoaPods with iOS logic tests (14 answers) Closed 6 years ago . I have default project template with tests and cocoapods installed ( pod install ). Pods works fine with main target, but when I try to import something in tests, I get something like Time.m:11:9: 'NSDate-Utilities.h' file not found Does this mean that I should add pods directory to header search path in tests target? Can this be done via cocoapods CLI

Disable bitcode for project and cocoapods dependencies with Xcode 7?

谁说我不能喝 提交于 2019-12-17 10:15:45
问题 How can you disable bitcode for your project and cocoapod dependencies? Here is the error I get when trying to run my project with Xcode 7. does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64 Edit: Originally only disabled it for one of the targets. Once I disabled all of them and I was able to build successfully. 回答1: To set this setting in a