-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[V2] iOS - App Crashes at Launch when built with Xcode 15 #1802
Comments
Same issue after updating to xcode 15 |
Same issue here 😭, This message is printed to the xcode15 console before crashed: @marcshilling Do you have any solution for the issue? I will be grateful for anything you can reply. 🙏 |
So basically the breaking change from Xcode 13 -> 14 is now reverted with Xcode 14 -> 15? 😂 |
@ms314006 Just keep using Xcode 14 for now. I recommend using https://github.com/XcodesOrg/xcodes to manage Xcode versions. But we need to get this resolved eventually, because at some point next year Apple will likely require Xcode 15 for submissions. @phatmovista Yes, but unfortunately reverting it is not an option because the app crashes when using the camera (the original reason the change was put in: #1308) |
@mrousavy this is hitting us too. Does V3 work with Xcode 15 or is this bug also present in V3? |
Facing the same issue. App crashes on launch. |
Facing the same issue! Any workarounds for this on xcode 15? |
Yep, same issue. Xcode 15 (15A240d). |
Same issue here. It works with Xcode 14, but can't build for iOS 17. |
This should be related to this #1307 (comment) |
Downgraded to 14.3.1. It worked. |
I'm on version 2.15.4 and had to replace +(void)load with __attribute__((constructor)) static void VISION_CONCAT(initialize_, objc_name)() in two lines in the file
This avoids the initial crash. Haven't tried the camera which I assume will crash as stated in #1307 (comment). |
Thank you, that's worked for me! Note: I am using RN 0.68.2 here. |
@gabrielmaldi @DanielAraldi be warned (I mentioned this in my original comment), the reversion fixes the startup crash but the original crash (using the camera with a frame processor) will pop back up, making the fix unusable |
Yes, this is a temporary fix to be able to at least work on the rest of the app. Thanks a lot. |
still got this issue on RN 0.69.3 |
The quick fix for now is to revert this change - https://github.com/mrousavy/react-native-vision-camera/pull/1308/files Replacing That solved the issue for me. |
crash is resolved with this. thx
however I can't use camera.
|
This should solve the issue permanently - #1307 (comment) |
Still get the red screen above "Frame Processors are not enabled...". I'm on 2.15.4 and changing my FrameProcessorPlugin.h like below according to the solution above didn't help. Obviously did a clean build. What am i missing? :)
edit: and chrome dubug not connected etc. This was working before xcode 15/ios 17. |
Should be
|
@2sem |
My 2.15.4 FrameProcessorPlugin
|
Hi, got the same issue. (2.16.1) Anything else im missing? My FrameProcessorPlugin.h
|
And to make v2 work on iPhone 15 you need to add the following to your patch, and build using xcode 15/ios skd 17
|
This patch seems to be working for me! thanks! @marcshilling You can try this patch. |
Can confirm, fixes issue for me BUT only on 2.15.2 (not on latest 2.16.1). Thanks! Xcode 15, ios 17, iPhone X |
Thank you ^ 999999999999 |
Confirming the patch posted by @Letitbe93 has me back in business in conjunction with what @frenberg posted (to fix #1840). Building with Xcode 15 and barcode scanning working well on my iPhone 15 Pro 👍 |
I can confirm the FrameProccessor patch (#1802 (comment)) work on XCode 15 with iOS 16 + RN0.70 + react-native-vision-camera@2.15.6 + react-native-reanimated@2.17.0, android need further testing but it should work. * it seems that v2.16 has some changes on FrameProcessor so we may need to stick to v2.15.6 for a while ... @mrousavy or other contributor can make a patch on 2.15 branch to fix XCode 15 and iPhone 15 issues first. here is the diff for quick check |
Hey - yea please submit a PR instead of creating random patches. Then I can merge and backport it. |
if you upgrade the macOS to Sonoma you can't use xcode v14 anymore and this problem happens only on xcode v15 with xcode tools v15 🤷♂️ |
Any fix for this issue.
App is crashing on my simulator after launch. |
I have an M2 on Sonoma running XCode 14.3.1
|
I just did everything you mentioned but I can't open the new Xcode I installed, but I can't open the version I downloaded, when I run the command I don't know if this is right or if I have to do something additional. |
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 |
gettins this issue also on xcode 15 + iOS 17+ vision camera 3.3.1. |
This patch worked for me! react-native: 0.71.13 Create file patch with name -> ./patches/react-native-vision-camera+2.15.4.patch Past content below to file
|
Yes, I also encountered the problem in 3.3.0 but couldn't solve it。 |
But this opens new issue for me on Android. |
iphone 15 pro, iphone 15 pro max
|
This isn't a solution but if you want a workaround that doesn't totally kill quality this works for me on iOS & Android:
and
|
|
Yeah I'm silly, I got here through another issue- I probably should have properly read this properly before commenting- My issue was crash when taking photos with |
currently i'm using |
Experienced this issue for V3 on XCode 15.0, updating to 15.2 solved the problem |
What's happening?
When built using Xcode 15 release candidate, the app is crashing at launch. Before the crash, the message
Swift class extensions and categories on Swift classes are not allowed to have +load methods
is printed to the console.Relevant info - I'm also using
vision-camera-code-scanner@0.2.0
for barcode scanning.It seems to be related to #1308. If I revert that change, the startup crash goes away, but then when trying to use the camera it lags and then crashes (probably the original issue)
My workaround for now is continuing to use Xcode 14 to build.
Reproduceable Code
Relevant log output
Camera Device
N/A
Device
iPhone 14 Pro
VisionCamera Version
2.15.4
Can you reproduce this issue in the VisionCamera Example app?
Additional information
Upvote & Fund
The text was updated successfully, but these errors were encountered: