简体   繁体   中英

Use of undeclared type 'cocoapods library'

I made a pod Here and pushed cocoapods succesfully. When I try to test my library I added

pod 'TDTextSlider'

to my podfile of another test project.It is installed and imported without error but when I try to use the library with this code

let td : TDTextSlider = TDTextSlider(frame: UIScreen.main.bounds)

I got "Use of undeclared type TDTextSlider" error but when I copy the swift.class manually its working.What am i doing wrong?

确保您尝试访问的课程是公开的或开放的。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM