cocoapods

CocoaPods and Swift 3.0

半腔热情 提交于 2019-11-26 20:11:16
问题 I just want to try Swift 3.0 in one of my projects. Xcode open the migration window to update my project to use Swift 3.0. The problem is, I just want to to update my project, and leave the Pods project untouched because any changes will be discard after I run the pod install again. Anyone already have a solution for that? 回答1: What you're asking is not possible. Xcode builds your Cocoapods dependencies as well as your project. You cannot mix Swift 2.x and Swift 3 code in the same project or

[!] CocoaPods could not find compatible versions for pod \"Folly\"问题举例

谁都会走 提交于 2019-11-26 19:30:32
$ pod install 后出现下面错误: [!] CocoaPods could not find compatible versions for pod "Folly": In snapshot (Podfile.lock): Folly (from `./RNComponent/node_modules/react-native/third-party-podspecs/Folly.podspec`) In Podfile: Folly (from `./RNComponent/node_modules/react-native/third-party-podspecs/Folly.podspec`) React/CxxBridge (from `./RNComponent/node_modules/react-native`) was resolved to 0.57.5, which depends on Folly (= 2016.10.31.00) 以为是cocoapods 版本高了,用低版本的试试 $ pod _1.1.1_ install ,依然报错 [!] Unable to satisfy the following requirements: - `Folly (from `./RNComponent/node_modules/react-native

Ignore Xcode warnings when using Cocoapods

一个人想着一个人 提交于 2019-11-26 19:14:18
I use quite a lot third party libraries which have many warnings in it, after the latest Xcode updates. (for example the Facebook SDK pod) Now all these warnings are shown in my Xcode on the place I want to see my own warnings or errors. Is there any way to ignore these errors? Fixing them won't help, since after every "pod install" the changes are discarded. alloy Add to your Podfile: platform :ios # ignore all warnings from all pods inhibit_all_warnings! # ignore warnings from a specific pod pod 'FBSDKCoreKit', :inhibit_warnings => true Then execute: pod install You can search for "inhibit

cocoapods not installing

半腔热情 提交于 2019-11-26 19:11:24
问题 What does it mean and how can I fix it: pod install /Library/Ruby/Site/2.0.0/rubygems.rb:250:in `find_spec_for_exe': can't find gem cocoapods (>= 0.a) (Gem::GemNotFoundException) from /Library/Ruby/Site/2.0.0/rubygems.rb:278:in `activate_bin_path' from /usr/local/bin/pod:22:in `<main>' 回答1: Using following commands, it worked for me. 1: sudo gem uninstall cocoapods 2: sudo gem install -n /usr/local/bin cocoapods 3: pod install 回答2: If you install cocoapod using brew like me Reinstall

cocoaPods pod install Permission denied

假如想象 提交于 2019-11-26 18:58:27
问题 This is the short version: When I run pod install in an Xcode project I get [!] Pod::Executable pull error: cannot open .git/FETCH_HEAD: Permission denied If I run sudo pod install I get no error, but my files installed are owned by root and can't compile and I have to chown those files to a normal user to use the Xcode compiler. I am running Lion OSX. I installed cocoaPods using sudo gem install cocoaPods I had to use sudo because without it I got ERROR: While executing gem ... (Gem:

podfile gives an error on install

谁说我不能喝 提交于 2019-11-26 18:52:36
问题 I cloned a repo from git. Then removed the .git and .gitignore. The podFile looks like platform :ios, '6.1' pod 'AFNetworking', '~>1.3.3' pod 'AFOAuth1Client' After "pod install" I get the following errors: $ pod install Analyzing dependencies [!] Pod::Executable pull A ALPValidator/0.0.1/ALPValidator.podspec A APAsyncDictionary/0.0.3/APAsyncDictionary.podspec A ASCScreenBrightnessDetector/0.1.0/ASCScreenBrightnessDetector.podspec A AdBrixSDK/3.0.8/AdBrixSDK.podspec A AlertShortkut/1.0

How to integrate Cocoapods with a Swift project?

♀尐吖头ヾ 提交于 2019-11-26 18:47:57
问题 As Apple introduced Swift, their new programming language, I wonder how you can integrate it with existing Objective-C libraries that are available via CocoaPods? 回答1: Cocoapods 0.36 and above introduces the use_frameworks! instruction which implies that the bridging header is not required for importing Objective-C pods in Swift. Please find below a full example using MBProgressHUD and Alamofire : 1. Podfile source 'https://github.com/CocoaPods/Specs.git' platform :ios, '8.3' use_frameworks!

Cocoapods commands fail due to “No such file or directory @ dir_initialize - /Users/<username>/.cocoapods/repos (Errno::ENOENT)”

旧街凉风 提交于 2019-11-26 18:46:35
问题 Can anyone help me resolve the error in the stack trace below? This occurs when I run any pod command. I've uninstalled and reinstalled the gem with no luck. 00:44:05-David~/dev/farecast-app (master)$ pod setup Setting up CocoaPods master repo /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/pathname.rb:422:in `open': No such file or directory @ dir_initialize - /Users/David/.cocoapods/repos (Errno::ENOENT) from /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/pathname.rb:422:in `foreach' from

Error: “The sandbox is not in sync with the Podfile.lock…” after installing RestKit with cocoapods

微笑、不失礼 提交于 2019-11-26 18:15:53
I've encounter an strange issue after installing RestKit with cocoapods. after resolving RestKit dependency for my project with cocoapods and trying to build it, I face this error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation. I tried running pod install , but no change. Here are some shots: PODS: - AFNetworking (1.3.3) - RestKit (0.20.3): - RestKit/Core - RestKit/Core (0.20.3): - RestKit/CoreData - RestKit/Network - RestKit/ObjectMapping - RestKit/CoreData (0.20.3) - RestKit/Network (0.20.3): - AFNetworking (~> 1.3.0) - RestKit

CocoaPods Errors on Project Build

╄→гoц情女王★ 提交于 2019-11-26 18:05:47
I'm unable to build a project that uses CocoaPods. I get the following errors: diff: /../Podfile.lock: No such file or directory diff: Manifest.lock: No such file or directory error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.` $ pod install seems to work fine and adds a Pods Project to my Workspace. I've tried $ pod update but this doesn't help. It seems that PODS_ROOT is not being set. Podfile: platform :ios, '6.0' workspace 'Example.xcworkspace' xcodeproj 'example/Example.xcodeproj' pod 'TestFlightSDK', '~> 1.3.0-beta.5' pod