sentry-cli: Using `upload-dif` results in Serde("missing field `CFBundleName`")

Environment

macOS 12.4 Xcode 13.4.1, iOS app for min iOS 13 sentry-cli 2.5.0 installed via homebrew

Steps to reproduce

sentry-cli upload-dif -o ORG -p PROJECT --wait --log-level=debug ./AppName.app.dSYM.zip

Expected Result

Debug information files uploaded to Sentry.

Actual Result

error: Could not parse Info.plist file caused by: Serde("missing field CFBundleName")

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 2
  • Comments: 25 (9 by maintainers)

Most upvoted comments

@danielrobleM can you provide a concrete repro for this? I verified using @artur-zaremba repro, which had the same bug, and it’s fixed now for his case.

Got the repro, found the issue, working on the fix

I have just created new project, added SPM library and added initialization code in AppDelegate.swift. Then I uploaded it to TestFlight, downloaded dSYM and tried upload it via sentry-cli upload-dif - the error is the same. I have sent you invite to the project, please check @brustolin

Hey @artur-zaremba I’ve encountered the same issue when using fastlane plugin. What helped me was to copy & paste all bundle related information from the “autogenerated” Info.plist (I am using this “semi sync” approach) into the new local file. Now my “local” Info.plist file looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>CFBundleIdentifier</key>
	<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
	<key>CFBundleName</key>
	<string>$(PRODUCT_NAME)</string>
	<key>CFBundleVersion</key>
	<string>$(CURRENT_PROJECT_VERSION)</string>
	<key>CFBundleShortVersionString</key>
	<string>$(MARKETING_VERSION)</string>
	<key>CFBundleExecutable</key>
	<string>$(EXECUTABLE_NAME)</string>
	<key>CFBundlePackageType</key>
	<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
</dict>
</plist>

This sill feels like a workaround rather then a real solution but at least it unblocked me.