Brian Tacker
Brian Tacker

Reputation: 1122

Swift - Use of unresolved identifier (Objective-C class)

So I was going to start moving my app over to swift (since it just seems so much easier to work with), and I figured Id be able to do a little at a time since you're supposed to be able to use it with existing objective-c code.

The problem Im having is it seems the interoperability doesn't seem to be working for some reason.

That's all that needs to be done to make it work right? Thats all Ive been able to find online at least.

Here is the error Im getting: Error

Any help would be appreciated.

Upvotes: 4

Views: 4688

Answers (1)

Allanah Fowler
Allanah Fowler

Reputation: 1281

You need to provide the whole file path from the root folder, not just the file name.

under Build Settings > Swift Compiler > Objective-C Bridging Header put:

MobileScripts/MobileScripts-Bridging-Header.h

Upvotes: 7

Related Questions