xcode常见错误(持续更新)

1.升级Xcode15后遇到的坑 HandyJSON库报错 Command SwiftCompile failed with a nonzero exit code

更新了一下xcode版本,结果release死活报错debug正常运行。Command SwiftCompile failed with a nonzero exit code。选中pod 报错的库 Code Generation->Compilation Mode改成和debug一样的 Incremental

2.Xcode15之后,新建项目后pod 引入部分第三方会报错Sandbox: rsync.samba(XXXX) deny(1) file-write-create?

解决方法:Build Settings 搜索== sandbox==,把 ==Build Options ==中的 User Script Sandboxing改为 NO

3.git push的时候报错error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500

git的缓存空间给少了,通过在命令行运行以下代码把git缓存空间加大可以解决这个问题,注意要加上--global

git config --global http.postBuffer 524288000

 4.Reachability SDK does not contain...

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

重新pod install

posted @ 2024-09-23 09:30  哇哈爽  阅读(150)  评论(0编辑  收藏  举报