Comments (3)
It seems like your Fastlane configuration is not recognizing the specified scheme ("staging") during the build process, resulting in a fallback to the default "Release" scheme. This can be frustrating, especially when everything works fine locally but fails in the CI/CD pipeline.
Here are a few steps you can take to troubleshoot and potentially resolve this issue:
-
Ensure Scheme Exists: Double-check that the "staging" scheme exists in your Xcode project. You can verify this by running the following command locally:
xcodebuild -list
Make sure that "staging" appears in the list of available schemes.
-
Verify Scheme in Fastfile: Check your Fastfile configuration to ensure that the "staging" scheme is correctly specified in the
build_app
command. It seems like you're already specifying it, but it's worth double-checking for any typos or inconsistencies. Dgcustomerfirst -
Review GitHub Actions Environment: Make sure the GitHub Actions environment has the necessary configurations and permissions to build with the specified scheme. Sometimes, CI/CD environments can have different configurations or restrictions compared to local development environments.
-
Debug Logs: Analyze the Fastlane output logs carefully, especially any warnings or errors that might indicate why the specified scheme is not being used during the build process. Look for any specific messages related to scheme selection or configuration.
-
Explicitly Specify Scheme: Instead of relying on the default behavior, explicitly specify the scheme in the Fastfile command:
build_app( scheme: "staging", # Other parameters... )
-
Test with Different Configurations: If possible, try building with different configurations or schemes to see if the issue persists across all configurations or is specific to the "staging" scheme.
-
Fastlane and Xcode Compatibility: Ensure that the versions of Fastlane and Xcode being used are compatible. Sometimes, issues can arise due to compatibility issues between Fastlane and Xcode versions.
-
Consult Fastlane Documentation: Refer to the Fastlane documentation or community forums for any known issues or best practices related to specifying schemes in CI/CD environments.
By following these steps and carefully analyzing the Fastlane output, you should be able to diagnose and resolve the issue with specifying the scheme during the build process in your CI/CD pipeline. If the problem persists, you might need to provide more detailed logs or seek assistance from the Fastlane community for further troubleshooting.
from fastlane.
Update:
Now I have learned that the app flavor is not necessarily equivalent to the Xcode app scheme. When I set the configuration and scheme in the build_app
action, the scheme gets applied correctly but the app will have no app flavor. The reason might be that the flavor can only be set via flutter build
. My question now is, if there is any way to set the app flavor via build_app
?
from fastlane.
Thank you for your advice, but as I already indicated in my previous comment, I tried to achieve something that is not possible with the build_app
function. The iOS scheme is perfectly recognised by fastlane but my issue was something different. build_app
only sets the iOS Build Scheme but not the flutter flavor. The flutter flavor is only applicable with the flutter build
command, so I need to build the app in the workflow with this command and then I have to process the build with fastlane. But this is kinda tricky and I was not able yet to achieve that correctly.
For now, I built a workaround to determine in which environment the app currently is. The Flutter Plugin package_info_plus
has the information about the installer store and whether this is local(Simulator or physical device), TestFlight or AppStore, I can choose the correct API base for the corresponding environment.
Since this is no issue directly associated with fastlane, we can close this issue.
from fastlane.
Related Issues (20)
- fastlane sigh download_all and "Error parsing provisioning profile at path..."
- fastlane match HOT 4
- bundler: command not found: fastlane
- Individual API Key not supported HOT 3
- fastlane deliver init is not working in CLI
- JEG2/highline should be updated to avoid warning of abbrev missing in standard lib for ruby 3.3.0
- How to get raw exit code from Fastlane HOT 1
- Match import to s3 Crash on encrypting. HOT 2
- Provisioning profile expiration comparison compares Time and DateTime
- AvailableTerritories is deprecated and fastlane is not upgraded to new api endpoints HOT 5
- Match managing provisioning profiles for DriverKit
- curb-1.0.0/lib/curl/easy.rb - Failed to read/open file
- `match` behaves differently in v2.220.0: `wrong final block length` HOT 12
- Can't upload build to Test Flight; [!] undefined method `refresh!' HOT 2
- A parameter has an invalid value - 'prices' is not a valid relationship name HOT 9
- I run the command 'fastlane match development'. and i got the following error: Looking for related GitHub issues on fastlane/fastlane... Found no similar issues. To create a new issue, please visit: https://github.com/fastlane/fastlane/issues/new Run fastlane env to append the fastlane environment to your issue [!] The request could not be completed because: This request is forbidden for security reasons - You currently don't have access to this membership resource. Contact your team's Account Holder, or an Admin.
- Build_for_testing fails sporadically with error 'Could not find or use auto-linked framework' HOT 2
- Can fastlane support filling in Chinaโs ICP registration number?
- [match] provisioning profile generated via match blocks release installation on TestFlight (or on device) HOT 1
- if and switch expressions Swift HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastlane.