Skip to content

Comments

Add Fastlane and GitHub Actions for CI#4

Closed
r3econ wants to merge 3 commits intomasterfrom
add-fastlane-ci
Closed

Add Fastlane and GitHub Actions for CI#4
r3econ wants to merge 3 commits intomasterfrom
add-fastlane-ci

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.
@r3econ r3econ closed this Feb 19, 2026
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