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
Flexible bundle id config #40
Comments
Right now, the only solution is to remove the There a lot of room for improvement, thanks for letting me know 👍 |
Thing is, the sigh action uses the
|
Easy solution for now: Change your app_identifier ENV["APP_IDENTIFIER"] and set the correct app identifier in each lane: ENV["APP_IDENTIFIER"] = "com.krausefx.beta" |
Awesome! That's the most ruby thing I've seen. |
👍 |
@champo Did that solution work for you? Just curious cause doing some issues cleaning 😁 |
Yes, this worked, let's leave it like this for now 👍 |
I'm used the version 1.0.0 and I can't switch the bundle ID and the team using for_lane in the AppFile. for_lane "ios beta" do
app_identifier "com.beta.FastLanePOC"
apple_id "gwenn@mail.com"
team_id "1TEAM1"
end
for_lane "ios deploy" do
app_identifier "com.deploy.FastLanePOC"
apple_id "gwenn@mail.com"
team_id "2TEAM2"
end |
@myrddinus sorry that was my mistake. Depending on your |
@KrauseFx My Fastfile below : # Customise this file, documentation can be found here:
# https://github.com/KrauseFx/fastlane/tree/master/docs
# If you want to automatically update fastlane if a new version is available:
update_fastlane
# This is the minimum version number required.
# Update this, if you use features of a newer version
fastlane_version "1.0.0"
default_platform :ios
platform :ios do
before_all do
ENV["DELIVER_USER"] = "gwenn@mail.com"
ENV["DELIVER_PASSWORD"] = "MyPassword"
cocoapods
xctool :test, [
"--workspace", "'FastLanePOC.xcworkspace'",
"--scheme", "'FastLanePOC'",
"--configuration", "Debug",
"--sdk", "iphonesimulator",
"--arch", "i386"
].join(" ")
increment_build_number
end
desc "Runs all the tests"
lane :test do
# snapshot
end
desc "Submit a new Beta Build to Apple TestFlight"
desc "This will also make sure the profile is up to date"
lane :beta do
sigh(
output_path: "build",
filename: "inhouse.mobileprovision"
)
ipa(
workspace: "FastLanePOC.xcworkspace",
configuration: "Release",
scheme: "FastLanePOC",
embed: "inhouse.mobileprovision",
clean: true,
destination: "build",
ipa: "my-app.ipa",
xcargs: "DEBUG=0",
archive: nil
)
end
desc "Deploy a new version to the App Store"
desc "** Full Markdown** Support: `code`"
lane :deploy do
# Helper.log.info "Bundle id '#{app_identifier}'".blue
sigh(
output_path: "build",
filename: "distrib.mobileprovision"
)
ipa(
workspace: "FastLanePOC.xcworkspace",
configuration: "Release",
scheme: "FastLanePOC",
embed: "distrib.mobileprovision",
clean: true,
destination: "build",
ipa: "my-app-distrib.ipa",
xcargs: "DEBUG=0",
archive: true
)
end
after_all do |lane|
# This block is called, only if the executed lane was successful
# slack({
# message: "Successfully deployed new App Update."
# })
end
error do |lane, exception|
# slack({
# message: exception.message,
# success: false
# })
end
end
# More information about multiple platforms in fastlane:
# https://github.com/KrauseFx/fastlane/blob/master/docs/Platforms.md |
@myrddinus I'm not sure, but I think you misunderstood what the |
@KrauseFx Thanks for your response. |
Using custom xcconfig, I can change the bundle ID, the signing identity and the provisioning profile according to the configuration (debug, release, ...). |
Remove HTML descriptor from open summary option
👍 |
I need to be able to switch bundle id (depends on whether I'm doing an internal testing build or a client distribution build, ie.: our developer account vs theirs). Right now the bundle id can only be set through the Appfile. I would have to modify the file before using fastlane, losing the "one command to deploy".
The text was updated successfully, but these errors were encountered: