扫码关注官方订阅号
CocoaPods中添加Swift写的库需要使用use_frameworks!,但如果也有OC写的库的话,Bridging-Header.h中就貌似就无法import OC的库了?
光阴似箭催人老,日月如移越少年。
当在CocoaPods同时添加Swift和OC的库,使用use_frameworks!后,在Bridging-Header.h中的确是无法import OC的库,也无需import。 只需要在swift文件头部,添加import OCLibraryName,即可使用。stackoverflow链接:http://stackoverflow.com/questions/24122914/how-to-integrate-cocoapods...
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
扫描下载App
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
当在CocoaPods同时添加Swift和OC的库,使用use_frameworks!后,在Bridging-Header.h中的确是无法import OC的库,也无需import。
只需要在swift文件头部,添加import OCLibraryName,即可使用。stackoverflow链接:http://stackoverflow.com/questions/24122914/how-to-integrate-cocoapods...