react-native: [iOS] Upload Symbols Failed on Xcode 16

Description

So everything looks to be working fine, but when building .ipa/uploading to AppStore Connect I got this warning: The archive did not include a dSYM for the hermes.framework with the UUIDs *****

Although everything seems to be in working order (the ipa is successfully uploaded to AppStore Connect), I’m wondering if there’s a way to get rid of this warning.

Steps to reproduce

  1. Create react native project with npx @react-native-community/cli@latest init rnTest1 --version 0.74.5
  2. Open project in Xcode 16 and build it, then upload the ipa to AppStore Connect
  3. At the end of uploading process you’ll be greeted with the warning.

React Native Version

0.74.5

Affected Platforms

Other (please specify)

Output of npx react-native info

info Fetching system and libraries information...
System:
  OS: macOS 14.6.1
  CPU: (12) x64 Intel(R) Xeon(R) W-2135 CPU @ 3.70GHz
  Memory: 34.94 GB / 64.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.18.0
    path: ~/.nvm/versions/node/v20.18.0/bin/node
  Yarn:
    version: 1.22.22
    path: ~/.nvm/versions/node/v20.18.0/bin/yarn
  npm:
    version: 10.8.2
    path: ~/.nvm/versions/node/v20.18.0/bin/npm
  Watchman: Not Found
Managers:
  CocoaPods:
    version: 1.15.2
    path: /usr/local/lib/ruby/gems/3.3.0/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.0
      - iOS 18.0
      - macOS 15.0
      - tvOS 18.0
      - visionOS 2.0
      - watchOS 11.0
  Android SDK: Not Found
IDEs:
  Android Studio: Not Found
  Xcode:
    version: 16.0/16A242d
    path: /usr/bin/xcodebuild
Languages:
  Java: Not Found
  Ruby:
    version: 3.3.5
    path: /usr/local/opt/ruby/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react: Not Found
  react-native: Not Found
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

info React Native v0.75.4 is now available (your project is running on v0.74.5).
info Changelog: https://github.com/facebook/react-native/releases/tag/v0.75.4
info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.74.5
info For more info, check out "https://reactnative.dev/docs/upgrading?os=macos".

Stacktrace or Logs

null

Reproducer

https://github.com/zzz08900/react-native-hermes-dSYM

Screenshots and Videos

Screenshot 2024-10-07 at 00 38 34

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 8
  • Comments: 39 (10 by maintainers)

Most upvoted comments

Still same warning after uploading to appstoreconnect with “react-native”: “0.76.3”. I already searched for the <key>DebugSymbolsPath</key> in the mentioned path but found nothing.

The archive did not include a dSYM for the hermes.framework with the UUIDs [842F8776-9CE7-387F-AFB8-AD89FC4DE398]. Ensure that the archive's dSYM folder includes a DWARF file for hermes.framework with the expected UUIDs.

@zzz08900 Thanks for the issue. we fixed that already with this commit f529fe48768b8a1ee4d74a4964a294c485da83b9, but we forgot to cherry pick it. Let me create pick requests for that.

To unblock yourself, you can

  • open the file <yourApp>/ios/Pods/hermes-engine/destroot/Library/Frameworks/universal/hermes.xcframework/Info.plist
  • manually remove ALL the instances of the following lines:
<key>DebugSymbolsPath</key>
<string>dSYMs</string>
  • save the file
  • create a new build

What I did for now to fix the issue on RN 0.76.3.

  1. Downloaded the dSYM files from here.
  2. Created a folder in ./ios called dSYMs and put the hermes.framework.dSYM file for iphones inside.
  3. Added a new Run Script in the Build Phases of my IOS project after Bundle React Native code and images script.

SCR-20241209-ilj

#!/bin/bash

echo "[Custom Script] Copy dSYMs to hermes-engine 1"

# Define source and destination paths
SOURCE_PATH=${PROJECT_DIR}/dSYMs
DEST_PATH=${PROJECT_DIR}/Pods/hermes-engine/destroot/Library/Frameworks/universal/hermes.xcframework/ios-arm64/

echo "[Custom Script] Copy dSYMs to hermes-engine 2 $SOURCE_PATH"
echo "[Custom Script] Copy dSYMs to hermes-engine 2 $DEST_PATH"


# Check if source directory exists
if [ ! -d "$SOURCE_PATH" ]; then
    echo "[Custom Script] Copy dSYMs to hermes-engine 3 $DEST_PATH"
    echo "Error: Source directory $SOURCE_PATH does not exist"
    exit 1
