Skip to content

Cannot build project after requirering and importing Sentry #5046

@philprime

Description

@philprime

Discussed in #5044

Originally posted by pquerner April 2, 2025
Hey, for a while now I cannot add Sentry to my project. I've tried on and off for a few months, thinking maybe its the Xdebug version or something inbetween and it would fix itself. But it never did and now I am lost.

I dont really know where to start looking, so I will just give every info I have, hopeing someone knows what to do. :D

Podfile has this:

pod 'Sentry', :git => 'https://github.com/getsentry/sentry-cocoa.git', :tag => '8.48.0'

pod install:

pod install
Analyzing dependencies
Pre-downloading: `Sentry` from `https://github.com/getsentry/sentry-cocoa.git`, tag `8.48.0`
Downloading dependencies
Installing Sentry (8.48.0)
Generating Pods project
Integrating client project
Pod installation complete! There are 8 dependencies from the Podfile and 17 total pods installed.

[!] Your project does not explicitly specify the CocoaPods master specs repo. Since CDN is now used as the default, you may safely remove it from your repos directory via `pod repo remove master`. To suppress this warning please add `warn_for_unused_master_specs_repo => false` to your Podfile.

Opening the project and building (no import of Sentry SDK yet) works fine. App works.
Add import Sentry to AppDelegate and try to build: doesnt build anymore.

The build logs (errors); I have modified my apps name.

2025-04-02T22-52-28.txt

Xcode Version is Version 16.2 (16C5032a) on macos 14.5 (23F79). (M1 Macbook Pro)

Min target (as per Podfile) for my app is ios 12.

What I've tried:

  • delete /Library/Developer/Xcode/DerivedData (all folders within)
  • clear build (many times)
  • delete pods folder and pod install again (Pods folder is in my git)
  • use the wizard to install sentry, same results
  • trying older versions (many months ago), under different xcode versions even

Thank you!

Metadata

Metadata

Assignees

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions