sentry-cocoa: No automatic Crash upload

Platform

iOS

Installed

CocoaPods

Version

8.5.0

Steps to Reproduce

  1. First, I registered the SentrySDK in the first line of the application(_:, didFinishLaunchingWithOptions:) method:
public func start(environment: String? = nil, release: String? = nil) {
    guard !SentrySDK.isEnabled else { return }

    SentrySDK.start {
        $0.dsn = Config.sentry.dsn
        $0.debug = !Bool.isRelease
        $0.attachScreenshot = true
        $0.attachViewHierarchy = true
        $0.releaseName = release ?? Bundle.sak.shortVersionString()
        $0.dist = Bundle.sak.bundleVersionString()
        
        if let environment = environment {
            $0.environment = environment
        }
     }
}
  1. Running App on iPhone XS Max with 14.7.1.
  2. Click a pre-set button that executes the SentrySDK.crash() method after the button is clicked.

Expected Result

App crashes and receives a crash log in our self-built Sentry panel.

Actual Result

The app crashes, but the web panel is empty.


I’ve tried calling the capture() method and manually reporting an NSError, and it shows up immediately in the web panel.

I also get WatchdogTermination in the web panel, but the only thing that doesn’t show up is the crash.

Are there any configurations that would affect this behavior? Any help would be appreciated, thanks.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 17 (8 by maintainers)

Most upvoted comments

Thanks a lot for the update, @rakuyoMo. To be on the same page, please be more specific about what you mean by app name. Is it the project name in Xcode, or where precisely in Xcode do you specify the app name? And yes, this seems like a bug. Thanks for finding it 😃.

CFBundleDisplayName and CFBundleName. One of the possible CFBundleName is the key factor.