Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Realm via CocoaPods

I am trying to install Realm (Objective C) via Cocoapods.

However I keep getting the following error:

Pods/Realm/Realm/module.modulemap:1:18: Redefinition of module 'Realm'

Has anyone faced this problem?

I've tried downloading their CocoapodsExample project but I get the same error.

like image 327
Tiago Veloso Avatar asked Jul 24 '15 16:07

Tiago Veloso


1 Answers

This is a known issue with CocoaPods 0.38.1, being tracked at https://github.com/CocoaPods/CocoaPods/issues/3886. In the meantime, you can gem install cocoapods -v 0.38.0 and run pod _0.38.0_ install to use CocoaPods 0.38.0, which does not have this issue.


This should now be fixed in CocoaPods 0.38.2.

like image 147
segiddins Avatar answered Sep 24 '22 17:09

segiddins