我正在尝试在我的故事板中使用自定义 UITextField。但是,每次我将 UITextField 的自定义类设置为我的 CustomTextField 时,都会出现错误
IB Designables:
Failed to update auto layout status: dlopen(MyAppTests.xctest,
1): Library not loaded: @rpath/XCTest.framework/XCTest
Referenced from: MyAppTests.xctest
Reason: image not found
一旦我将文本字段的自定义类恢复为常规 UITextField,错误就会消失。我已将 CustomTextField 的 swift 文件添加到测试目标,但仍然没有解决方案。我也应用了此处显示的解决方案,但没有成功。
有人有想法吗?(我想保留我的测试目标,所以不能删除它)
提前致谢。