1、跟iOS项目一样:cd到项目目录下,执行pod init,会生成Podfile文件
2、关键一步:Podfile中的——platform :ios, '11.0',把ios改成osx,即platform :osx, '11.0'。然后正常的加入pod库,如:pod 'lottie-ios'
3、执行pod install,等待库下载完成
4、在项目文件中导入头文件import Lottie,就可以正常使用了
好文链接
评论可见,请评论后查看内容,谢谢!!!
1、跟iOS项目一样:cd到项目目录下,执行pod init,会生成Podfile文件
2、关键一步:Podfile中的——platform :ios, '11.0',把ios改成osx,即platform :osx, '11.0'。然后正常的加入pod库,如:pod 'lottie-ios'
3、执行pod install,等待库下载完成
4、在项目文件中导入头文件import Lottie,就可以正常使用了
好文链接
本文由 用户 于 2024-01-03 发布在 金钥匙,如有疑问,请联系我们。
本文链接:https://www.51969.com/post/17813837.html
发表评论