Realm-cocoa: Xcode 10 Beta 3 header issue

Created on 4 Jul 2018  路  4Comments  路  Source: realm/realm-cocoa

While trying to compile with Xcode 10 beta 3 it fails with header permission issue, I have tried several things such as clearing pods, clearing pod cache, clearing derived data etc.

This works as expected in Xcode beta 2

Expected Results

馃憤 Compile :)

Actual Results

open ... Realm/Realm.framework/Headers/RLMPlatform.h: Permission denied

Steps to Reproduce

Compile with latest Realm modules from Cocoapods

Version of Realm and Tooling

Realm framework version: Latest

Realm Object Server version: Latest

Xcode version: Xcode 10 beta 3

iOS/OSX version: OS X 10.14 Beta 3

Dependency manager + version: Cocoapods 1.5.3

This is related to - #5827 but specific to Xcode 10 Beta 3

O-Community T-Help

Most helpful comment

It seems Xcode has an issue with the fact the file is empty. Insert a comment or something into the file (RLMPlatform.h, if you use CocoaPods it'll be in Pods/Realm/include/RLMPlatform.h), e.g. // This file is blank and Xcode compiles the project just fine.

All 4 comments

It seems Xcode has an issue with the fact the file is empty. Insert a comment or something into the file (RLMPlatform.h, if you use CocoaPods it'll be in Pods/Realm/include/RLMPlatform.h), e.g. // This file is blank and Xcode compiles the project just fine.

@apoltix

Hi i am having problem when compiling the project using Xcode 10 Beta 3 with following error :
'impl/weak_realm_notifier.hpp' file not found

I have opened new issue with following link:
https://github.com/realm/realm-cocoa/issues/5845

Also i couldnt find the Pods/Realm/include/RLMPlatform.h like what you said inside my Realm. I am using RealmSwift latest version.

Hopefully you can guide me thanks

For the record chmod 666 Pods/Realm/include/RLMPlatform.h also does the trick for building.

@CedricGatay Your tip fixed the problem, thanks !

Was this page helpful?
0 / 5 - 0 ratings