React Native Build Commands Failed: PhaseScriptExecution … (domain=NSPOSIXErrorDomain, code=2)

前端 未结 14 2512
旧巷少年郎
旧巷少年郎 2021-02-12 09:45

Environment

Mac OS X Version 10.11.3 (15D21)
Xcode Version 7.2 (7C68)
Simulator Version 9.2 (SimulatorApp-643)
react-native-cli 0.1.10
node v5.5         


        
14条回答
  •  無奈伤痛
    2021-02-12 10:08

    Surprisingly, this was the solution for me: Open the file Views/RTCScrollView.m in Xcode and change the variable _refreshControl to refreshControl. All occurrences of _refreshControl were already marked as errors. The new code becomes:

    - (void)setRefreshControl:(RCTRefreshControl *)refreshControl
    {
      if (refreshControl) {
        [refreshControl removeFromSuperview];
      }
      refreshControl = refreshControl;
      [self addSubview:refreshControl];
    }
    

提交回复
热议问题