xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

Flipper & React Native

Flipper & React Native

Flipper

Flipper是一款用于调试移动应用程序的出色开发人员工具,在Android和iOS社区中颇受欢迎。

Flipper is a great developer tool for debugging mobile apps and quite popular in the Android and iOS communities.

https://fbflipper.com/

https://github.com/facebook/flipper

React Native

CocoaPods bug & React Native & Error installing Flipper

https://github.com/facebook/react-native/issues/27565#issuecomment-651827994

https://github.com/facebook/flipper/issues/1321

https://github.com/facebook/react-native/issues/29251

$ pod install --verbose

stop, after installing here

image

$ pod install

CocoaPods bug & Error installing Flipper

Flipper-Folly

Error installing Flipper-Folly

$ cd ./design_pattern_app/ios && pod install


➜  ios git:(rn-app) ✗ pod install 
Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
Fetching podspec for `Folly` from `../node_modules/react-native/third-party-podspecs/Folly.podspec`
Fetching podspec for `glog` from `../node_modules/react-native/third-party-podspecs/glog.podspec`
Downloading dependencies
Installing CocoaAsyncSocket (7.6.4)
Installing CocoaLibEvent (1.0.0)
Installing DoubleConversion (1.1.6)
Installing FBLazyVector (0.63.3)
Installing FBReactNativeSpec (0.63.3)
Installing Flipper (0.54.0)
Installing Flipper-DoubleConversion (1.1.7)
Installing Flipper-Folly (2.3.0)

[!] Error installing Flipper-Folly
[!] /usr/bin/git clone https://github.com/facebook/folly.git /var/folders/qm/csrtpvpn62x82v4zykvsrnw80000gn/T/d20201028-52328-hfukp8 --template= --single-branch --depth 1 --branch v2020.04.06.00

Cloning into '/var/folders/qm/csrtpvpn62x82v4zykvsrnw80000gn/T/d20201028-52328-hfukp8'...
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

https://github.com/facebook/folly

Solution

多试几次,就好了

➜  src git:(rn-app) ✗ npx react-native init design_pattern_app
                                                          
               ######                ######               
             ###     ####        ####     ###             
            ##          ###    ###          ##            
            ##             ####             ##            
            ##             ####             ##            
            ##           ##    ##           ##            
            ##         ###      ###         ##            
             ##  ########################  ##             
          ######    ###            ###    ######          
      ###     ##    ##              ##    ##     ###      
   ###         ## ###      ####      ### ##         ###   
  ##           ####      ########      ####           ##  
 ##             ###     ##########     ###             ## 
  ##           ####      ########      ####           ##  
   ###         ## ###      ####      ### ##         ###   
      ###     ##    ##              ##    ##     ###      
          ######    ###            ###    ######          
             ##  ########################  ##             
            ##         ###      ###         ##            
            ##           ##    ##           ##            
            ##             ####             ##            
            ##             ####             ##            
            ##          ###    ###          ##            
             ###     ####        ####     ###             
               ######                ######               
                                                          

                  Welcome to React Native!                
                 Learn once, write anywhere               

✔ Downloading template
✔ Copying template
✔ Processing template
✔ Installing CocoaPods dependencies (this may take a few minutes)

  Run instructions for iOS:
    • cd "/Users/xgqfrms-mbp/Documents/GitHub/23-design-patterns-app/src/design_pattern_app" && npx react-native run-ios
    - or -
    • Open design_pattern_app/ios/design_pattern_app.xcworkspace in Xcode or run "xed -b ios"
    • Hit the Run button

  Run instructions for Android:
    • Have an Android emulator running (quickest way to get started), or a device connected.
    • cd "/Users/xgqfrms-mbp/Documents/GitHub/23-design-patterns-app/src/design_pattern_app" && npx react-native run-android

  Run instructions for Windows and macOS:
    • See https://aka.ms/ReactNative for the latest up-to-date instructions.

➜  src git:(rn-app) ✗ 

refs

https://github.com/xgqfrms/React-Native-Tutorials/issues/13#issuecomment-651851826



©xgqfrms 2012-2020

www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!


posted @ 2020-09-16 20:36  xgqfrms  阅读(1778)  评论(4编辑  收藏  举报