New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MyTypeMock does not conform to protocol NSObjectProtocol #97
Comments
Hi, thanks for reporting. Is |
Thanks for your response :) |
Try adding a supporting source file for import Foundation
protocol DTPhotoViewerControllerDelegate: NSObjectProtocol {} |
I created a file as the same as you mentioned but in the path: I will try to change the path. |
Unfortunately, it didn't work :( |
Oh, looks like the issue might be that the access level wasn’t public. (Also make sure that you’re importing import Foundation
public protocol DTPhotoViewerControllerDelegate: NSObjectProtocol {} Edit: I’m fairly confident that the above should work, but if it doesn’t, please post the verbose output from the generator build logs: https://github.com/birdrides/mockingbird/wiki/Debugging-the-Generator |
I have done all steps but it does not work :( |
Thanks for the logs! Since the module name for that library is actually |
It is fixed :) |
Awesome! Closing this issue. |
Hi,
In my project, there are supporting source files related to NSObjectProtocol. but the error "MyTypeDelegateMock does not conform to protocol NSObjectProtocol" is not resolved.
protocol DTPhotoViewerControllerDelegate: NSObjectProtocol {
}
protocol MyTypeDelegate: DTPhotoViewerControllerDelegate {
}
In MyProjectMocks.generated.swift file, i have this error:
// MARK: - Mocked MyTypeDelegate
public final class MyTypeDelegateMock: MyProject.MyTypeDelegate, Mockingbird.Mock {
}
The text was updated successfully, but these errors were encountered: