Skip to content

IOS Build failed in Xcode 16 #4095

@Bayramito

Description

@Bayramito

❗ Update from the maintainers: For building with Xcode 16 you need to

  • Use @sentry/react-native version 5.31.0 or newer.
  • Set APPLICATION_EXTENSION_API_ONLY=YES for Sentry like so:
post_install do |installer|
  react_native_post_install(
    installer,
    config[:reactNativePath],
    :mac_catalyst_enabled => false,
  )

  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      if target.name == 'Sentry'
        config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'YES'
      else
        # configuration for other targets
      end
    end
  end
end

We're investigating how we can make the second step unnecessary (related: #3908).


Description

I just updated my mac to MACOS 15. And also updated Sentry version to latest which is 5.32 but i started to get this build error in Xcode.

Previously i was using xcode 15 and macOS Sonoma and 5.19 of Sentry.

Image

My setup
"@sentry/react-native": "^5.32.0",
"react-native": "0.72.14",
XCode: Version 16.0 (16A242d)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Done

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions