MayaReo
MayaReo

Reputation: 19

No type or protocol named 'AVCapturePhotoCaptureDelegate'

I'm trying to use my Swift class into Objective-C code and I came across this answer to do so. However, after import MyModule-Swift.h, I'm getting compile error in MyModule-Swift.h:

No type or protocol named 'AVCapturePhotoCaptureDelegate'

Even though it contains @import AVFoundation; at the top. I'm clueless how to solve this. All I'm trying to do is to use one of the model class (written in Swift) in Objective-C.

Upvotes: 1

Views: 657

Answers (1)

user7223371
user7223371

Reputation: 11

I think you are using .mm file.

Use .m instead.

Upvotes: 1

Related Questions