Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOS Build failed in Xcode 16 #4095

Closed
Bayramito opened this issue Sep 17, 2024 · 42 comments
Closed

IOS Build failed in Xcode 16 #4095

Bayramito opened this issue Sep 17, 2024 · 42 comments

Comments

@Bayramito
Copy link

Bayramito commented Sep 17, 2024

❗ 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)

@tommynordli
Copy link

I'm also getting build errors on the latest Xcode

CompileC /Users/tommy/Library/Developer/Xcode/DerivedData/MyApp-bswewohvzvjjatfonkbgcibsndjn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Sentry.build/Objects-normal/arm64/SentryCrashMonitor_CPPException.o /Users/tommy/Git/myApp/app.worktrees/fix-bg-location/ios/Pods/Sentry/Sources/SentryCrash/Recording/Monitors/SentryCrashMonitor_CPPException.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'Sentry' from project 'Pods')
    cd /Users/tommy/Git/myApp/app.worktrees/fix-bg-location/ios/Pods
    
    Using response file: /Users/tommy/Library/Developer/Xcode/DerivedData/MyApp-bswewohvzvjjatfonkbgcibsndjn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Sentry.build/Objects-normal/arm64/82b82416624d2658e5098eb0a28c15c5-common-args.resp
    
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -ivfsstatcache /Users/tommy/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphonesimulator18.0-22A3362-db63dc9361471f152f572502bdbfe70a.sdkstatcache -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fno-color-diagnostics -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/tommy/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Werror\=return-type -Wdocumentation -Wunreachable-code -Werror\=deprecated-objc-isa-usage -Werror\=objc-root-class -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -Wno-implicit-fallthrough -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -Wno-sign-conversion -Winfinite-recursion -Wmove -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wrange-loop-analysis -Wno-semicolon-before-method-body -Wunguarded-availability -index-store-path /Users/tommy/Library/Developer/Xcode/DerivedData/MyApp-bswewohvzvjjatfonkbgcibsndjn/Index.noindex/DataStore @/Users/tommy/Library/Developer/Xcode/DerivedData/MyApp-bswewohvzvjjatfonkbgcibsndjn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Sentry.build/Objects-normal/arm64/82b82416624d2658e5098eb0a28c15c5-common-args.resp -include /Users/tommy/Git/myApp/app.worktrees/fix-bg-location/ios/Pods/Target\ Support\ Files/Sentry/Sentry-prefix.pch -MMD -MT dependencies -MF /Users/tommy/Library/Developer/Xcode/DerivedData/MyApp-bswewohvzvjjatfonkbgcibsndjn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Sentry.build/Objects-normal/arm64/SentryCrashMonitor_CPPException.d --serialize-diagnostics /Users/tommy/Library/Developer/Xcode/DerivedData/MyApp-bswewohvzvjjatfonkbgcibsndjn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Sentry.build/Objects-normal/arm64/SentryCrashMonitor_CPPException.dia -c /Users/tommy/Git/myApp/app.worktrees/fix-bg-location/ios/Pods/Sentry/Sources/SentryCrash/Recording/Monitors/SentryCrashMonitor_CPPException.cpp -o /Users/tommy/Library/Developer/Xcode/DerivedData/MyApp-bswewohvzvjjatfonkbgcibsndjn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Sentry.build/Objects-normal/arm64/SentryCrashMonitor_CPPException.o -index-unit-output-path /Pods.build/Debug-iphonesimulator/Sentry.build/Objects-normal/arm64/SentryCrashMonitor_CPPException.o
/Users/tommy/Git/myApp/app.worktrees/fix-bg-location/ios/Pods/Sentry/Sources/SentryCrash/Recording/Monitors/SentryCrashMonitor_CPPException.cpp:60:13: error: no type named 'terminate_handler' in namespace 'std'
   60 | static std::terminate_handler g_originalTerminateHandler;
      |        ~~~~~^
/Users/tommy/Git/myApp/app.worktrees/fix-bg-location/ios/Pods/Sentry/Sources/SentryCrash/Recording/Monitors/SentryCrashMonitor_CPPException.cpp:206:47: error: no member named 'set_terminate' in namespace 'std'
  206 |             g_originalTerminateHandler = std::set_terminate(CPPExceptionTerminate);
      |                                          ~~~~~^
/Users/tommy/Git/myApp/app.worktrees/fix-bg-location/ios/Pods/Sentry/Sources/SentryCrash/Recording/Monitors/SentryCrashMonitor_CPPException.cpp:208:18: error: no type named 'set_terminate' in namespace 'std'
  208 |             std::set_terminate(g_originalTerminateHandler);
      |             ~~~~~^
