GitLab CI: iOS project issue (permission denied)ERROR: While executing gem … (Gem::FilePermissionError)GitLab's Shell executor, no privilegeshow to set up GitLab CI for iOS projectGitLab CI with Docker, Fastlane and Cocoapods not workinggitlab runner The requested URL returned error: 403How do I use docker to run a gitlab-runner for a gitlab-hosted project?Gitlab CI 9.5 service is not runningGitlab CI - Build Docker Image With Shared Runner (cannot connect to Docker Daemon)Gitlab CI pull access denied for builder, repository does not exist or may require 'docker login'Permission denied when executing docker commands from Gitlab CI/CD pipelineGitlab-runner without DockerGitLab CI error: gem install bundler on MacOSGitLab CI with Docker, Fastlane and Cocoapods not working

Do household ovens ventilate heat to the outdoors?

Tips for remembering the order of parameters for ln?

Availability Group Notification when new DB is added

What is the rail connection between Paris Charles de Gaulle Airport and Gare de Lyon like?

Flying pigs arrive

As a discovery writer, how to complete unfinished novel (which is highly diverted from original plot ) after a time-gap

Is there any reason nowadays to use a neon indicator lamp instead of a LED?

Dear Fellow PSE Users,

Debussy as term for bathroom?

What to do as a player when ranger animal companion dies

Are lay articles good enough to be the main source of information for PhD research?

What are sources for Magic Items that are not adventure-specific?

What do solvers like Gurobi and CPLEX do when they run into hard instances of MIP

Why do we need to use transistors when building an OR gate?

What is the maximum viable speed for a projectile within earth's atmosphere?

Is there a comprehensive book, contains (algebra, trig, calculus, differential equations, statistics, ...)?

Simulate a 1D Game-of-Life-ish Model

How should I avoid someone patenting technology in my paper/poster?

Is Zack Morris's 'time stop' ability in "Saved By the Bell" a supernatural ability?

Get the encrypted payload from an unencrypted wrapper PDF document

Do you add your strength modifier once or twice to an unarmed strike?

Delete empty subfolders, keep parent folder

Algorithm for competing cells of 0s and 1s

What's the purpose of autocorrelation?



GitLab CI: iOS project issue (permission denied)


ERROR: While executing gem … (Gem::FilePermissionError)GitLab's Shell executor, no privilegeshow to set up GitLab CI for iOS projectGitLab CI with Docker, Fastlane and Cocoapods not workinggitlab runner The requested URL returned error: 403How do I use docker to run a gitlab-runner for a gitlab-hosted project?Gitlab CI 9.5 service is not runningGitlab CI - Build Docker Image With Shared Runner (cannot connect to Docker Daemon)Gitlab CI pull access denied for builder, repository does not exist or may require 'docker login'Permission denied when executing docker commands from Gitlab CI/CD pipelineGitlab-runner without DockerGitLab CI error: gem install bundler on MacOSGitLab CI with Docker, Fastlane and Cocoapods not working






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















Trying GitLab CI for my iOS project, I follow this, this and this tutorial.



Two questions:



  1. What is wrong with my gitlab-runner (with "shell" registration) since GitLab CI throws the following error:

Running with gitlab-runner 11.9.0 (692ae235)
on MyApp runner with shell DsaBC-oQ
Using Shell executor...
Running on MyComputer.network.provider...
mkdir: /Users/myusername/builds/DsaBC-oQ/0/username/myproj.tmp: Permission denied
mkdir: /Users/myusername/builds/DsaBC-oQ/0/username/myproj.tmp: Permission denied
ERROR: Job failed: exit status 1


  1. Some people say to use "sudo" for the gitlab-runner registration. But then I would need "docker". But it seems that "docker" can't be used for an iOS project in GitLab (but only "shell" registration). Is this true ? (if no, how does the gitlab-runner registration cmd look like exactly for a docker registration ??). Does "docker" work for an iOS-project at all using GitLab ??

Here is my .gitlab-ci.yml file:



stages:
- unit_tests

variables:
LC_ALL: "en_US.UTF-8"
LANG: "en_US.UTF-8"

before_script:
- gem install bundler
- bundle install

unit_tests:
dependencies: []
stage: unit_tests
artifacts:
paths:
- fastlane/screenshots
- fastlane/logs
script:
- bundle exec fastlane tests
tags:
- ios


I tried to register the gitlab-runner as follows:



gitlab-runner register 
--non-interactive
--url "https://gitlab.com/"
--registration-token "TOKENABCDEF"
--description "MyApp runner with shell"
--tag-list ios
--executor "shell"


The "shell" trial make Gitlab-CI show the above mentioned error (i.e. permission denied)



And I also tried to register the gitlab-runner with docker:



gitlab-runner register 
--non-interactive
--url "https://gitlab.com/"
--registration-token "TOKENABCEDF"
--description "MyApp runner with docker and ruby-2.6”
--tag-list ios
--executor "docker"
--docker-image ruby:2.6


But the "docker" trial made the GitLab-CI show another error (i.e. [!] You cannot run CocoaPods as root) as explained in more detail here...



Any idea on how to make this GitLab-CI for an iOS-project finally work properly at all ?? Thanks for any hint. (after 3 days of trials I am more than desperate for this to work)...










share|improve this question
































    0















    Trying GitLab CI for my iOS project, I follow this, this and this tutorial.



    Two questions:



    1. What is wrong with my gitlab-runner (with "shell" registration) since GitLab CI throws the following error:

    Running with gitlab-runner 11.9.0 (692ae235)
    on MyApp runner with shell DsaBC-oQ
    Using Shell executor...
    Running on MyComputer.network.provider...
    mkdir: /Users/myusername/builds/DsaBC-oQ/0/username/myproj.tmp: Permission denied
    mkdir: /Users/myusername/builds/DsaBC-oQ/0/username/myproj.tmp: Permission denied
    ERROR: Job failed: exit status 1


    1. Some people say to use "sudo" for the gitlab-runner registration. But then I would need "docker". But it seems that "docker" can't be used for an iOS project in GitLab (but only "shell" registration). Is this true ? (if no, how does the gitlab-runner registration cmd look like exactly for a docker registration ??). Does "docker" work for an iOS-project at all using GitLab ??

    Here is my .gitlab-ci.yml file:



    stages:
    - unit_tests

    variables:
    LC_ALL: "en_US.UTF-8"
    LANG: "en_US.UTF-8"

    before_script:
    - gem install bundler
    - bundle install

    unit_tests:
    dependencies: []
    stage: unit_tests
    artifacts:
    paths:
    - fastlane/screenshots
    - fastlane/logs
    script:
    - bundle exec fastlane tests
    tags:
    - ios


    I tried to register the gitlab-runner as follows:



    gitlab-runner register 
    --non-interactive
    --url "https://gitlab.com/"
    --registration-token "TOKENABCDEF"
    --description "MyApp runner with shell"
    --tag-list ios
    --executor "shell"


    The "shell" trial make Gitlab-CI show the above mentioned error (i.e. permission denied)



    And I also tried to register the gitlab-runner with docker:



    gitlab-runner register 
    --non-interactive
    --url "https://gitlab.com/"
    --registration-token "TOKENABCEDF"
    --description "MyApp runner with docker and ruby-2.6”
    --tag-list ios
    --executor "docker"
    --docker-image ruby:2.6


    But the "docker" trial made the GitLab-CI show another error (i.e. [!] You cannot run CocoaPods as root) as explained in more detail here...



    Any idea on how to make this GitLab-CI for an iOS-project finally work properly at all ?? Thanks for any hint. (after 3 days of trials I am more than desperate for this to work)...










    share|improve this question




























      0












      0








      0








      Trying GitLab CI for my iOS project, I follow this, this and this tutorial.



      Two questions:



      1. What is wrong with my gitlab-runner (with "shell" registration) since GitLab CI throws the following error:

      Running with gitlab-runner 11.9.0 (692ae235)
      on MyApp runner with shell DsaBC-oQ
      Using Shell executor...
      Running on MyComputer.network.provider...
      mkdir: /Users/myusername/builds/DsaBC-oQ/0/username/myproj.tmp: Permission denied
      mkdir: /Users/myusername/builds/DsaBC-oQ/0/username/myproj.tmp: Permission denied
      ERROR: Job failed: exit status 1


      1. Some people say to use "sudo" for the gitlab-runner registration. But then I would need "docker". But it seems that "docker" can't be used for an iOS project in GitLab (but only "shell" registration). Is this true ? (if no, how does the gitlab-runner registration cmd look like exactly for a docker registration ??). Does "docker" work for an iOS-project at all using GitLab ??

      Here is my .gitlab-ci.yml file:



      stages:
      - unit_tests

      variables:
      LC_ALL: "en_US.UTF-8"
      LANG: "en_US.UTF-8"

      before_script:
      - gem install bundler
      - bundle install

      unit_tests:
      dependencies: []
      stage: unit_tests
      artifacts:
      paths:
      - fastlane/screenshots
      - fastlane/logs
      script:
      - bundle exec fastlane tests
      tags:
      - ios


      I tried to register the gitlab-runner as follows:



      gitlab-runner register 
      --non-interactive
      --url "https://gitlab.com/"
      --registration-token "TOKENABCDEF"
      --description "MyApp runner with shell"
      --tag-list ios
      --executor "shell"


      The "shell" trial make Gitlab-CI show the above mentioned error (i.e. permission denied)



      And I also tried to register the gitlab-runner with docker:



      gitlab-runner register 
      --non-interactive
      --url "https://gitlab.com/"
      --registration-token "TOKENABCEDF"
      --description "MyApp runner with docker and ruby-2.6”
      --tag-list ios
      --executor "docker"
      --docker-image ruby:2.6


      But the "docker" trial made the GitLab-CI show another error (i.e. [!] You cannot run CocoaPods as root) as explained in more detail here...



      Any idea on how to make this GitLab-CI for an iOS-project finally work properly at all ?? Thanks for any hint. (after 3 days of trials I am more than desperate for this to work)...










      share|improve this question
















      Trying GitLab CI for my iOS project, I follow this, this and this tutorial.



      Two questions:



      1. What is wrong with my gitlab-runner (with "shell" registration) since GitLab CI throws the following error:

      Running with gitlab-runner 11.9.0 (692ae235)
      on MyApp runner with shell DsaBC-oQ
      Using Shell executor...
      Running on MyComputer.network.provider...
      mkdir: /Users/myusername/builds/DsaBC-oQ/0/username/myproj.tmp: Permission denied
      mkdir: /Users/myusername/builds/DsaBC-oQ/0/username/myproj.tmp: Permission denied
      ERROR: Job failed: exit status 1


      1. Some people say to use "sudo" for the gitlab-runner registration. But then I would need "docker". But it seems that "docker" can't be used for an iOS project in GitLab (but only "shell" registration). Is this true ? (if no, how does the gitlab-runner registration cmd look like exactly for a docker registration ??). Does "docker" work for an iOS-project at all using GitLab ??

      Here is my .gitlab-ci.yml file:



      stages:
      - unit_tests

      variables:
      LC_ALL: "en_US.UTF-8"
      LANG: "en_US.UTF-8"

      before_script:
      - gem install bundler
      - bundle install

      unit_tests:
      dependencies: []
      stage: unit_tests
      artifacts:
      paths:
      - fastlane/screenshots
      - fastlane/logs
      script:
      - bundle exec fastlane tests
      tags:
      - ios


      I tried to register the gitlab-runner as follows:



      gitlab-runner register 
      --non-interactive
      --url "https://gitlab.com/"
      --registration-token "TOKENABCDEF"
      --description "MyApp runner with shell"
      --tag-list ios
      --executor "shell"


      The "shell" trial make Gitlab-CI show the above mentioned error (i.e. permission denied)



      And I also tried to register the gitlab-runner with docker:



      gitlab-runner register 
      --non-interactive
      --url "https://gitlab.com/"
      --registration-token "TOKENABCEDF"
      --description "MyApp runner with docker and ruby-2.6”
      --tag-list ios
      --executor "docker"
      --docker-image ruby:2.6


      But the "docker" trial made the GitLab-CI show another error (i.e. [!] You cannot run CocoaPods as root) as explained in more detail here...



      Any idea on how to make this GitLab-CI for an iOS-project finally work properly at all ?? Thanks for any hint. (after 3 days of trials I am more than desperate for this to work)...







      docker continuous-integration realm gitlab cocoapods






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 29 at 10:13







      iKK

















      asked Mar 28 at 14:10









      iKKiKK

      1,6412 gold badges25 silver badges53 bronze badges




      1,6412 gold badges25 silver badges53 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          0
















          It turned out that the "permission denied" error on my GitLab Pipeline had nothing to do with GitLab itself - but was due to a Ruby version mismatch on my Mac that I connected with the gitlab-runner.



          I was able to update my Ruby version with the help of this post (i.e. using chruby). There are other possibilities out there on how to update Ruby on your Mac. It is important to understand that GitLab requires your Mac to have a stable Ruby environment.



          As a side-note: Here is the best tutorial on how to set up GitLab CI for an iOS-project that I have found.






          share|improve this answer
























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );














            draft saved

            draft discarded
















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55399687%2fgitlab-ci-ios-project-issue-permission-denied%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0
















            It turned out that the "permission denied" error on my GitLab Pipeline had nothing to do with GitLab itself - but was due to a Ruby version mismatch on my Mac that I connected with the gitlab-runner.



            I was able to update my Ruby version with the help of this post (i.e. using chruby). There are other possibilities out there on how to update Ruby on your Mac. It is important to understand that GitLab requires your Mac to have a stable Ruby environment.



            As a side-note: Here is the best tutorial on how to set up GitLab CI for an iOS-project that I have found.






            share|improve this answer





























              0
















              It turned out that the "permission denied" error on my GitLab Pipeline had nothing to do with GitLab itself - but was due to a Ruby version mismatch on my Mac that I connected with the gitlab-runner.



              I was able to update my Ruby version with the help of this post (i.e. using chruby). There are other possibilities out there on how to update Ruby on your Mac. It is important to understand that GitLab requires your Mac to have a stable Ruby environment.



              As a side-note: Here is the best tutorial on how to set up GitLab CI for an iOS-project that I have found.






              share|improve this answer



























                0














                0










                0









                It turned out that the "permission denied" error on my GitLab Pipeline had nothing to do with GitLab itself - but was due to a Ruby version mismatch on my Mac that I connected with the gitlab-runner.



                I was able to update my Ruby version with the help of this post (i.e. using chruby). There are other possibilities out there on how to update Ruby on your Mac. It is important to understand that GitLab requires your Mac to have a stable Ruby environment.



                As a side-note: Here is the best tutorial on how to set up GitLab CI for an iOS-project that I have found.






                share|improve this answer













                It turned out that the "permission denied" error on my GitLab Pipeline had nothing to do with GitLab itself - but was due to a Ruby version mismatch on my Mac that I connected with the gitlab-runner.



                I was able to update my Ruby version with the help of this post (i.e. using chruby). There are other possibilities out there on how to update Ruby on your Mac. It is important to understand that GitLab requires your Mac to have a stable Ruby environment.



                As a side-note: Here is the best tutorial on how to set up GitLab CI for an iOS-project that I have found.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 29 at 19:19









                iKKiKK

                1,6412 gold badges25 silver badges53 bronze badges




                1,6412 gold badges25 silver badges53 bronze badges





















                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.




















                    draft saved

                    draft discarded















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid …


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55399687%2fgitlab-ci-ios-project-issue-permission-denied%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    How to preserve electronics (computers, tablets and phones) for hundreds of years Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) The network's official Twitter account is up and running again. What content…How might modern humans leave a message for 50,000 years?How would an aquatic race develop computers?How do we make computers care for human life?Keeping supplies for 1000 yearsWhat will cell phones become in 100 years?What body armor protects against a laser?Could a society attain 1800s technology if limited to using copper and bronze?Electricity power (magic) and electronicsScavenging metal resources in post-apocalypse after 100 yearsWhy would precursors create devices that can survive and still work after hundreds of years?

                    155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해

                    Convert JSON to MapSimplest way to convert a string representing JSON array into Java array List of key value pairsHow to take String JSON values into HashMapConvert a JSON String to a HashMapCreating BSON object from JSON stringJSONObject - How to get a value ?Better Map ConstructorReading JSON from Url javaUpdate columns if input values are not null otherwise ignore and keep the existing values of column in databaseHow to store object represented as Json string into Couchbase Lite?Go JSON into MapHow do I efficiently iterate over each entry in a Java Map?Sort a Map<Key, Value> by valuesHow to round a number to n decimal places in JavaCan comments be used in JSON?How do I read / convert an InputStream into a String in Java?How can I pretty-print JSON in a shell script?What is the correct JSON content type?How can I deserialize JSON to a simple Dictionary<string,string> in ASP.NET?Why does Google prepend while(1); to their JSON responses?Parse JSON in JavaScript?