I have a project with three schemes, (Debug-MyApp, Beta-MyApp, MyApp). This project has three configurations (Debug, Beta, and AppStore). Moreover, each target builds their respective configurations. When I use a custom class in Interface Builder and use "Inherit module from target" (the default), it always picks Beta_MyApp module instead of whatever target I'm building (Usually Debug-MyApp). I verified this in the xibs/storyboards, since opening the file in Xcode causes the customModule property to be set to Beta-MyApp.
I have also tried setting both the Project and Target settings for Interface Builder Xib default module and Interface Builder Storyboard default module to Debug_MyApp.
The end result is that none of my custom classes render correctly; even though Designables says "Up to date" and "no interface builder errors occur".
My current workaround is explicitly setting all the modules to Debug_MyApp, and not using inherit module from target, which results in the views rendering correctly.
Has anyone experienced this / know how to remedy?
Not sure what exactly helped since I did several things, but after last change I get no more issues with inheriting module from target.
It seems like when duplicating existing (main) target, Xcode did not update IBSC_MODULE property at all, so Interface Builder thinks that he operates with main target, not duplicated one. Error during runtime seems like reasonable one from that perspective.
There appears to be an epic, blockbuster bug in 11.2 onwards...
the entire logic of the project in terms of the targets seems to be totally fouled from that point onwards.
"Inherit Module from Target" really doesn't work any more, and you essentially have to manually set every single "Module" field on every single storyboard, any time you change anything.
Again, it does seem to be a totally blockbuster bug introduced around 11.0.
The only solution is just the workaround - manually set every single storyboard. (Of course, if you miss one ... crash.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With