I am using fastlane to distribute an app to both Firebase and Testflight. To avoid two xcode builds, I am using resign
action to change signature of app from ad-hoc to appstore.
Here is my firebase distribute action:
Used wildcards to mask actual values
lane :firebase_distribute do |options|
match(
team_id: "*", type: "adhoc", api_key_path: "fastlane/api_key.json", profile_name: "*"
)
disable_automatic_code_signing(path: "*.xcodeproj",
team_id: "*"
)
update_project_provisioning(
xcodeproj: "*.xcodeproj",
target_filter: "*",
profile:ENV["sigh_*_adhoc_profile-path"], code_signing_identity: "*")
gym(scheme: "*",
workspace: "*.xcworkspace",
clean: true,
xcargs: "-UseModernBuildSystem=YES",
include_bitcode: false,
)
# Upload to Firebase
firebase_app_distribution(
app: "*",
groups: "*",
release_notes: "*",
service_credentials_file: "*.json"
)
end
And here is my resign for appstore action:
lane :resign_distribute do |options|
match(
team_id: "*", type: "appstore", api_key_path: "fastlane/api_key.json", profile_name: "*"
)
resign(
ipa: "*.ipa",
signing_identity: "*",
provisioning_profile: ENV["sigh_*_appstore_profile-path"]
)
upload_to_testflight(
skip_submission: true,
skip_waiting_for_build_processing: true,
api_key_path: "fastlane/api_key.json"
)
end
Even though action completes successfully, Apple emails me about an error and then delete uploaded build from Tesflight.
Here is the error:
ITMS-90426: Invalid Swift Support - The SwiftSupport folder is missing. Rebuild your
app using the current public (GM) version of Xcode and resubmit it.
I am able to upload to both Firebase and Testflight seperately. However, it seems that is not possible via resign.
Is there anything I do wrong? Or, could this be a fastlane issue?