Skip to content

Add Fastlane and GitHub Actions for CI #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Conversation

r3econ
Copy link
Owner

@r3econ r3econ commented May 21, 2025

This commit introduces Fastlane for building the iOS project and integrates it with GitHub Actions.

  • A Gemfile is added with fastlane as a dependency.
  • A fastlane/Fastfile is created with a build lane that uses gym to build the Spacequest scheme.
  • A GitHub Actions workflow in .github/workflows/main.yml is set up to:
    • Trigger on every push.
    • Checkout the code.
    • Set up Ruby and Bundler.
    • Install gems.
    • Run bundle exec fastlane build to build the application.

This will automate the build process for every push to the repository.

This commit introduces Fastlane for building the iOS project and integrates it with GitHub Actions.

- A `Gemfile` is added with `fastlane` as a dependency.
- A `fastlane/Fastfile` is created with a `build` lane that uses `gym` to build the `Spacequest` scheme.
- A GitHub Actions workflow in `.github/workflows/main.yml` is set up to:
    - Trigger on every push.
    - Checkout the code.
    - Set up Ruby and Bundler.
    - Install gems.
    - Run `bundle exec fastlane build` to build the application.

This will automate the build process for every push to the repository.
The previous GitHub Actions build failed due to a code signing error:
"No profiles for 'com.rolfelster.Spacequest' were found... Automatic signing is disabled and unable to generate a profile."

This commit updates the `fastlane/Fastfile` to pass the `-allowProvisioningUpdates` flag to `xcodebuild` via the `xcargs` parameter in the `gym` action. This should allow Xcode to automatically manage provisioning for the build, resolving the signing issue for CI purposes.
The build continues to fail due to code signing issues, specifically:
- "No Accounts: Add a new account in Accounts settings."
- "No profiles for 'com.rolfelster.Spacequest' were found."

Passing `-allowProvisioningUpdates` was not sufficient.

This commit updates the `fastlane/Fastfile` to attempt to disable code signing entirely for the CI build by setting the following `xcargs` in the `gym` action:
- `CODE_SIGN_IDENTITY=''`
- `CODE_SIGNING_REQUIRED=NO`

This should allow the project to be built for compilation checking purposes without requiring an Apple Developer account or provisioning profiles on the CI runner.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant