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

Xcode works normally during real machine debugging, but when disconnected, clicking on the app to open will crash. The mobile system is 13.8. No problem with systems above 14 #44478

Open
xialun opened this issue May 8, 2024 · 7 comments
Labels
Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Needs: Triage 🔍 Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules)

Comments

@xialun
Copy link

xialun commented May 8, 2024

Description

Xcode works normally during real machine debugging, but when disconnected, clicking on the app to open will crash. The mobile system is 13.8. No problem with systems above 14, this is the demo project address:https://gitee.com/wang-shuaisheng/rn-crash.git](https://github.com/reactnativecn/react-native-website/issues/834)

Steps to reproduce

Xcode works normally during real machine debugging, but when disconnected, clicking on the app to open will crash. The mobile system is 13.8. No problem with systems above 14, this is the demo project address:https://gitee.com/wang-shuaisheng/rn-crash.git](https://github.com/reactnativecn/react-native-website/issues/834)

React Native Version

0.74.1

Affected Platforms

Runtime - iOS

Areas

Codegen

Output of npx react-native info

Last login: Wed May  8 17:28:54 on ttys006
wangshuai@wangshuaideMacBook-Pro NewProject % npx react-native info
info Fetching system and libraries information...
System:
  OS: macOS 14.4.1
  CPU: (8) x64 Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz
  Memory: 700.37 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 18.18.0
    path: /usr/local/bin/node
  Yarn:
    version: 3.6.4
    path: /usr/local/bin/yarn
  npm:
    version: 9.8.1
    path: /usr/local/bin/npm
  Watchman:
    version: 2023.12.04.00
    path: /usr/local/bin/watchman
Managers:
  CocoaPods:
    version: 1.14.3
    path: /usr/local/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.4
      - iOS 17.4
      - macOS 14.4
      - tvOS 17.4
      - visionOS 1.1
      - watchOS 10.4
  Android SDK: Not Found
IDEs:
  Android Studio: 2020.3 AI-203.7717.56.2031.7583922
  Xcode:
    version: 15.3/15E204a
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 16.0.1
    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.74.1
    wanted: 0.74.1
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

wangshuai@wangshuaideMacBook-Pro NewProject %

Stacktrace or Logs

{"app_name":"NewProject","timestamp":"2024-05-08 11:07:59.00 +0800","app_version":"1.0","slice_uuid":"11f4e45e-e911-3b67-88de-329775e72255","adam_id":"0","build_version":"1","bundleID":"www.mynjj.rn","share_with_app_devs":"1","is_first_party":"0","bug_type":"109","os_version":"iPhone OS 13.7 (17H35)","incident_id":"F881568F-C280-485F-8DE0-574FAB3A31CE","name":"NewProject"}

Reproducer

https://gitee.com/wang-shuaisheng/rn-crash.git

Screenshots and Videos

No response

@xialun xialun added Needs: Triage 🔍 Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules) labels May 8, 2024
@github-actions github-actions bot added Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels May 8, 2024
Copy link

github-actions bot commented May 8, 2024

⚠️ Missing Reproducible Example
ℹ️ We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.

@cipolleschi
Copy link
Contributor

Xcode 15.3 is bugged. Apple rewrote the linker and dropped support for weak symbols.
They fixed in Xcode 15.0 and 15.1 with a new flag and then fixed for good in Xcode 15.2.
Unfortunately, it regressed in 15.3.

Can you check if the problem persist when using Xcode 15.2?

This other issue might give you more information: #42230.

@xialun
Copy link
Author

xialun commented May 10, 2024

Xcode 15.2 have same question,project have local framework;if remove the local others sdk,the projec run nomal.If fix all local sdk into the project ,run app in iphone of ios13.7 normally but disconected tap app crash

@github-actions github-actions bot added Needs: Attention Issues where the author has responded to feedback. and removed Needs: Author Feedback labels May 10, 2024
@xialun
Copy link
Author

xialun commented May 10, 2024

demo pah is https://gitee.com/wang-shuaisheng/rn-crash.git ;This path can reproducible

@xialun
Copy link
Author

xialun commented May 10, 2024

we have a other question, app need suppor from ios9. If not init React Native ,how to app run normal below ios13.4

@xialun
Copy link
Author

xialun commented May 10, 2024

app crashed but no detail crash log. The log content is {"app_name":"NewProject","timestamp":"2024-05-08 11:07:59.00 +0800","app_version":"1.0","slice_uuid":"11f4e45e-e911-3b67-88de-329775e72255","adam_id":"0","build_version":"1","bundleID":"www.mynjj.rn","share_with_app_devs":"1","is_first_party":"0","bug_type":"109","os_version":"iPhone OS 13.7 (17H35)","incident_id":"F881568F-C280-485F-8DE0-574FAB3A31CE","name":"NewProject"}

@cipolleschi
Copy link
Contributor

we have a other question, app need suppor from ios9. If not init React Native ,how to app run normal below ios13.4

I'm sorry, but this is not supported. last device to support iOS 9 is iPhone 6S and that has been discontinued in 2018.
I strongly suggest you not to target those devices. Nor React Native or any Apple IDE will let you test on those devices.

If fix all local sdk into the project ,run app in iphone of ios13.7 normally but disconected tap app crash

What I understand is that you are:

  1. connecting the phone to the laptop
  2. Build and run the app on the phone
  3. Everything works while the phone is connected
  4. Disconnect the cable
  5. You observe the crash.

Is that correct? What happen if you launch the app from the phone when it is already disconnected?

Observing a crash when disconnecting the phone from the laptop is normal. Every app, even plain iOS apps witouth React Native present that behavior.
The app should run fine on the device if you launch it from the home menu with the phone disconnected.

@cortinico cortinico added Needs: Author Feedback and removed Needs: Attention Issues where the author has responded to feedback. labels May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Needs: Triage 🔍 Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules)
Projects
None yet
Development

No branches or pull requests

3 participants