발생 상황
Unity에서 FireBase를 포함한 프로젝트를 iOS빌드 -> XCode에서 빌드 시 오류 발생
아래와 같은 메세지
BoringSSL-GRPC unsupported option '-G' for target 'arm64-apple-ios15.0'
경로가 같이 붙어있어서 더 길지만 핵심은 위의 메세지.
해결 방안
pods.file에 다음을 추가
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
이후 프로젝트 폴더(pods.file이 있는 폴더)에서 터미널 실행
>>pod install
입력 및 실행
pod가 재설치되고, 에러는 해결~!
'Code in Action > Unity' 카테고리의 다른 글
[2024] Unity에 Game Center Login 하기 (Apple plug-in) (1) | 2024.10.28 |
---|