专家看下,我每次新建react native项目都失败,创建出来的都是.xcodeproj,而不是.xcworkspace,问题应该是出在cocoapods上,可是怎么才能找到代理源,而不是镜像源?

✔ Downloading template
✔ Copying template
✔ Processing template
✔ Installing dependencies
✔ Do you want to install CocoaPods now? Only needed if you run your project in Xcode directly … yes
✔ Installing Ruby Gems
✖ Installing CocoaPods dependencies with New Architecture (this may take a few minutes)
error % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
46 23.3M 46 10.7M 0 0 22499 0 0:18:05 0:08:21 0:09:44 33052
curl: (92) HTTP/2 stream 1 was not closed cleanly: PROTOCOL_ERROR (err 1)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 16.3M 100 16.3M 0 0 942k 0 0:00:17 0:00:17 --:--:-- 1400k
[!] [Codegen] warn: using experimental new codegen integration
error Installing Cocoapods failed. This doesn't affect project initialization and you can safely proceed. However, you will need to install Cocoapods manually when running iOS, follow additional steps in "Run instructions for iOS" section.
Error: Looks like your iOS environment is not properly set. Please go to https://reactnative.dev/docs/environment-setup?os=macos&platform=ios&guide=native and follow the React Native CLI QuickStart guide for macOS and iOS.
info 💡 To enable automatic CocoaPods installation when building for iOS you can create react-native.config.js with automaticPodsInstallation field.
For more details, see https://github.com/react-native-community/cli/blob/main/docs/projects.md#projectiosautomaticpodsinstallation
Run instructions for Android:
• Have an Android emulator running (quickest way to get started), or a device connected.
• cd "/Users/huafusong/FACProject" && npx react-native run-android
Run instructions for iOS:
• cd "/Users/huafusong/FACProject"
• npx react-native run-ios
- or -
• Open FACProject/ios/FACProject.xcodeproj in Xcode or run "xed -b ios"
• Hit the Run button
Run instructions for macOS:
• See https://aka.ms/ReactNativeGuideMacOS for the latest up-to-date instructions.