Sarvad
Sarvad

Reputation: 171

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

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

Upvotes: 7

Views: 5759

Answers (1)

Cihat Gündüz
Cihat Gündüz

Reputation: 21478

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.

Upvotes: 14

Related Questions