Skip to content

Commit

Permalink
log output the phase.inputPaths for xcode build phases
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Edney committed Jan 29, 2024
1 parent 3c96c74 commit 554e016
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-native-cli/src/lib/Xcode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export async function updateXcodeProject (projectRoot: string, endpoint: string|

const buildPhaseMap = proj?.hash?.project?.objects?.PBXShellScriptBuildPhase || []
logger.info('Ensuring React Native build phase outputs source maps')
logger.info(buildPhaseMap)

const didUpdate = await updateBuildReactNativeTask(buildPhaseMap, logger)
logger.info('Adding build phase to upload source maps to Bugsnag')
Expand All @@ -58,6 +57,7 @@ async function updateBuildReactNativeTask (buildPhaseMap: Record<string, Record<
// `node --print "require('path').dirname(require.resolve('react-native/package.json')) + '/scripts/react-native-xcode.sh'"`
// so we need a little leniency
if (typeof phase.shellScript === 'string' && phase.shellScript.includes('/react-native-xcode.sh')) {
logger.info(phase.inputPaths)
let didThisUpdate
[phase.shellScript, didThisUpdate] = addExtraPackagerArgs(shellBuildPhaseKey, phase.shellScript, logger)
if (didThisUpdate) {
Expand Down

0 comments on commit 554e016

Please sign in to comment.