Realm-cocoa: Realm=4.3.1 install error with CocoaPods

Created on 17 Jan 2020  路  3Comments  路  Source: realm/realm-cocoa

!!! MANDATORY TO FILL OUT !!!

Goals

Integrate Realm with existing iOS project with cocoapods.

Expected Results

with no errors

Actual Results

Errno::ENOENT - No such file or directory @ rb_check_realpath_internal - /Users/lax/Perspire/demoapp/ios/Pods/Realm/include/Realm/RLMAccessor.h

This path is a soft link to ../../Realm/RLMAccessor.h, which does not exist.

this issue happens to Realm=4.3.1, while for Realm<=4.3.0 there's no such issue.

Steps to Reproduce

add pod "Realm" to Podfile, then run pod install

Code Sample

Version of Realm and Tooling


Realm framework version: 4.3.1

Realm Object Server version: ?

Xcode version: ?

iOS/OSX version: ?

Dependency manager + version: cocoapods 1.8.0

O-Community

Most helpful comment

I got the same error today.
After several hours of investigation, I managed to fix it.

Remove Realm, RealmSwift under
~/Library/Caches/CocoaPods/Pods/Release
~/Library/Caches/CocoaPods/Pods/Specs
Then pod install

I guess this is caused by a failed 'pod install' previously.
I did fail about 2~3 times due to a poor network connection.

All 3 comments

I got the same error today.
After several hours of investigation, I managed to fix it.

Remove Realm, RealmSwift under
~/Library/Caches/CocoaPods/Pods/Release
~/Library/Caches/CocoaPods/Pods/Specs
Then pod install

I guess this is caused by a failed 'pod install' previously.
I did fail about 2~3 times due to a poor network connection.

@Lax, Did @Eyesony's comment help you fix you issue?

Yes, it works perfectly.

rm -rf ~/Library/Caches/CocoaPods/Pods/Release/Realm ~/Library/Caches/CocoaPods/Pods/Specs/Release/Realm
Was this page helpful?
0 / 5 - 0 ratings