pod的问题
1. pod install 出现错误NoMethodError - undefined method 'name' for an instance of Xcodeproj::Project::Object::PBXSourcesBuildPhase
很可能 库 的版本不对
podfile.lock文件的影响,需要重新更新pod内容,要将pod相关的内容删除完,重新安装
podfile.lock 文件锁死了,可以考虑删除
rm -rf Podsrm Podfile.lockrm -rf *.xcworkspacepod install ,, 以及打开.project.xcodej 文件, 删除和pod有关的文件。
˙终端执行命令:
sed -i -e 's/build_phase.name/build_phase.display_name/g' "$(gem info xcodeproj --version 1.27.0 | grep 'Installed at:' | cut -d':' -f 2 | xargs)/gems/xcodeproj-1.27.0/lib/xcodeproj/project/object/file_system_synchronized_exception_set.rb" 2. SDK does not contain 'libarclite' at the path '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a'; try increasing the minimum deployment target
要设置最低的版本 , 可能有些库和有些版本匹配不上。
post_install do |installer|
installer.generated_projects.each do |project|
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0'
end
end
end
end3. xcode16 不支持bitcode了
Podfile 文件中添加代码:
Last updated
