Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Regarding Header 'RealmSwift-Swift.h' not found error

Tags:

xcode

ios

realm

I've updated my Xcode to the Xcode 10.0 beta version and tried to run a project with realmswift in it, now i'm facing an error where it says:

Header 'RealmSwift-Swift.h' not found

like image 960
Sarvad Avatar asked Jun 04 '18 21:06

Sarvad


1 Answers

I noticed this after trying out the "Conversion to Swift 4.2" button (which failed for me). When I switched to another target where I didn't run this yet, the project built without problems. And after cleaning the project properly, the failing target worked again.

Please note that according to the Release Notes this beta has several "known issues" regarding cleaning, including this one (which has the workaround for it listed, too):

enter image description here

So you might want to try deleting the DerivedData folder manually on top of cleaning in Xcode.

like image 193
Jeehut Avatar answered Sep 25 '22 12:09

Jeehut