3 errors generated.

Image

@LeandroTamola
Copy link

Same here using expo and development client.

@tommynordli
Copy link

Fixed it by updating react-native to 0.75 (React Native 0.75 is now available with Expo SDK 51) and sentry to 5.32

@Bayramito
Copy link
Author

Fixed it by updating react-native to 0.75 (React Native 0.75 is now available with Expo SDK 51) and sentry to 5.32

Thanks but that's not a solution :) Especially if your project scale is a bit bigger than regular

@teekirol
Copy link

I was able to resolve this by upgrading to @sentry/react-native 5.32.0. I am still using React Native 0.73 and Expo 50.

@montasaurus
Copy link

Make sure you explicitly specify the version, npm is currently showing an older version as the latest

npm i @sentry/[email protected]

Image

@haileyok
Copy link

Upgrading to 5.32.0 does indeed allow us to build the app, however we're seeing a crash in production builds:

-[__NSArrayM length]: unrecognized selector sent to instance 0x303720720

This is coming from https://github.com/getsentry/sentry-react-native/blob/main/ios/RNSentry.mm#L455, where sometimes captureEnvelope is being called with an array rather than a string. Adding a small hack here (bluesky-social/social-app#5400) prevents the crash, though I haven't been able to spend any time to investigate where it is being called with an array rather than string. (It looks like the old behavior - which changed in f15994e - did call it with an array).

I'll open a separate issue with this as well once I verify this isn't a bizarre cache issue.

@darix795
Copy link

darix795 commented Sep 18, 2024

I upgrade to versions 5.24.0, 5.24.3 and 5.32 with react native 0.74.5 but the problem wasn't fixed.
Same issue in sentry-cocoa repo getsentry/sentry-cocoa#4339

Use of undeclared identifier 'SentryLog'

@Bayramito
Copy link
Author

Bayramito commented Sep 18, 2024

I upgrade to versions 5.24.0, 5.24.3 and 5.32 with react native 0.74.5 but the problem wasn't fixed. Same issue in sentry-cocoa repo getsentry/sentry-cocoa#4339

Use of undeclared identifier 'SentryLog'

Only upgrading did not fixed on me either, you also need to apply this in your Podfile.

if target.name != "Sentry"           
   config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'NO' 
end

@darix795
Copy link

darix795 commented Sep 18, 2024

I upgrade to versions 5.24.0, 5.24.3 and 5.32 with react native 0.74.5 but the problem wasn't fixed. Same issue in sentry-cocoa repo getsentry/sentry-cocoa#4339
Use of undeclared identifier 'SentryLog'

Only upgrading did not fixed on me either, you also need to apply this in your Podfile.

if target.name != "Sentry"           
   config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'NO' 
end

Thanks! It seems to work only with version 5.32.0.

Is this a bug or an expected behaviour?
I hope this will be integrate in future versions.

@jrodriguer
Copy link

jrodriguer commented Sep 18, 2024

I upgrade to versions 5.24.0, 5.24.3 and 5.32 with react native 0.74.5 but the problem wasn't fixed. Same issue in sentry-cocoa repo getsentry/sentry-cocoa#4339
Use of undeclared identifier 'SentryLog'

Only upgrading did not fixed on me either, you also need to apply this in your Podfile.

if target.name != "Sentry"           
   config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'NO' 
end

Same error for 'Sentry' installed package.

Image

I updated with recommended settings (Xcode warnings) and add condition to disable APPLICATION_EXTENSION_API_ONLY for non-Sentry targets.

platform :ios, '16'

target '' do
  use_frameworks!

  pod 'Sentry'

end

post_install do |installer|
  installer.aggregate_targets.each do |target|
      target.xcconfigs.each do |variant, xcconfig|
        xcconfig_path = target.client_root + target.xcconfig_relative_path(variant)
        IO.write(xcconfig_path, IO.read(xcconfig_path).gsub("DT_TOOLCHAIN_DIR", "TOOLCHAIN_DIR"))
      end
    end
    installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
        if config.base_configuration_reference.is_a? Xcodeproj::Project::Object::PBXFileReference
          xcconfig_path = config.base_configuration_reference.real_path
          IO.write(xcconfig_path, IO.read(xcconfig_path).gsub("DT_TOOLCHAIN_DIR", "TOOLCHAIN_DIR"))
        end
        if target.name != "Sentry"
          config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'NO'
        end
      end
    end
end

Any recommendations?

@kahest kahest changed the title IOS Build failed in XCode 16 IOS Build failed in Xcode 16 Sep 18, 2024
@jrodriguer
Copy link

