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
Unknown class in Interface Builder file #74
Comments
I think you want to remove the custom module provider since you’re specifying the module name manually in the xib |
You’re also using rules_apples unit test and application rules, I’d reccomend trying with the rules in this repo |
@segiddins Thank you, I've tried out to switch to This After looking into |
Ah yeah that could be it, good hunch |
Pass resources to swift_library when there are swift sources. Otherwise, pass to objc_library. [bazel-ios#74] Fixes Unknown class in Interface Builder file issue.
I have a simple project TestXIB with
CustomView.swift
andCustomView.xib
.xib file has
customClass="CustomView" customModule="TestXIB" customModuleProvider="target"
settings.When I'm running unit tests and trying to instantiate
CustomView
from xib I get an error:Unknown class _TtC39TestXIBTests.__internal__.__test_bundle10CustomView in Interface Builder file.
If I either switch from
apple_framework
toswift_library
or removecustomModuleProvider="target"
from xib all works fine.Any ideas on how to solve the issue using
apple_framework
without xib modification.?The text was updated successfully, but these errors were encountered: