|
277 | 277 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, |
278 | 278 | 2D1C02A38056F6159C1A0FED /* [CP] Embed Pods Frameworks */, |
279 | 279 | B27CE49DAF9753DDDA15C657 /* [CP] Copy Pods Resources */, |
| 280 | + 1A09405D9F274DE2BF9C5667 /* Upload Debug Symbols to Sentry */, |
280 | 281 | ); |
281 | 282 | buildRules = ( |
282 | 283 | ); |
|
371 | 372 | ); |
372 | 373 | runOnlyForDeploymentPostprocessing = 0; |
373 | 374 | shellPath = /bin/sh; |
374 | | - shellScript = "set -e\n\nexport NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh\n"; |
| 375 | + shellScript = "export SENTRY_PROPERTIES=sentry.properties\nexport EXTRA_PACKAGER_ARGS=\"--sourcemap-output $DERIVED_FILE_DIR/main.jsbundle.map\"\nset -e\n\nexport NODE_BINARY=node\n../node_modules/@sentry/cli/bin/sentry-cli react-native xcode ../node_modules/react-native/scripts/react-native-xcode.sh\n"; |
375 | 376 | }; |
376 | 377 | 05D44FBCF0B6AA444838A62B /* [CP] Copy Pods Resources */ = { |
377 | 378 | isa = PBXShellScriptBuildPhase; |
|
504 | 505 | shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"; |
505 | 506 | showEnvVarsInLog = 0; |
506 | 507 | }; |
| 508 | + 1A09405D9F274DE2BF9C5667 /* Upload Debug Symbols to Sentry */ = { |
| 509 | + isa = PBXShellScriptBuildPhase; |
| 510 | + buildActionMask = 2147483647; |
| 511 | + files = ( |
| 512 | + ); |
| 513 | + runOnlyForDeploymentPostprocessing = 0; |
| 514 | + name = "Upload Debug Symbols to Sentry"; |
| 515 | + inputPaths = ( |
| 516 | + ); |
| 517 | + outputPaths = ( |
| 518 | + ); |
| 519 | + shellPath = /bin/sh; |
| 520 | + shellScript = "export SENTRY_PROPERTIES=sentry.properties\n../node_modules/@sentry/cli/bin/sentry-cli upload-dsym"; |
| 521 | + }; |
507 | 522 | /* End PBXShellScriptBuildPhase section */ |
508 | 523 |
|
509 | 524 | /* Begin PBXSourcesBuildPhase section */ |
|
595 | 610 | buildSettings = { |
596 | 611 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; |
597 | 612 | CLANG_ENABLE_MODULES = YES; |
598 | | - CURRENT_PROJECT_VERSION = 1; |
| 613 | + CURRENT_PROJECT_VERSION = 4; |
599 | 614 | ENABLE_BITCODE = NO; |
600 | 615 | INFOPLIST_FILE = HelloWorld/Info.plist; |
601 | 616 | LD_RUNPATH_SEARCH_PATHS = ( |
|
622 | 637 | buildSettings = { |
623 | 638 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; |
624 | 639 | CLANG_ENABLE_MODULES = YES; |
625 | | - CURRENT_PROJECT_VERSION = 1; |
| 640 | + CURRENT_PROJECT_VERSION = 4; |
626 | 641 | INFOPLIST_FILE = HelloWorld/Info.plist; |
627 | 642 | LD_RUNPATH_SEARCH_PATHS = ( |
628 | 643 | "$(inherited)", |
|
0 commit comments