Cocoapods: Error with pod install https://github.com/CocoaPods/CocoaPods/search?q=cannot+load+such+file+--+cfpropertylist&type=Issues

Created on 13 Mar 2017  ยท  6Comments  ยท  Source: CocoaPods/CocoaPods

Hello. I'm trying to instal ChatSDK from: https://github.com/chat-sdk/chat-sdk-ios

After the pod install i have this outpost:

Analyzing dependencies
Fetching podspec for ChatSDK from ../
Downloading dependencies
Installing AFNetworking (3.1.0)
Installing Bolts (1.8.4)
Installing ChatSDK (4.2.5)
Installing CountryPicker (1.3)
Installing DateTools (1.7.0)
Installing Fabric (1.6.11)
Installing Facebook-iOS-SDK (4.1.0)
Installing Firebase (3.14.0)
Installing FirebaseAnalytics (3.7.0)
Installing FirebaseAuth (3.1.1)
Installing FirebaseCore (3.5.1)
Installing FirebaseDatabase (3.1.2)
Installing FirebaseInstanceID (1.0.9)
Installing FirebaseMessaging (1.2.2)
Installing FirebaseStorage (1.1.0)
Installing FrameAccessor (1.3.2)
Installing GTMOAuth2 (1.1.4)
Installing GTMSessionFetcher (1.1.8)
Installing Google (3.0.3)
Installing GoogleSignIn (4.0.2)
Installing GoogleToolboxForMac (2.1.1)
Installing MBProgressHUD (1.0.0)
Installing Protobuf (3.2.0)
Installing RXPromise (1.0.5)
Installing Reachability (3.2)
Installing SDWebImage (3.7.6)
Installing SDWebImage-ProgressView (0.5.0)
Installing StaticDataTableViewController (2.0.5)
Installing TOCropViewController (2.0.12)
Installing TwitterCore (1.15.3)
Installing TwitterKit (1.15.3)
Installing VENTokenField (2.5.2)
Generating Pods project

โ€•โ€•โ€• MARKDOWN TEMPLATE โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•

Command

/usr/local/bin/pod install

Report

  • What did you do?

  • What did you expect to happen?

  • What happened instead?

Stack

   CocoaPods : 1.2.0
        Ruby : ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16]
    RubyGems : 2.0.14.1
        Host : Mac OS X 10.12.3 (16D32)
       Xcode : 8.2.1 (8C1002)
         Git : git version 2.10.1 (Apple Git-78)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ 8c7965281c1a71bcba4154139d1c4878a755307d

Plugins

cocoapods-deintegrate : 1.0.1
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.0.0
cocoapods-trunk       : 1.1.2
cocoapods-try         : 1.1.0

Podfile

source 'https://github.com/CocoaPods/Specs.git'

target 'ChatSDK Demo' do

  pod "ChatSDK", :path => "../"
  #pod "ChatSDKModules/Backendless", :path => "ChatSDKModules"

end

Error

