小编Ric*_*eet的帖子

我将我的项目推送到gitlab来测试git ci,但它构建失败了

这些是我的错误信息

Running with gitlab-ci-multi-runner 1.5.3 (fb49c47)
Using Shell executor...
Running on luckyxmobiledeMac-mini-2.local...
Fetching changes...
HEAD is now at e56d7ac Update README.md
Checking out e56d7ace as master...
bash: line 4: shell_session_update: command not found
ERROR: Build failed: exit status 127
Run Code Online (Sandbox Code Playgroud)

这些是我的.gitlab-ci.yml:=的内容


    stages:
      - build   
    build_project:
      stage: build  

      script:  
        - xcodebuild clean -project ProjectName.xcodeproj -scheme SchemeName | xcpretty  
        - xcodebuild test -project ProjectName.xcodeproj -scheme SchemeName -destination 'platform=iOS Simulator,name=iPhone 6s,OS=9.2' | xcpretty -s
      tags:  
        - ios_9-2  
        - osx_10-11

git gitlab gitlab-ci-runner

7
推荐指数
1
解决办法
552
查看次数

如何管理 React Native 的生命周期

我知道当我们需要一个 nativeUI 组件时,我们需要覆盖函数 \n getName()\n createViewInstance(ThemedReactContext context)但是当我使用关于 map 的依赖时。API 需要我使用这样的组件

\n\n
    @Override  \nprotected void onDestroy() {  \n    super.onDestroy();  \n    //\xe5\x9c\xa8activity\xe6\x89\xa7\xe8\xa1\x8conDestroy\xe6\x97\xb6\xe6\x89\xa7\xe8\xa1\x8cmMapView.onDestroy()\xef\xbc\x8c \n    mMapView.onDestroy();  \n}  \n@Override  \nprotected void onResume() {  \n    super.onResume();  \n    //\xe5\x9c\xa8activity\xe6\x89\xa7\xe8\xa1\x8conResume\xe6\x97\xb6\xe6\x89\xa7\xe8\xa1\x8cmMapView. onResume ()\xef\xbc\x8c \n    mMapView.onResume();  \n    }  \n@Override  \nprotected void onPause() {  \n    super.onPause();  \n    //\xe5\x9c\xa8activity\xe6\x89\xa7\xe8\xa1\x8conPause\xe6\x97\xb6\xe6\x89\xa7\xe8\xa1\x8cmMapView. onPause ()\xef\xbc\x8c  \n    mMapView.onPause();  \n    }  \n}\n
Run Code Online (Sandbox Code Playgroud)\n\n

我重写了这个函数getetName()\n createViewInstance(ThemedReactContext context)就像这样

\n\n
    @Override\npublic String getName() {\n    return REACT_CLASS;\n}\n\n@Override\npublic MapView createViewInstance(ThemedReactContext context) {\n        final ThemedReactContext mapContext = …
Run Code Online (Sandbox Code Playgroud)

react-native

5
推荐指数
1
解决办法
6838
查看次数

标签 统计

git ×1

gitlab ×1

gitlab-ci-runner ×1

react-native ×1