[ci-bitrise] Revert to fastlane-driven build — xcode-archive can't parse this project

xcode-archive@5 failed: 'unkown SDKROOT: auto'. Darwin/PediFoods.xcconfig
sets SDKROOT = auto and SUPPORTED_PLATFORMS = iphoneos iphonesimulator
macosx (Skip's multi-platform build target) — same root cause as the
earlier PLATFORM_DISPLAY_NAME failure from manage-ios-code-signing.
Both are Bitrise step-side project parsers that pre-guess a single
platform before invoking xcodebuild, and neither understands this
project's build shape.

xcodebuild itself has no problem with SDKROOT = auto (confirmed via a
local build). Only Bitrise's own step parsers choke on it. Going through
fastlane's build_app instead sidesteps that parser entirely — it's the
same approach the Darwin/fastlane/Fastfile already used before, restored
here with the earlier apikey.json JSON-escaping and DEVELOPMENT_TEAM
injection fixes kept.
This commit is contained in:
Daniel Arantes Loverde
2026-07-09 17:17:07 -03:00
parent 20e2ee3c38
commit 0d9ebbd621
2 changed files with 69 additions and 62 deletions

View File

@@ -20,26 +20,35 @@ lane :assemble do |options|
)
end
# ─── Upload IPA to TestFlight (Bitrise's xcode-archive step already built it) ──
lane :beta do |options|
desc "Build and upload to TestFlight"
get_provisioning_profile(api_key_path: "fastlane/apikey.json")
assemble
upload_to_testflight(
ipa: ENV["BITRISE_IPA_PATH"],
api_key_path: "fastlane/apikey.json",
skip_waiting_for_build_processing: true
)
end
# ─── Push metadata + upload IPA to App Store (Bitrise already built it) ───────
lane :release do |options|
deliver(
ipa: ENV["BITRISE_IPA_PATH"],
desc "Build and release app"
# see https://docs.fastlane.tools/uploading-app-privacy-details/
#upload_app_privacy_details_to_app_store(json_path: "fastlane/app_privacy_details.json")
# if you have an apikey.json file (https://developer.apple.com/documentation/appstoreconnectapi/creating-api-keys-for-app-store-connect-api), fastlane can automatically fetch certificates and the ASC authentication information
#get_certificates(api_key_path: "fastlane/apikey.json")
get_provisioning_profile(api_key_path: "fastlane/apikey.json")
assemble
upload_to_app_store(
api_key_path: "fastlane/apikey.json",
app_rating_config_path: "fastlane/metadata/rating.json",
release_notes: { default: "Fixes and improvements." },
skip_screenshots: false,
skip_metadata: false,
force: true,
submit_for_review: false,
automatic_release: false,
run_precheck_before_submit: false
release_notes: { default: "Fixes and improvements." }
)
end