banner
Aug 9, 2024
38 Views

[!] Failed to load ‘glog’ podspec:

Written by
banner

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
banner

Leave a Reply

Your email address will not be published. Required fields are marked *