Framework内ではFrameworkのBundleからNIBを見つける必要があります。ですのでFramework内のクラス内ではSwiftであれば以下のようにコーディングします。
public class ViewLoader {
public class func myView() -> UIView {
let nib = UINib(nibName: "MyView", bundle: NSBundle(forClass: self))
let view = nib.instantiateWithOwner(nil, options: nil).first as UIView
return view
}
public func myView() -> UIView {
let nib = UINib(nibName: "MyView", bundle: NSBundle(forClass: ViewLoader.self))
let view = nib.instantiateWithOwner(nil, options: nil).first as UIView
return view
}
public init() {
}
}
}