I have an error when initializing a project for React Native. Macbook M1, I've already tried installing through brew and clearing the cache. But I don't understand what the error is, why json file doesn't read or it's not that error.
I've already reinstalled macOS, rm -rf ~/.cocoapods/repos/trunk/ and other things, reinstalled - nothing helps!
✖ Installing CocoaPods dependencies (this may take a few minutes)
error Framework build type is static library
[Codegen] Generating ./build/generated/ios/React-Codegen.podspec.json
post_install do |installer|
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
react_native_post_install(
installer,
config[:reactNativePath],
:mac_catalyst_enabled => false
)
__apply_Xcode_12_5_M1_post_install_workaround(installer)
end
end
Error
JSON::ParserError - Failed to parse JSON at file: '/Users/mykytakhaliavkin/.cocoapods/repos/trunk/Specs/a/e/a/Flipper/0.232.0/Flipper.podspec.json'.
unexpected token at ''
/Users/mykytakhaliavkin/RN6/vendor/bundle/ruby/2.6.0/gems/cocoapods-core-1.13.0/lib/cocoapods-core/specification/json.rb:66:in `rescue in from_json'
You need change network. Connect to VPN after run