LoadError - cannot load such file -- cfpropertylist
/Users/alexbalyaev/.rvm/gems/ruby-2.3.0/gems/xcodeproj-1.4.2/lib/xcodeproj/plist.rb:25:in `read_from_path'
/Users/alexbalyaev/.rvm/gems/ruby-2.3.0/gems/xcodeproj-1.4.2/lib/xcodeproj/project/object/helpers/file_references_factory.rb:143:in `block in new_xcdatamodeld'
/Users/alexbalyaev/.rvm/gems/ruby-2.3.0/gems/xcodeproj-1.4.2/lib/xcodeproj/project/object/helpers/file_references_factory.rb:138:in `each'
/Users/alexbalyaev/.rvm/gems/ruby-2.3.0/gems/xcodeproj-1.4.2/lib/xcodeproj/project/object/helpers/file_references_factory.rb:138:in `new_xcdatamodeld'
/Users/alexbalyaev/.rvm/gems/ruby-2.3.0/gems/xcodeproj-1.4.2/lib/xcodeproj/project/object/helpers/file_references_factory.rb:27:in `new_reference'
/Users/alexbalyaev/.rvm/gems/ruby-2.3.0/gems/xcodeproj-1.4.2/lib/xcodeproj/project/object/group.rb:222:in `new_reference'
/Users/alexbalyaev/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.2.0/lib/cocoapods/project.rb:190:in `add_file_reference'
/Users/alexbalyaev/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.2.0/lib/cocoapods/installer/xcode/pods_project_generator/file_references_installer.rb:187:in `block (2 levels) in add_file_accessors_paths_to_pods_group'
/Users/alexbalyaev/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.2.0/lib/cocoapods/installer/xcode/pods_project_generator/file_references_installer.rb:185:in `each'
/Users/alexbalyaev/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.2.0/lib/cocoapods/installer/xcode/pods_project_generator/file_references_installer.rb:185:in `block in add_file_accessors_paths_to_pods_group'
/Users/alexbalyaev/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.2.0/lib/cocoapods/installer/xcode/pods_project_generator/file_references_installer.rb:180:in `each'
/Users/alexbalyaev/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.2.0/lib/cocoapods/installer/xcode/pods_project_generator/file_references_installer.rb:180:in `add_file_accessors_paths_to_pods_group'
/Users/alexbalyaev/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.2.0/lib/cocoapods/installer/xcode/pods_project_generator/file_references_installer.rb:108:in `block in add_resources'
/Users/alexbalyaev/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.2.0/lib/cocoapods/user_interface.rb:142:in `message'
/Users/alexbalyaev/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.2.0/lib/cocoapods/installer/xcode/pods_project_generator/file_references_installer.rb:106:in `add_resources'
/Users/alexbalyaev/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.2.0/lib/cocoapods/installer/xcode/pods_project_generator/file_references_installer.rb:42:in `install!'
/Users/alexbalyaev/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.2.0/lib/cocoapods/installer/xcode/pods_project_generator.rb:148:in `install_file_references'
/Users/alexbalyaev/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.2.0/lib/cocoapods/installer/xcode/pods_project_generator.rb:63:in `generate!'
/Users/alexbalyaev/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.2.0/lib/cocoapods/installer.rb:179:in `block in generate_pods_project'
/Users/alexbalyaev/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.2.0/lib/cocoapods/user_interface.rb:64:in `section'
/Users/alexbalyaev/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.2.0/lib/cocoapods/installer.rb:178:in `generate_pods_project'
/Users/alexbalyaev/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.2.0/lib/cocoapods/installer.rb:115:in `install!'
/Users/alexbalyaev/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.2.0/lib/cocoapods/command/install.rb:37:in `run'
/Users/alexbalyaev/.rvm/gems/ruby-2.3.0@global/gems/claide-1.0.1/lib/claide/command.rb:334:in `run'
/Users/alexbalyaev/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.2.0/lib/cocoapods/command.rb:52:in `run'
/Users/alexbalyaev/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.2.0/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'

โ€•โ€•โ€• TEMPLATE END โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•

[!] Oh no, an error occurred.

Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=cannot+load+such+file+--+cfpropertylist&type=Issues

If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new

Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md

Don't forget to anonymize any private data!

Looking for related issues on cocoapods/cocoapods...

and 2 more at:
https://github.com/cocoapods/cocoapods/search?q=cannot%20load%20such%20file%20--%20cfpropertylist&type=Issues&utf8=โœ“

I already tried to uninstall and instal the cocoapods and uninstall and install the CFPropertyList.
Nothing helps.

Any idea?

All 6 comments

I've definitely run into something like this before. If trying what you did doesn't work, the next thing I'd do is rebuild your rvm ruby and basically start over. It's frustrating, but without knowing the steps taken to get there it's hard to say what's missing. That's why, I'd just start over.

This is really more of a stack overflow question, and there's nothing really we can do to patch CocoaPods to help out here. For those reasons, I'm going to close this. We'd still appreciate though if you posted what help you if/when you figure it out. Thanks!

same issues

same issues

same issues

so the likely cause is mismatch on cocoapods / ruby / bundler. something that used to work - was updated. which one..... if you knew the specific versions - it's possible you could run app no matter what's been updated.

HOW TO AVOID THIS
Just as you can use an old pod version in Podfile
you can use a Gemfile to lock cocoa pods to a specific version. this allows your code to continue working over the years. Just use bundler / bundle install - to install associated gem files.
(Also - highly recommend using RVM / ruby version manager to manage ruby versions. )

#RVM - ruby version manager (for gems)
curl -sSL https://get.rvm.io | bash    
rvm install ruby --latest
rvm list // find the latest version  eg. 2-x-x
rvm use '2-x-x'  
gem install bundler cocoapods
bundle install // will install anything in Gemfile
pod install

if you have above - try updating bundler / this actually resolved problem for me.
gem install bundler

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Curtis-Halbrook picture Curtis-Halbrook  ยท  3Comments

Mingmingmew picture Mingmingmew  ยท  3Comments

lzwjava picture lzwjava  ยท  3Comments

marzapower picture marzapower  ยท  3Comments

soleares picture soleares  ยท  3Comments