Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cocoapods subspec issue: None of your spec sources contain a spec satisfying the dependency

I modified a repo on Github to integrate a swift version of my library.

https://github.com/iDevelopper/PBRevealViewController

However when in a new project I try to pod install I get the error:

[!] Unable to satisfy the following requirements:

  • PBRevealViewController/Swift (= 1.2.3) required by Podfile

None of your spec sources contain a spec satisfying the dependency: PBRevealViewController/Swift (= 1.2.3).

You have either: * out-of-date source repos which you can update with pod repo update or with pod install --repo-update. * mistyped the name or version. * not added the source repo that hosts the Podspec to your Podfile.

Note: as of CocoaPods 1.0, pod repo update does not happen on pod install by default.

Some helps are welcome!

Please see the Cocoapods issue:

https://github.com/CocoaPods/CocoaPods/issues/6970#event-1213956994

like image 821
Patrick Bodet Avatar asked Aug 21 '17 12:08

Patrick Bodet


1 Answers

If you're using Macbook with M1(apple silicon)

Inside your ios Folder follow these commands in terminal

sudo arch -x86_64 gem install ffi

arch -x86_64 pod install

If this still don't fix your issue then run

 arch -x86_64 pod install --repo-update
like image 196
Akaanksh K Avatar answered Sep 21 '22 05:09

Akaanksh K