fi



# Copy the directory
cp -R "$SOURCE_PATH" "$DEST_PATH"
echo "[Custom Script] Copy dSYMs to hermes-engine 4 $DEST_PATH"
echo "Successfully copied dSYMs to Hermes destination"

  1. Clean the project and build again.

Any updates on this? I still get the error in react native version: 0.76.6

Should this be re-opened? As it seems that the issue is still present in 0.76.3

We should backport the fix to previous versions then.

Strange, my own solution even doesn’t work anymore in RN 76.5.

1 - Copying dSYMs files manually doesn’t work. 2 - Couldn’t find the plist attributes to ignore checking dSYMs files in debug and release.

Now, the archive had been uploaded to AppStore Connect but it’s still showing the error in XCode.

What I did for now to fix the issue on RN 0.76.3.

  1. Downloaded the dSYM files from here.
  2. Created a folder in ./ios called dSYMs and put the hermes.framework.dSYM file for iphones inside.
  3. Added a new Run Script in the Build Phases of my IOS project after Bundle React Native code and images script.

SCR-20241209-ilj

#!/bin/bash

echo "[Custom Script] Copy dSYMs to hermes-engine 1"

# Define source and destination paths
SOURCE_PATH=${PROJECT_DIR}/dSYMs
DEST_PATH=${PROJECT_DIR}/Pods/hermes-engine/destroot/Library/Frameworks/universal/hermes.xcframework/ios-arm64/

echo "[Custom Script] Copy dSYMs to hermes-engine 2 $SOURCE_PATH"
echo "[Custom Script] Copy dSYMs to hermes-engine 2 $DEST_PATH"


# Check if source directory exists
if [ ! -d "$SOURCE_PATH" ]; then
    echo "[Custom Script] Copy dSYMs to hermes-engine 3 $DEST_PATH"
    echo "Error: Source directory $SOURCE_PATH does not exist"
    exit 1
fi



# Copy the directory
cp -R "$SOURCE_PATH" "$DEST_PATH"
echo "[Custom Script] Copy dSYMs to hermes-engine 4 $DEST_PATH"
echo "Successfully copied dSYMs to Hermes destination"
  1. Clean the project and build again.

I have the same issue, tried this solution but it didn’t work for me.

Having the same issue on react-native 0.76.2

BTW does this error have any bad effect?

Having the same issue on react-native 0.76.3

@hassanharoon321

  1. move to Xcode 16.2
  2. clean up all the caches for cocoapods: i. rm -rf Pods Podfile.lock <YourApp>.xcworkspace ii. clean up derived data rm -rf ~/Library/Developer/Xcode/DerivedData/ iii. rm -rf ~/Library/Caches/CocoaPods/Pods/External/hermes-engine/
  3. clean up node_modules rm -rf node_modules
  4. rerun yarn install && cd ios && bundle install && bundle exec pod install

@cipolleschi Ran that just now on Xcode 16.2 and RN 0.76.6, and still get the error…

As well here:

Image

Image

@hassanharoon321

  1. move to Xcode 16.2
  2. clean up all the caches for cocoapods: i. rm -rf Pods Podfile.lock <YourApp>.xcworkspace ii. clean up derived data rm -rf ~/Library/Developer/Xcode/DerivedData/ iii. rm -rf ~/Library/Caches/CocoaPods/Pods/External/hermes-engine/
  3. clean up node_modules rm -rf node_modules
  4. rerun yarn install && cd ios && bundle install && bundle exec pod install

@cipolleschi Ran that just now on Xcode 16.2 and RN 0.76.6, and still get the error…

I believe something is wrong with Xcode 16.2. Those steps use to work with previous versions of Xcode when this was happening.

Sadly, there is very little I can do as we don’t control Xcode.

For anyone reading: what you are seeing is just a warning. It does not prevent you from upload and submit your app and Apple will not reject your app because of missing debug symbols in the release binary.

did anyone find the solution I’m still looking for solution nothing works here

I’m getting the same symptom with RN 0.72 when I upgradef from older XCode to XCode 16 in order to ,make debug builds for an iOS 18 device. I"m trying to upload a release build. Since I was doing this same build pre XCode 16, I’m asssuming this wartning is just letting me know aomehting about my bujilds thay is not new as I didn’t otherwize change anything about my RN bujild other than moving to XCode 16…

@cipolleschi Hello, in my case, I moved an application that I built with eas and successfully sent to testflight to cli due to sdks that do not support expo. In summary, eas build / submit processes were smooth