Files
libnovel/ios/LibNovel/fastlane/Fastfile
Admin 6365b14ece
Some checks failed
CI / Scraper / Lint (pull_request) Successful in 13s
CI / UI / Build (pull_request) Successful in 17s
iOS CI / Test (push) Has been cancelled
iOS CI / Build (push) Has been cancelled
CI / UI / Docker Push (pull_request) Has been skipped
CI / Scraper / Test (pull_request) Successful in 20s
CI / Scraper / Docker Push (pull_request) Has been skipped
iOS CI / Build (pull_request) Has been cancelled
iOS CI / Test (pull_request) Has been cancelled
iOS Release / Release to TestFlight (push) Failing after 1m1s
fix: use update_code_signing_settings to configure provisioning profile
2026-03-09 18:23:44 +05:00

46 lines
1.3 KiB
Ruby

default_platform(:ios)
platform :ios do
desc "Build and upload to TestFlight"
lane :beta do
# Generate Xcode project from project.yml (one level up from fastlane/)
sh("cd .. && xcodegen generate --spec project.yml --project .")
# Set build number from CI run number (passed as env var)
increment_build_number(
build_number: ENV["BUILD_NUMBER"] || "1",
xcodeproj: "LibNovel.xcodeproj"
)
# Update code signing settings to use automatic signing with team
update_code_signing_settings(
use_automatic_signing: false,
path: "LibNovel.xcodeproj",
team_id: "GHZXC6FVMU",
code_sign_identity: "Apple Distribution",
targets: ["LibNovel"],
profile_name: ENV["PROVISIONING_PROFILE_NAME"] || "LibNovel Distribution"
)
# Build the app
build_app(
scheme: "LibNovel",
export_method: "app-store",
clean: true,
configuration: "Release",
export_options: {
method: "app-store",
signingStyle: "manual",
provisioningProfiles: {
"com.kalekber.LibNovel" => ENV["PROVISIONING_PROFILE_NAME"] || "LibNovel Distribution"
}
}
)
# Upload to TestFlight
upload_to_testflight(
skip_waiting_for_build_processing: true
)
end
end