My xib files are in the Assets folder of my Pod, like this.
s.resources = 'Pod/Assets'
xib files are displayed in my workspace in the Development Pods group of the Development Pods module. I am trying to access xib like this.
[[NSBundle mainBundle] loadNibNamed:@"LabeledTextFieldView" owner:self options:nil];
But I get the next crash
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/jeff.wolski/Library/Application Support/iPhone Simulator/7.1/Applications/775EB653-519B-4FCF-8CD9-92311E205598/LT-Components-iOS.app> (loaded)' with name 'LabeledTextFieldView''
Why is the xib file not found in the bundle?
source share