Skip to content

Commit dfadbf4

Browse files
authored
Update Fastfile
1 parent f9986f6 commit dfadbf4

File tree

1 file changed

+30
-35
lines changed

1 file changed

+30
-35
lines changed

Fastlanedemoapp/fastlane/Fastfile

Lines changed: 30 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ platform :ios do
2121

2222
desc "Get version from BUILD_NUMBER"
2323
lane :increment_version do
24-
build_number = ENV["BUILD_NUMBER"]
24+
build_number = ENV["BUILD_NUMBER"] || "1"
2525
increment_build_number(build_number: build_number)
2626
end
2727

@@ -32,7 +32,7 @@ platform :ios do
3232
increment_version_number(version_number: version)
3333
end
3434

35-
desc "Deploy Beta for TestFlight - Optimized"
35+
desc "Deploy Beta for TestFlight - local testing mode (no signing)"
3636
lane :beta do
3737
puts "=== Beta lane started at #{Time.now} ==="
3838

@@ -47,48 +47,43 @@ platform :ios do
4747

4848
prepare_archive
4949

50-
# 2️⃣ AppStore signing using API key
51-
key = get_apple_key()
52-
match(
53-
api_key: key,
54-
type: "appstore",
55-
app_identifier: "com.bundle.app" # replace with actual app id
56-
)
57-
50+
# 2️⃣ Skip signing for local testing / no Apple keys
5851
puts "=== Build phase started at #{Time.now} ==="
5952
build_app(
6053
workspace: "./Fastlanedemoapp.xcworkspace",
6154
scheme: "Fastlanedemoapp",
55+
clean: true,
6256
export_method: "app-store",
63-
skip_profile_detection: true,
64-
export_xcargs: "-parallelizeTargets",
6557
include_symbols: true,
66-
include_bitcode: true
58+
include_bitcode: true,
59+
skip_codesigning: true # <-- skip signing for local testing
6760
)
6861
puts "=== Build phase completed at #{Time.now} ==="
6962

70-
# 3️⃣ Upload dSYM to Crashlytics
71-
dsym_path = Actions.lane_context[SharedValues::DSYM_OUTPUT_PATH] || "./Fastlanedemoapp.dSYM.zip"
72-
if File.exist?(dsym_path)
73-
upload_symbols_to_crashlytics(
74-
gsp_path: "./Assets/Configs/Firebase/Prod/GoogleService-Info.plist",
75-
dsym_path: dsym_path
76-
)
77-
else
78-
UI.important("No dSYM found at #{dsym_path}")
79-
end
63+
# 3️⃣ Optional: Upload dSYM to Crashlytics (commented out)
64+
# dsym_path = Actions.lane_context[SharedValues::DSYM_OUTPUT_PATH] || "./Fastlanedemoapp.dSYM.zip"
65+
# if File.exist?(dsym_path)
66+
# upload_symbols_to_crashlytics(
67+
# gsp_path: "./Assets/Configs/Firebase/Prod/GoogleService-Info.plist",
68+
# dsym_path: dsym_path
69+
# )
70+
# else
71+
# UI.important("No dSYM found at #{dsym_path}")
72+
# end
8073

81-
# 4️⃣ Upload to TestFlight
82-
puts "=== Upload phase started at #{Time.now} ==="
83-
upload_to_testflight(
84-
notify_external_testers: false,
85-
app_identifier: "com.bundle.app",
86-
changelog: "Upload TestFlight",
87-
groups: ENV["DIFF_GROUP"] || "Team App",
88-
skip_waiting_for_build_processing: true,
89-
skip_submission: true,
90-
beta_app_description: "Description of the app"
91-
)
92-
puts "=== Upload phase completed at #{Time.now} ==="
74+
# 4️⃣ Optional: Upload to TestFlight (commented out)
75+
# puts "=== Upload phase started at #{Time.now} ==="
76+
# upload_to_testflight(
77+
# notify_external_testers: false,
78+
# app_identifier: "com.bundle.app",
79+
# changelog: "Upload TestFlight",
80+
# groups: ENV["DIFF_GROUP"] || "Team App",
81+
# skip_waiting_for_build_processing: true,
82+
# skip_submission: true,
83+
# beta_app_description: "Description of the app"
84+
# )
85+
# puts "=== Upload phase completed at #{Time.now} ==="
86+
87+
puts "=== Beta lane finished at #{Time.now} ==="
9388
end
9489
end

0 commit comments

Comments
 (0)