I am following http://guides.cocoapods.org/making/using-pod-lib-create guide to created my own swift library.
Briefly steps:
pod lib create MyLibrary
ABXXXView
to replace the default in 'Pods/Development Pods/MyLibrary/pod/Classes/ReplaceMe.swift'Then i want to make an example in Example for MyLibrary in ViewController.swift
, when i used the class ABXXXView
under my own pods, i got the error Use of unresolved identifier 'ABXXXView'
import MyLibrary
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
let vi = ABXXXView()
self.view.addSubview(vi)
}
}
Which means can't find "ABXXXView", but i have import MyLibrary, any hint? Thanks!
If i recreated a project with Objective C language, everything works fine.
Did you make ABXXXView
public?
yeah, use public it works. thanks!
Most helpful comment
Did you make
ABXXXView
public?