Skip to content

Commit 1ad9d7b

Browse files
authored
Update Fastfile
1 parent 340d9f3 commit 1ad9d7b

File tree

1 file changed

+4
-33
lines changed

1 file changed

+4
-33
lines changed

Fastlanedemoapp/fastlane/Fastfile

Lines changed: 4 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
default_platform(:ios)
22

33
platform :ios do
4-
54
before_all do |lane, _options|
65
setup_ci if [:beta, :distribution_deploy_dev, :distribution_deploy_recette, :distribution_deploy_staging].include?(lane)
76

@@ -10,7 +9,7 @@ platform :ios do
109
puts "Installing/updating pods..."
1110
cocoapods(
1211
try_repo_update_on_error: true,
13-
podfile: "./Podfile",
12+
podfile: "./Podfile", # assumes Podfile is at repo root
1413
clean_install: true,
1514
verbose: true
1615
)
@@ -45,17 +44,13 @@ platform :ios do
4544
xcode_select("/Applications/Xcode.app")
4645
end
4746

48-
# 2️⃣ Ensure pods are installed
49-
puts "=== Installing/updating pods ==="
50-
sh("pod install --project-directory=./ --verbose")
51-
52-
# 3️⃣ Clean build to avoid stale DerivedData issues
47+
# 2️⃣ Clean build to avoid stale DerivedData issues
5348
sh("xcodebuild clean -workspace ./Fastlanedemoapp.xcworkspace -scheme Fastlanedemoapp -configuration Release")
5449

55-
# 4️⃣ Prepare archive (increment version numbers)
50+
# 3️⃣ Prepare archive (increment version numbers)
5651
prepare_archive
5752

58-
# 5️⃣ Build app with Release configuration
53+
# 4️⃣ Build app with Release configuration
5954
puts "=== Build phase started at #{Time.now} ==="
6055
build_app(
6156
workspace: "./Fastlanedemoapp.xcworkspace",
@@ -69,30 +64,6 @@ platform :ios do
6964
)
7065
puts "=== Build phase completed at #{Time.now} ==="
7166

72-
# 6️⃣ Optional: Upload dSYM to Crashlytics (commented out)
73-
# dsym_path = Actions.lane_context[SharedValues::DSYM_OUTPUT_PATH] || "./Fastlanedemoapp.dSYM.zip"
74-
# if File.exist?(dsym_path)
75-
# upload_symbols_to_crashlytics(
76-
# gsp_path: "./Assets/Configs/Firebase/Prod/GoogleService-Info.plist",
77-
# dsym_path: dsym_path
78-
# )
79-
# else
80-
# UI.important("No dSYM found at #{dsym_path}")
81-
# end
82-
83-
# 7️⃣ Optional: Upload to TestFlight (commented out)
84-
# puts "=== Upload phase started at #{Time.now} ==="
85-
# upload_to_testflight(
86-
# notify_external_testers: false,
87-
# app_identifier: "com.bundle.app",
88-
# changelog: "Upload TestFlight",
89-
# groups: ENV["DIFF_GROUP"] || "Team App",
90-
# skip_waiting_for_build_processing: true,
91-
# skip_submission: true,
92-
# beta_app_description: "Description of the app"
93-
# )
94-
# puts "=== Upload phase completed at #{Time.now} ==="
95-
9667
puts "=== Beta lane finished at #{Time.now} ==="
9768
end
9869
end

0 commit comments

Comments
 (0)