Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

getting error "ReactiveCocoa/ReactiveCocoa.h" file not found

I am trying to build a Cocoapod xcode project. I followed below steps to configure cocoapods on my mac machine(MAC OS yosemite 10.10.2, xcode 6.1.1 version)

  • sudo gem update --system
  • sudo gem install cocoapods
  • pod setup
  • and then navigated to existing cocoapod xcode project root directory entered pod update

Now while opening xcode workspace file, am getting the below error in projectname-Prefix.pch file

"ReactiveCocoa/ReactiveCocoa.h" file not found (but I see library and class file in the project)

like image 475
Nagendra Avatar asked Jul 20 '26 07:07

Nagendra


1 Answers

In my case it was resolved like this way..

After opening terminal -> Goto the project directory

cd /Your Xcode Project Directory Path

Press Enter.

Now use this command to check if there is any update available for existing pods.

pod outdated

It will show all the outdated pods with latest updates

Now use the following command to update the outdated pods.

pod update

It will update all the pods automatically.

Make sure that you have closed the Xcode before updating.

After updating change the import section of your class files.

#import <ReactiveCocoa/ReactiveCocoa.h>

Thanks.

Hope this helped.

like image 148
onCompletion Avatar answered Jul 21 '26 23:07

onCompletion