#Shorebird release won't work with fastlane and ios

1 messages · Page 1 of 1 (latest)

primal pollen
#

Im trying to setup shorebird release with fastlane but im doing something wrong since its not working, also the documentation doesn't help.

Fastfile
lane :build_ios do
api_key = app_store_connect_api_key(
key_id: "",
issuer_id: "",
key_content: ENV["SOME_KEY"],
in_house: false,
)

  create_keychain(
    name: "fastlane.keychain",
    password: ENV["FASTLANE_PASSWORD"],
    default_keychain: true,
    unlock: true,
    timeout: 3600,
    lock_when_sleeps: false
  )

  match(
    type: 'appstore',
    app_identifier: ["app.example"],
    api_key: api_key,
    git_branch: "somebranch",
    clone_branch_directly: true,
    keychain_name: "fastlane.keychain",
    keychain_password: ENV["FASTLANE_PASSWORD"],
    readonly: true,
  )

  build_app(workspace: "Runner.xcworkspace", scheme: "dev") # WORKS
  shorebird_release(platform: "ios", args:"--flavor dev --target ./lib/main_dev.dart") # Does not work
vague hare
#

Hmm, you aren't the first to report this type of issue with fastlane

#

I'm not entirely sure how fastlane normally gets signing info for the app. shorebird release ios (the command run by that fastlane method) will use whatever signing credentials are configured in xcode, so it's possible that using match sets it up some other way?

#

That said, build_app(workspace: "Runner.xcworkspace", scheme: "dev") # WORKS is building a dev scheme and is probably not trying to sign your app

#

I'd be curious if build_app with a release configuration would work

primal pollen
#

Is there any way i can make it work in CI without fastlane?, i know its reported too, but shorebird release does work local.
The documentation for github CI and shorebird skips the prerequired signing stuff.

vague hare
#

We don't document signing because it should not be different than non-shorebird apps

#

But yes, there is definitely a way to make it work in CI, we have plenty of customers who do

primal pollen
#

Do you have any documenation on that?, That would help a lot!

vague hare
#

We don't, but I'm sure there is plenty out there

#

Like I said, it won't be any different for a shorebird app than for an app without shorebird