Coder Social home page Coder Social logo

Comments (4)

salemaljebaly avatar salemaljebaly commented on April 28, 2024

@herman-the-worm
maybe need to reinstall dependencies in iOS
gem install cocoa-pods pod install

another thing you locally the keychain setup automatically thats make process easy for you in local environment but in CI
you need to do that manually thats make another problems
so use setup_ci when prepared lane used Setup the keychain and match to work with CI
https://docs.fastlane.tools/actions/setup_ci/

from fastlane.

calfonso-zuhe avatar calfonso-zuhe commented on April 28, 2024

@herman-the-worm I am having the same issue, the fastlane script is hanging when building the app. The github actions log is stalled at :

    Running script 'Run Script'

Did you figure out what to do?

from fastlane.

calfonso-zuhe avatar calfonso-zuhe commented on April 28, 2024

In case someone reads this post, the issue I had was caused from the build script stuck waiting for a password to open the keychain (The github action log will not tell you that, you have to run it locally). The solution was to add commands to open and unlock the keychain.

In the Fastfile, try any or all of the following:

unlock_keychain(
  path: "~/Library/Keychains/build.keychain",
  password: <keychain password>
)

# disable the keychain autolock
sh "security set-keychain-settings -u ~/Library/Keychains/build.keychain"

# Allow codesign to access the "cert" key without prompting
sh "security set-key-partition-list -S apple-tool:,apple: -s -k <keychain password> ~/Library/Keychains/build.keychain"

from fastlane.

herman-the-worm avatar herman-the-worm commented on April 28, 2024

In case someone reads this post, the issue I had was caused from the build script stuck waiting for a password to open the keychain (The github action log will not tell you that, you have to run it locally). The solution was to add commands to open and unlock the keychain.

In the Fastfile, try any or all of the following:

unlock_keychain(
  path: "~/Library/Keychains/build.keychain",
  password: <keychain password>
)

# disable the keychain autolock
sh "security set-keychain-settings -u ~/Library/Keychains/build.keychain"

# Allow codesign to access the "cert" key without prompting
sh "security set-key-partition-list -S apple-tool:,apple: -s -k <keychain password> ~/Library/Keychains/build.keychain"

This is only applicable if you are building locally but not via GitHub actions

from fastlane.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.