Lâu lắm mới quay lại code react-native lại dính các lỗi config như xưa. Vừa pull code mẫu về gõ "pod install" thì lỗi
[!] Failed to load 'glog' podspec:
[!] Invalid `glog.podspec` file: undefined method `[]' for nil.
# from /Users/haodinh/Documents/GitHub/vov_media_mobile/node_modules/react-native/third-party-podspecs/glog.podspec:38
# -------------------------------------------
# match = xcode_path.match(/Xcode (\d+)\.(\d+)/)
> major_version = match[1].to_i
# minor_version = match[2].to_i
# -------------------------------------------
[!] Unexpected XCode version string ''
[!] [Codegen] warn: using experimental new codegen integration
Cách fix
sudo xcode-select --switch /Applications/Xcode.app
Article Categories:
Uncategorized