I upgrade to versions 5.24.0, 5.24.3 and 5.32 with react native 0.74.5 but the problem wasn't fixed. Same issue in sentry-cocoa repo getsentry/sentry-cocoa#4339
Use of undeclared identifier 'SentryLog'

Only upgrading did not fixed on me either, you also need to apply this in your Podfile.

if target.name != "Sentry"           
   config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'NO' 
end

Same error for 'Sentry' installed package.

Image

I updated with recommended settings (Xcode warnings) and add condition to disable APPLICATION_EXTENSION_API_ONLY for non-Sentry targets.

platform :ios, '16'

target '' do
  use_frameworks!

  pod 'Sentry'

end

post_install do |installer|
  installer.aggregate_targets.each do |target|
      target.xcconfigs.each do |variant, xcconfig|
        xcconfig_path = target.client_root + target.xcconfig_relative_path(variant)
        IO.write(xcconfig_path, IO.read(xcconfig_path).gsub("DT_TOOLCHAIN_DIR", "TOOLCHAIN_DIR"))
      end
    end
    installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
        if config.base_configuration_reference.is_a? Xcodeproj::Project::Object::PBXFileReference
          xcconfig_path = config.base_configuration_reference.real_path
          IO.write(xcconfig_path, IO.read(xcconfig_path).gsub("DT_TOOLCHAIN_DIR", "TOOLCHAIN_DIR"))
        end
        if target.name != "Sentry"
          config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'NO'
        end
      end
    end
end

Any recommendations?

I think it would be more correct to pass this question to the appropriate repository, sentry-cocoa 😳

@kahest
Copy link
Member

kahest commented Sep 18, 2024

@jrodriguer which version of the SDK are you using? For building with Xcode 16 you need to update to 5.31.0 or newer.

@kahest
Copy link
Member

kahest commented Sep 18, 2024

❗ Please note: 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:
    target.build_configurations.each do |config|
      if target.name != "Sentry"
        config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'NO'
      end
    end

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

@jrodriguer
Copy link

@jrodriguer which version of the SDK are you using? For building with Xcode 16 you need to update to 5.31.0 or newer.

❗ Please note: 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:
    target.build_configurations.each do |config|
      if target.name != "Sentry"
        config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'NO'
      end
    end

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

I don't have react-native, if not an IOS project with Pod as a dependency manager.
The second step working fine.

I have updated Sentry to the latest version, now everything is correct.

@krystofwoldrich
Copy link
Member

@shehryar-munir Thank you for reporting the issue with RN 0.64, Xcode 16 and @sentry/[email protected]. Sadly RN 0.64 is unsupported by the SDK and also by the RN team.

What Sentry RN SDK version were you using before upgrading to Xcode 16?

@wdifruscio
Copy link

This is so frustrating.. since the new xcode was released i think I am going to have to spend who knows how long figuring out how to rebuild this app to work on the latest RN version

Anyway, I started having this issue on 0.69.6 and 4.2.2

I wasn't having it yesterday but I ran a new prebuild in an attempt to fix some other deps and now this is causing me pain again, hopefully I can upgrade to a minor version bump to resolve

I also noticed on the older version that there was a bitcode error when uploading to app store with xcode16 and 4.2.2 - if relevant for whoever reads this lol

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Oct 1, 2024
@getsantry getsantry bot removed the status in GitHub Issues with 👀 3 Oct 2, 2024
@krystofwoldrich krystofwoldrich moved this from Needs Investigation to Needs Discussion in Mobile & Cross Platform SDK Oct 2, 2024
@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Oct 2, 2024
@krystofwoldrich
Copy link
Member

Hi @wdifruscio,
we understand the frustration.

Let us know if https://github.com/getsentry/sentry-react-native/releases/tag/5.31.1 works for you.

This and later v5 version don't have any known issues with the Xcode 16.

@getsantry getsantry bot removed the status in GitHub Issues with 👀 3 Oct 4, 2024
@github-project-automation github-project-automation bot moved this from Needs Discussion to Done in Mobile & Cross Platform SDK Oct 4, 2024
iGroza pushed a commit to haqq-network/haqq-wallet that referenced this issue Oct 4, 2024
github-merge-queue bot pushed a commit to haqq-network/haqq-wallet that referenced this issue Oct 4, 2024
* chore: Upgrade sentry packages

* fix yarn.lock

* pod update

* Update Podfile

* fix: getsentry/sentry-react-native#4095

---------

Co-authored-by: iGroza <[email protected]>
Co-authored-by: Kirill Ageychenko <[email protected]>
devkudasov added a commit to haqq-network/haqq-wallet that referenced this issue Oct 4, 2024
* chore: Upgrade sentry packages

