美文网首页
升级Xcode14.3 后运行报错,三方库支持版本过低(原因是l

升级Xcode14.3 后运行报错,三方库支持版本过低(原因是l

作者: 品茗听雨轩 | 来源:发表于2023-08-21 09:22 被阅读0次

升级Xcode14.3 后运行报错

File not found:/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos

原因是libarclite_iphoneos文件缺失

解决方案分两种情况

有的三方库支持版本过低,在podfile文件中指定版本

post_installdo|installer|

    installer.generated_projects.eachdo|project|

        project.targets.eachdo|target|

            target.build_configurations.eachdo|config|

                config.build_settings['IPHONEOS_DEPLOYMENT_TARGET']='13.0'

            end

        end

    end

end

2、直接下载libarclite_iphoneos文件,放到以上路径下面

cd /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/

sudo mkdir arc

cd  arc

sudo git clone https://github.com/kamyarelyasi/Libarclite-Files.git .

终端修改这个目录可能会遇到没有权限的情况,可以通过sudo chmod +x添加权限

也可以手动添加:

打开文件夹

open/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/

手动创建arc文件

下载 https://github.com/kamyarelyasi/Libarclite-Files.git 文件,手动将文件夹内容拷贝到arc文件夹下

相关文章

网友评论

      本文标题:升级Xcode14.3 后运行报错,三方库支持版本过低(原因是l

      本文链接:https://www.haomeiwen.com/subject/hfiemdtx.html