swift之xcode升级后由于(Reachability)pod库导致项目报错的解决方案

1.将以下代码贴到Podfile文件里

#Fix Xcode14 Bundle target error

post_install do |installer|

    installer.pods_project.targets.each do |target|

        target.build_configurations.each do |config|

            config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = ""

            config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"

            config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"

            config.build_settings['ENABLE_BITCODE'] = "NO"

            config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '工程版本号'

        end

    end

end

2.重新pod install

posted @ 2023-11-07 15:20  哇哈爽  阅读(121)  评论(0编辑  收藏  举报