-
Notifications
You must be signed in to change notification settings - Fork 147
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
fix: iOS uploads fail with shorebird release due to extension bundle version not set #2271
Comments
Can you share the |
Also related #1703 |
Potentially related to #1956 as well |
The reproduction steps are incomplete. Can you share what you did that triggered |
Uploading manually via xcode works fine. Building with flutter build also seems to upload fine. So it seems like there's something happening with the output that isn't quite aligned with what altool (fastlane's underlying client) expects. fastlane_require 'spaceship'
default_platform(:ios)
def get_version()
version_number = ENV['VERSION_NUMBER']
return version_number
end
def get_build()
build_number = ENV['BUILD_NUMBER']
return build_number
end
platform :ios do
desc "Prepare"
lane :prebuild do
build_number = get_build()
version_number = get_version()
increment_build_number(
build_number: build_number,
xcodeproj: "./Runner.xcodeproj"
)
increment_version_number(
version_number: version_number,
xcodeproj: "./Runner.xcodeproj"
)
update_plist(
plist_path: "./NotificationService/Info.plist",
block: proc do |plist|
plist[:CFBundleShortVersionString] = version_number
plist[:CFBundleVersion] = build_number
end
)
end
desc "Build"
lane :build do
build_number = get_build()
version_number = get_version()
sh <<~CMD
shorebird release ios -- \
--build-name #{version_number} \
--build-number #{build_number}
CMD
end
desc "Deploy Internal"
lane :deploy_internal do
build_number = get_build()
version_number = get_version()
app_store_connect_api_key(
is_key_content_base64: true,
in_house: false,
duration: 600,
)
pilot(
ipa: "../build/ios/ipa/Runner.ipa",
app_version: version_number,
build_number: build_number,
skip_waiting_for_build_processing: true,
skip_submission: true,
distribute_external: false,
notify_external_testers: false
)
end
end |
It could be related to this. I had bad values set for the config, it wasn't inheriting the flutter variables. I will report back after testing this change. |
Relevant Discord thread, starting at this message: https://discord.com/channels/1030243211995791380/1250070546008379423/1255185635514257479 It sounds like the issue is that Fastlane's Excerpts from the Discord thread:
and
|
There is this new "extension-safe" version of the Flutter engine that flutter builds: |
Nevermind, I bet that "extension-safe" flutter is for use within extensions. |
This discord response doesn't provide enough information for troubleshooting... |
I believe the inclusion of "NotificationService" as a flavor was an old bug we've since fixed. I think it can just be removed from the flavor list: #1703 |
I'm not certain, but the fix here might just be to remove the "NotificationService" flavor from shorebird.yaml and try running |
I believe this has been fixed |
App ID: 6983d7ed-9500-41fb-aa7a-d20543b232f2
Description
Firebase instructions call for adding an extension to report when notifications are received by a device.
Fastlane fails to upload the ipa, and it succeeds when it is a plain flutter build.
Shorebird also lists this NotificationService as a flavor.
Steps To Reproduce
Expected Behavior
It should build and successfully upload.
Additional Context
The text was updated successfully, but these errors were encountered: