@@ -16,7 +16,6 @@ import { runFastlaneGym, runFastlaneResign } from '../ios/fastlane';
1616import { installPods } from '../ios/pod' ;
1717import { downloadApplicationArchiveAsync } from '../ios/resign' ;
1818import { resolveArtifactPath , resolveBuildConfiguration , resolveScheme } from '../ios/resolve' ;
19- import { Sentry } from '../sentry' ;
2019import { parseAndReportXcactivitylog } from '../steps/utils/ios/xcactivitylog' ;
2120import { cacheStatsAsync , restoreCcacheAsync } from '../steps/functions/restoreBuildCache' ;
2221import { saveCcacheAsync } from '../steps/functions/saveBuildCache' ;
@@ -174,25 +173,17 @@ async function buildAsync(ctx: BuildContext<Ios.Job>): Promise<void> {
174173 } ) ;
175174 }
176175
177- await ctx . runBuildPhase ( BuildPhase . PARSE_XCACTIVITYLOG , async ( ) => {
178- if ( ctx . isLocal ) {
179- ctx . logger . info ( 'Local builds skip build performance analysis.' ) ;
180- return ;
181- }
182- try {
183- const { derivedDataPath, workspacePath } = nullthrows ( fastlaneResult ) ;
176+ if ( ctx . env . EXPERIMENTAL_EAS_XCACTIVITYLOG === '1' ) {
177+ const { derivedDataPath, workspacePath } = nullthrows ( fastlaneResult ) ;
178+ await ctx . runBuildPhase ( BuildPhase . PARSE_XCACTIVITYLOG , async ( ) => {
184179 await parseAndReportXcactivitylog ( {
185180 derivedDataPath,
186181 workspacePath,
187182 logger : ctx . logger ,
188183 proxyBaseUrl : ctx . env . EAS_BUILD_COCOAPODS_CACHE_URL ,
189- env : ctx . env ,
190184 } ) ;
191- } catch ( err : any ) {
192- Sentry . capture ( 'Failed to parse xcactivitylog' , err ) ;
193- ctx . markBuildPhaseSkipped ( ) ;
194- }
195- } ) ;
185+ } ) ;
186+ }
196187
197188 await ctx . runBuildPhase ( BuildPhase . PRE_UPLOAD_ARTIFACTS_HOOK , async ( ) => {
198189 await runHookIfPresent ( ctx , Hook . PRE_UPLOAD_ARTIFACTS ) ;
0 commit comments