Closed
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit introduces Fastlane for building the iOS project and integrates it with GitHub Actions.
Gemfileis added withfastlaneas a dependency.fastlane/Fastfileis created with abuildlane that usesgymto build theSpacequestscheme..github/workflows/main.ymlis set up to:bundle exec fastlane buildto build the application.This will automate the build process for every push to the repository.