Closed gaodeng closed 1 year ago
:warning: | Missing Reproducible Example |
---|---|
:information_source: | We could not detect a reproducible example in your issue report. Please provide either:
|
Hi @gaodeng, thanks for reporting.. but, what's the crash? 😅
It's a bit hard to help out and debug an error without a stacktrace or something.
I'll try to reproduce it locally, but it will take a while to download Xcode.
Hi @cipolleschi I have actually included Crash Report in the issue, but it's collapsed to avoid excessive length. You can expand it to view the details.
I appreciate your willingness to help. Let me know if you need any further information or assistance.
Sorry, my bad. I haven't seen the drop down! 🤦 Still installing simulators... ⚙️
Does this problem also occur in IOS 15 and IOS 16?
On iOS 15, it works properly. I'm now about to try with 16, but I'm starting thinking that is something related to iOS <= 14.5
@cipolleschi So it works on IOS 14.6?
No, it works on iOS >= 15.0, but it does not work on iOS 13.4...14.6.
See my comment here
Workaround: add -Wl,-ld_classic to the OTHER_LDFLAGS build setting.
@gaodeng where should we add those flags? I tried adding them in the app project and it improved the situation, but then I ended up with this other (related and similar) error:
I then tried to add those flags to the Pods project, but nothing changes.
Should we add them to ALL the targets?
So:
I think that Hermes need the flag as well.
Stop unsubscribe
William Pope Jr
On Thu, Sep 14, 2023, 12:03 PM Riccardo Cipolleschi < @.***> wrote:
So:
- No flipper, JSC, Old Architecture => ✅
- Flipper, JSC, Old Architecture => ✅
- Flipper, Hermes, Old Architecture => ❌
- Flipper, JSC, New Architecture => ✅
- Flipper, Hermes, New Architecture => ❌
I think that Hermes need the flag as well.
— Reply to this email directly, view it on GitHub https://github.com/facebook/react-native/issues/39069#issuecomment-1719730059, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALNSC3ATNCU6YKR5OLRJHJTX2MTGZANCNFSM6AAAAAA3VGWQF4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>
s/o to @gaodeng for the ldflags. good to know the new prime linker from xcode 15 did some tricks.
All the fixes for Xcode 15 landed, So I'm closing the issue! :D Thanks @gaodeng for the hint, @kudo for helping out and @tido64 for the Hermes flags!
My app runs fine on simulator, RN 0.68.2 but crashes in react core pod RCTCxxBridge file - at _reactInstance.reset(new Instance); when I try running on device. iOS - 17, iphone 15, xcode 15
React Native 0.68 is not supported anymore as per the Support Window Policy. The release crew is taking care of releasing a new patch with the fix for each version currently supported. @shilpa12233 please update your app to a supported version of React Native.
Hi,
I recently upgraded from Xcode 14.3.1 to Xcode 15. My app works fine when I run it on the iPhone 15 simulator (ios 17), but does not work on my physical test device (iphone SE ios 14.6).
I reproduce the same thing with a new project that I have just created on the same version (0.71.14) of react-native.
I'll provide you with a screen to detail the error.
Thanks in advance for your help !
What's the output of xcodebuild -version
?
Have you run bundle exec pod install
again before running your app?
We fix it already in 0.71.14, but for the fix to work the output of xocdebuild -version
must contains Xcode 15.y.z
and you need to reinstall the pods to regenerate the project with the right build flags.
If you did it already, try to run bundle exec pod deintegrate
and then to run bundle exec pod install
again.
Thank you for your answer @cipolleschi.
Indeed the result of my xcodebuild -version was not correct. After performing all steps, the build works on my test iphone.
Thanks again for your help.
@cipolleschi I run into the same issue as @DamienDulac , but my device iOS version is 12.5.7, Xcode (and xcodebuild -version) is 15.0.1, react native is 0.72.1. 'pod deintegrate' and 'pod install' from the ios directory didn't help..
Hi, can you try to update to Xcode 15.2? Apple has fixed the issue on their side.
@cipolleschi Thanks, updating Xcode helped!
Description
I encountered an issue while developing a React Native app using the latest version (npx react-native@latest) and Xcode 15 beta6. When attempting to build and run even the simplest React Native empty project on iOS 14, it crashes immediately on startup. However, when testing the same project on iOS 17, the app runs without any issues.
The issue is specific to Xcode 15 beta6 and iOS 14. When using Xcode 14 to compile and run the app, there are no crashes on iOS 14。 No crashes were observed when running the app on iOS 17. I have tried cleaning the project, resetting the simulator, and reinstalling dependencies, but the issue persists. Please let me know if there are any additional details or steps I can provide to assist in resolving this issue.
Crash Report
``` ------------------------------------- Translated Report (Full Report Below) ------------------------------------- Incident Identifier: 74F007D6-FE21-460C-8CE7-BA7EC43CC454 CrashReporter Key: 8C0AD821-0E2C-E0BC-A8AC-B4DD58DE7E1C Hardware Model: iMac18,3 Process: AwesomeProject [8952] Path: /Users/USER/Library/Developer/CoreSimulator/Devices/D03B2226-9D52-4F67-9DFE-0BF5174A6266/data/Containers/Bundle/Application/3681B163-A0F6-462E-90EC-2DEECC6A40C3/AwesomeProject.app/AwesomeProject Identifier: org.reactjs.native.example.AwesomeProject Version: 1.0 (1) Code Type: X86-64 (Native) Role: Foreground Parent Process: launchd_sim [6297] Coalition: com.apple.CoreSimulator.SimDevice.D03B2226-9D52-4F67-9DFE-0BF5174A6266 [64713] Responsible Process: SimulatorTrampoline [42827] Date/Time: 2023-08-18 16:40:31.7662 +0800 Launch Time: 2023-08-18 16:40:31.7193 +0800 OS Version: macOS 13.4 (22F66) Release Type: User Report Version: 104 Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Subtype: KERN_INVALID_ADDRESS at 0x00000000039da110 Exception Codes: 0x0000000000000001, 0x00000000039da110 VM Region Info: 0x39da110 is not in any region. Bytes before following region: 4294967024 REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL UNUSED SPACE AT START ---> __TEXT 1039da000-10419e000 [ 7952K] r-x/r-x SM=COW ...wesomeProject Termination Reason: SIGNAL 11 Segmentation fault: 11 Terminating Process: exc handler [8952] Triggered by Thread: 0 Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 AwesomeProject 0x103ac996e int (*std::__1::__cxx_atomic_load[abi:v160006]React Native Version
0.72.4
Output of
npx react-native info
react-native info
``` System: OS: macOS 13.4 CPU: (4) x64 Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz Memory: 6.09 GB / 32.00 GB Shell: version: "5.9" path: /bin/zsh Binaries: Node: version: 18.12.1 path: /usr/local/bin/node Yarn: Not Found npm: version: 8.19.2 path: /usr/local/bin/npm Watchman: version: 2023.08.07.00 path: /usr/local/bin/watchman Managers: CocoaPods: version: 1.12.1 path: /usr/local/bin/pod SDKs: iOS SDK: Platforms: - DriverKit 23.0 - iOS 17.0 - macOS 14.0 - tvOS 17.0 - visionOS 1.0 - watchOS 10.0 Android SDK: API Levels: - "22" - "23" - "24" - "25" - "26" - "27" - "33" Build Tools: - 23.0.1 - 25.0.0 - 25.0.1 - 25.0.2 - 25.0.3 - 26.0.0 - 26.0.1 - 26.0.2 - 26.0.3 - 27.0.2 - 27.0.3 - 28.0.0 - 29.0.2 - 30.0.3 - 33.0.0 System Images: - android-18 | Google APIs Intel x86 Atom - android-22 | Google APIs Intel x86 Atom - android-23 | Google APIs Intel x86 Atom_64 - android-24 | Intel x86 Atom_64 - android-25 | Google APIs ARM EABI v7a - android-25 | Google APIs Intel x86 Atom_64 - android-27 | Google APIs Intel x86 Atom - android-33 | Google APIs Intel x86_64 Atom - android-P | Google APIs Intel x86 Atom - android-P | Google Play Intel x86 Atom_64 Android NDK: 17.1.4828580 IDEs: Android Studio: 2022.2 AI-222.4459.24.2221.10121639 Xcode: version: 15.0/15A5219j path: /usr/bin/xcodebuild Languages: Java: version: 17.0.7 path: /usr/bin/javac Ruby: version: 2.6.10 path: /usr/bin/ruby npmPackages: "@react-native-community/cli": Not Found react: installed: 18.2.0 wanted: 18.2.0 react-native: installed: 0.72.4 wanted: 0.72.4 react-native-macos: Not Found npmGlobalPackages: "*react-native*": Not Found Android: hermesEnabled: true newArchEnabled: false iOS: hermesEnabled: true newArchEnabled: false ```Steps to reproduce
Snack, screenshot, or link to a repository