- MacOS high sierra 10.12.6升级10.13
- -bash: pod: command not found 解决
- Module compiled with Swift 5.1 c
- xcrun: error: unable to find uti
- Cocoapods安装三方库报错(Attempt to read
- SQLCipher 在 Cocoapods 1.5+ 引入的报错
- -bash: /usr/local/bin/pod: /Syst
- Cocoapods私有库报错处理An unexpected ve
- 升级到macOS High Sierra后cocoapods报错
- CocoaPods执行pod install时安装OpenSSL
升级Xcode16.0后pod库报错
/Users/xxxx/Desktop/代码/项目名/项目名/Pods/BoringSSL-GRPC/src/ssl/tls13_enc.cc unsupported option '-G' for target 'arm64-apple-ios10.0'
解决办法:
在Podfile的项目target中添加下面内容,重新pod update
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == 'BoringSSL-GRPC'
target.source_build_phase.files.each do |file|
if file.settings && file.settings['COMPILER_FLAGS']
flags = file.settings['COMPILER_FLAGS'].split
flags.reject! { |flag| flag == '-GCC_WARN_INHIBIT_ALL_WARNINGS' }
file.settings['COMPILER_FLAGS'] = flags.join(' ')
end
end
end
end
end








网友评论