cocoapods

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

无人久伴 提交于 2019-11-27 16:54:00
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 /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/pathname.rb:422:in `children' from /usr/local/rvm/gems

CocoaPods and GitHub forks

风流意气都作罢 提交于 2019-11-27 16:49:12
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 realizing I need to push my changes to my fork before another pod install , but how do I do that being that

How to update a single pod without touching other dependencies

 ̄綄美尐妖づ 提交于 2019-11-27 16:46:18
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? 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 update SomePodName , CocoaPods will try to find an updated version of the pod SomePodName, without taking

Xcode - ld: library not found for -lPods

倖福魔咒の 提交于 2019-11-27 16:45:30
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/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr

cocoapods的安装

僤鯓⒐⒋嵵緔 提交于 2019-11-27 16:23:23
1、升级Ruby环境 终端输入:$ gem update --system 此时若出现:ERROR:While executing gem......(Gem::FilePermissionError) you don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory. 这是因为你没有权限去升级Ruby 此时输入:$ sudo gem update --system 2、 更换 Ruby镜像 (1)、 删除原先的源 终端输入:$ gem sources --remove https://rubygems.org/ (2)、添加新的源 终端输入:$ gem sources -a https://gems.ruby-china.org (3)、查看当前镜像 终端输入:$gem sources -l 如果结果是 *** CURRENT SOURCES *** https://gems.ruby-china.com/ 说明添加成功,否则继续执行$ gem source -a https://gems.ruby-china.com/来添加 3、安装CocoaPods 终端输入:$ sudo gem install cocoapods 如果出现下图1所示的错误: 图1 说明没有权限,需要输入 终端输入:$

unable to use cocoapods after updating

依然范特西╮ 提交于 2019-11-27 16:19:55
问题 I have updates Ruby , Gems and Cocoapods on my mac OSX 10.9.5, after the update I am unable to execute the command pod install I'm getting the below error from terminal /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.2/lib/cocoapods/user_interface/error_report.rb:13:in `report': incompatible character encodings: UTF-8 and ASCII-8BIT (Encoding::CompatibilityError) from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.34.2/lib/cocoapods/command.rb:61:in `report_error' from /Library/Ruby/Gems/2.0.0/gems

Module compiled with Swift 4.1.2 cannot be imported in Swift 4.1.50: Xcode 10 Error

纵然是瞬间 提交于 2019-11-27 15:52:13
问题 Swift 4.2 came out and I'm receiving this error message in my project when using ObjectMapper and some other pods too: Module compiled with Swift 4.1.2 cannot be imported in Swift 4.1.50 So how do I tell Xcode to start updating my project and migrate it to Swift 4.2? 回答1: In Swift 4.2 there is a change in implementation of Implicitly Unwrapped Optional (IUO) , as per the swift blog now implicit unwrapped optional T! will be considered as T? with and extra flag for the compiler to know it is

Pod install command with error

ε祈祈猫儿з 提交于 2019-11-27 15:38:10
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::CompatibilityError) from /Library/Ruby/Gems/2.0.0/gems/claide-0.8.1/lib/claide/command.rb:367:in `handle

How to use images asset catalog in cocoapod library for iOS

荒凉一梦 提交于 2019-11-27 15:37:31
问题 I have a cocoapod library which contains assets in 2 formats: a .storyboard XCode asset catalog .xcassets (with images) my podspec file contains the definition for the resource bundle: s.resource_bundle = {'SparkSetup' => ['Resources/**/*.{xcassets,storyboard}']} and I have a separate target in the pod project to create a resource bundle by using those files + a plist file for that bundle. thing is that when I use the pod in an app project - I can see the storyboard/xcassets files being in

Error with cocoapods link_with after update to 1.0.0

£可爱£侵袭症+ 提交于 2019-11-27 15:34:22
问题 I have updated cocoapods today to 1.0.0 version. I got this string when I update the pods: [!] Invalid Podfile file: [!] The specification of link_with in the Podfile is now unsupported, please use target blocks instead.. I have removed link_with in my podFile but I can't build the project because I have many Match-O-Linkers. Any one knows how should I fix this problem? This is my Podfile right now: source 'https://github.com/CocoaPods/Specs.git' platform :ios, '8.0' inhibit_all_warnings! pod