* fix yarn.lock

* pod update

* Update Podfile

* fix: getsentry/sentry-react-native#4095

---------

Co-authored-by: iGroza <[email protected]>
Co-authored-by: Kirill Ageychenko <[email protected]>
github-merge-queue bot pushed a commit to haqq-network/haqq-wallet that referenced this issue Oct 7, 2024
* fix(HW-762): Reset pin fix

* up app version

* chore: index.js sugar (#2118)

* chore: Upgrade sentry packages (#2119)

* chore: Upgrade sentry packages

* fix yarn.lock

* pod update

* Update Podfile

* fix: getsentry/sentry-react-native#4095

---------

Co-authored-by: iGroza <[email protected]>
Co-authored-by: Kirill Ageychenko <[email protected]>

* feat: reset wallet when keychain broken (#2121)

Co-authored-by: iGroza <[email protected]>

* chore(HW-771): update fastlane (#2122)

Co-authored-by: iGroza <[email protected]>

---------

Co-authored-by: iGroza <[email protected]>
Co-authored-by: Kirill Ageychenko <[email protected]>
devkudasov added a commit to haqq-network/haqq-wallet that referenced this issue Oct 7, 2024
* fix(HW-762): Reset pin fix

* up app version

* chore: index.js sugar (#2118)

* chore: Upgrade sentry packages (#2119)

* chore: Upgrade sentry packages

* fix yarn.lock

* pod update

* Update Podfile

* fix: getsentry/sentry-react-native#4095

---------

Co-authored-by: iGroza <[email protected]>
Co-authored-by: Kirill Ageychenko <[email protected]>

* feat: reset wallet when keychain broken (#2121)

Co-authored-by: iGroza <[email protected]>

* chore(HW-771): update fastlane (#2122)

Co-authored-by: iGroza <[email protected]>

---------

Co-authored-by: iGroza <[email protected]>
Co-authored-by: Kirill Ageychenko <[email protected]>
github-merge-queue bot pushed a commit to haqq-network/haqq-wallet that referenced this issue Oct 7, 2024
* fix(HW-773): Remove banner check for permanent notifications banner

* fix: native swap (#2120)

* fix(HW-759): swap screen issues

* fix(HW-763): added swap finish screen

* feat: added swap tokens sorting

---------

Co-authored-by: iGroza <[email protected]>

* fix(HW-762): Reset pin fix (#2116)

* fix(HW-762): Reset pin fix

* up app version

* chore: index.js sugar (#2118)

* chore: Upgrade sentry packages (#2119)

* chore: Upgrade sentry packages

* fix yarn.lock

* pod update

* Update Podfile

* fix: getsentry/sentry-react-native#4095

---------

Co-authored-by: iGroza <[email protected]>
Co-authored-by: Kirill Ageychenko <[email protected]>

* feat: reset wallet when keychain broken (#2121)

Co-authored-by: iGroza <[email protected]>

* chore(HW-771): update fastlane (#2122)

Co-authored-by: iGroza <[email protected]>

---------

Co-authored-by: iGroza <[email protected]>
Co-authored-by: Kirill Ageychenko <[email protected]>

* feat(hw-770): implement-open-browser-dynamic-link-for-mobile-wallet (#2117)

Co-authored-by: iGroza <[email protected]>

* feat(HW-761): log all navigation params for Posthog (#2115)

* feat(HW-761): Hide privateKey for posthog

* feat(HW-761): Hide currentPin from posthog

* feat(HW-761): Hide WalletInitialData mnemonic and privateKey from posthog

* feat(HW-761): Convert SecureValue method to getter

* up version

* feat(HW-761): FIx hide value string representation

---------

Co-authored-by: Kirill Ageychenko <[email protected]>
Co-authored-by: iGroza <[email protected]>
@ghost
Copy link

ghost commented Oct 8, 2024

I'm also getting build errors on the latest Xcode

CompileC /Users/tommy/Library/Developer/Xcode/DerivedData/MyApp-bswewohvzvjjatfonkbgcibsndjn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Sentry.build/Objects-normal/arm64/SentryCrashMonitor_CPPException.o /Users/tommy/Git/myApp/app.worktrees/fix-bg-location/ios/Pods/Sentry/Sources/SentryCrash/Recording/Monitors/SentryCrashMonitor_CPPException.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'Sentry' from project 'Pods')
    cd /Users/tommy/Git/myApp/app.worktrees/fix-bg-location/ios/Pods
    
    Using response file: /Users/tommy/Library/Developer/Xcode/DerivedData/MyApp-bswewohvzvjjatfonkbgcibsndjn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Sentry.build/Objects-normal/arm64/82b82416624d2658e5098eb0a28c15c5-common-args.resp
    
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -ivfsstatcache /Users/tommy/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphonesimulator18.0-22A3362-db63dc9361471f152f572502bdbfe70a.sdkstatcache -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fno-color-diagnostics -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/tommy/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Werror\=return-type -Wdocumentation -Wunreachable-code -Werror\=deprecated-objc-isa-usage -Werror\=objc-root-class -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -Wno-implicit-fallthrough -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -Wno-sign-conversion -Winfinite-recursion -Wmove -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wrange-loop-analysis -Wno-semicolon-before-method-body -Wunguarded-availability -index-store-path /Users/tommy/Library/Developer/Xcode/DerivedData/MyApp-bswewohvzvjjatfonkbgcibsndjn/Index.noindex/DataStore @/Users/tommy/Library/Developer/Xcode/DerivedData/MyApp-bswewohvzvjjatfonkbgcibsndjn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Sentry.build/Objects-normal/arm64/82b82416624d2658e5098eb0a28c15c5-common-args.resp -include /Users/tommy/Git/myApp/app.worktrees/fix-bg-location/ios/Pods/Target\ Support\ Files/Sentry/Sentry-prefix.pch -MMD -MT dependencies -MF /Users/tommy/Library/Developer/Xcode/DerivedData/MyApp-bswewohvzvjjatfonkbgcibsndjn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Sentry.build/Objects-normal/arm64/SentryCrashMonitor_CPPException.d --serialize-diagnostics /Users/tommy/Library/Developer/Xcode/DerivedData/MyApp-bswewohvzvjjatfonkbgcibsndjn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Sentry.build/Objects-normal/arm64/SentryCrashMonitor_CPPException.dia -c /Users/tommy/Git/myApp/app.worktrees/fix-bg-location/ios/Pods/Sentry/Sources/SentryCrash/Recording/Monitors/SentryCrashMonitor_CPPException.cpp -o /Users/tommy/Library/Developer/Xcode/DerivedData/MyApp-bswewohvzvjjatfonkbgcibsndjn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Sentry.build/Objects-normal/arm64/SentryCrashMonitor_CPPException.o -index-unit-output-path /Pods.build/Debug-iphonesimulator/Sentry.build/Objects-normal/arm64/SentryCrashMonitor_CPPException.o
/Users/tommy/Git/myApp/app.worktrees/fix-bg-location/ios/Pods/Sentry/Sources/SentryCrash/Recording/Monitors/SentryCrashMonitor_CPPException.cpp:60:13: error: no type named 'terminate_handler' in namespace 'std'
   60 | static std::terminate_handler g_originalTerminateHandler;
      |        ~~~~~^
/Users/tommy/Git/myApp/app.worktrees/fix-bg-location/ios/Pods/Sentry/Sources/SentryCrash/Recording/Monitors/SentryCrashMonitor_CPPException.cpp:206:47: error: no member named 'set_terminate' in namespace 'std'
  206 |             g_originalTerminateHandler = std::set_terminate(CPPExceptionTerminate);
      |                                          ~~~~~^
/Users/tommy/Git/myApp/app.worktrees/fix-bg-location/ios/Pods/Sentry/Sources/SentryCrash/Recording/Monitors/SentryCrashMonitor_CPPException.cpp:208:18: error: no type named 'set_terminate' in namespace 'std'
  208 |             std::set_terminate(g_originalTerminateHandler);
      |             ~~~~~^
3 errors generated.

Image

how do you fix it ?

@stackchain
Copy link

Hey, I see it was closed, yet when trying to build with new sentry package it throws some weird error (android + iOS)

@wdifruscio
Copy link

Hi @wdifruscio, we understand the frustration.

Let us know if https://github.com/getsentry/sentry-react-native/releases/tag/5.31.1 works for you.

This and later v5 version don't have any known issues with the Xcode 16.

I was luckily, after much pain, able to build on the latest sentry version and 0.69.9 without too many hiccups, I feel like react native developers should have the xcode release dates in their calendar to make sure all major releases are deployed beforehand -_-

@shtefanilie
Copy link

I was able to resolve this by upgrading to @sentry/react-native 5.32.0. I am still using React Native 0.73 and Expo 50.

I bumped even to 5.35.0 as this was the latest. Also, currently on 0.73.2, barebones, without expo.
I did run pod deintegrate and pod repo update. After that pod install and all went well 💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Archived in project
Development

No branches or pull requests