flutter/ios
NaverThirdPartyLogin bitcode
thomass
2024. 11. 26. 14:34
네이버 로긴 라이브러리 사용중 위같은 에러가뜨면서 Ios스토어에 업로드가 안될때
이유: xcode 16은 bitcode안쓰는데 라이브러리중 관리안한것들이 아직 bitcode쓸때 생기는문제
ios - podfile안에 맨아래 post_install do |installer| 이부분찾아서 복붙
bitcode관련 스크립트 부분만 넣을때 오류가나서 위에 부분추가로 넣었더니 문제없이 작동함
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
# Bitcode 관련 스크립트 유지
bitcode_strip_path = `xcrun --find bitcode_strip`.chop!
def strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path)
framework_path = File.join(Dir.pwd, framework_relative_path)
command = "#{bitcode_strip_path} #{framework_path} -r -o #{framework_path}"
puts "Stripping bitcode: #{command}"
system(command)
end
framework_paths = [
"/Pods/naveridlogin-sdk-ios/NaverThirdPartyLogin.xcframework/ios-arm64_x86_64-simulator/NaverThirdPartyLogin.framework/NaverThirdPartyLogin",
"/Pods/naveridlogin-sdk-ios/NaverThirdPartyLogin.xcframework/ios-arm64/NaverThirdPartyLogin.framework/NaverThirdPartyLogin"
]
framework_paths.each do |framework_relative_path|
strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path)
end
end
반응형