-
-
Notifications
You must be signed in to change notification settings - Fork 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
🐛 iOS optimization level bug #561
Comments
what is an optimization level? |
it's an xocde build setting item。 Specifies the degree to which the generated code is optimized for speed and binary size. None[-O0]: Do not optimize. With this setting, the compiler's goal is to reduce the cost of compilation and to make debugging produce the expected results. Statements are independent: if you stop the program with a breakpoint between statements, you can then assign a new value to any variable or change the program counter to any other statement in the function and get exactly the results you would expect from the source code. |
Okay and what does "don't work" mean? Do they not run? Do they crash? Are they slow? What gets printed to the Xcode logs/console? Need more details here. |
Also, do Reanimated animations (UI Worklets) work with that setting? |
On the iOS side, I wrote my own frame processor for facial recognition. Everything was normal during debugging, but the frame plugin did not run after the archive was packaged. At first I thought it was a code problem. After two days, I didn’t find any code. The question, after thinking about it again, I found that the main problem is that it doesn't work after packaging. I think there may be something wrong with the compilation and optimization. I tried to set the Optimization Level to none and re-packaged it to run. The frame plug-in was indeed running normally. So I think it may be that the optimization level affects the injection of the frame plug-in method. I am not sure about the specifics. |
I see.
|
What were you trying to do?
for ios,if the optimization level is faster ,the frame proccesser Plugins will don't work
Reproduceable Code
No response
What happened instead?
optimization level is faster or high
Relevant log output
No response
Device
iphone11 ios14.7
VisionCamera Version
^2.8.0
Additional information
The text was updated successfully, but these errors were encountered: