skip to Main Content

I’m trying to set up a cross platform app using React-native.
On the android side, i was able to install the SDK by setting the auth token in the settings.gradle

However on the IOS, i have added the SDK to my podfile but i’m still getting a permission error relating to auth token. How do i set the auth token to install the SDK on IOS.

Error from console

2

Answers


  1. Installing the GitHub repository file to Podfile is what this is for.

    1. Create a private repository for your pod. This can be done using a service like GitHub or Bitbucket.

    2. Add your private repository to your CocoaPods installation. To do this, open your Podfile and add the following line:

      source 'https://my_private_repo.git' 
      
    3. Add your pod’s Podspec to your repo. To do this, create a file called Podspec.yaml in the root directory of your pod repository. The Podspec file should contain information about your pod, such as its name, version, and dependencies.

    4. Add your repo to your CocoaPods installation.
      To do this, open your Podfile and add the following line:

      pod 'my_pod', '~> 1.0.0', :git => 'https://my_private_repo.git' 
      
    5. Install the dependencies. To do this, open a terminal window and navigate to the root directory of your project. Then, run the following command:

      pod install 
      
    6. This will install your private pod, along with any of its transitive dependencies.

    7. Use the pod in your project. To do this, import the pod into your code using the following syntax:

      import MyPod 
      

    You can now use the pod’s classes and methods in your code.

    Login or Signup to reply.
  2. If the user has not generated a ssh public/private key pair set before

    1) This info is working on theChaw but can be applied to all other git repositories which support SSH pubkey authentications.
    
    2) First start by setting up your own public/private key pair set. This can use either DSA or RSA, so basically any key you setup will work. On most systems you can use ssh-keygen.
    
    3) First you'll want to cd into your .ssh directory. Open up the terminal and run:
    
           cd ~/.ssh && ssh-keygen
    
    4) Next you need to copy this to your clipboard.
    5) On OS X run: cat id_rsa.pub | pbcopy
    6) On Linux run: cat id_rsa.pub | xclip
    7) On Windows (via Cygwin/Git Bash) run: cat id_rsa.pub | clip
    8) On Windows (Powershell) run: Get-Content id_rsa.pub | Set-Clipboard
    9) Add your key to your account via the website.
    10) Finally setup your .gitconfig.
    11) git config --global user.name "bob"
    12) git config --global user.email bob@... (don't forget to restart your command line to make sure the config is reloaded)
    
    That's it you should be good to clone and checkout.
    
    Further information can be found at 
    https://help.github.com/articles/generating-ssh-keys https://github.com/sitaramc/gitolite
    
    --------------------------------------------------------------------
    

    If the user has generated a ssh public/private key pair set before

    check which key have been authorized on your github or gitlab account settings
    
    determine which corresponding private key must be associated from your local computer
    
     eval $(ssh-agent -s)
    
    define where the keys are located
    
    ssh-add ~/.ssh/id_rsa
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search