HELP:how to integrate RN 0.70.x to app which support iOS9 ?

This issue has been created since 2022-11-18.

New Version

0.70.5

Old Version

0.62

Build Target(s)

iOS device

Output of react-native info

value is unavailable

value is unavailable introduce in iOS12

Issue and Reproduction Steps

dear friend:
I need a help to solve a compile error. Detail is that, minimum iOS version of our bank app is iOS9, and we choose 0.70.5 RN to integrate to app, I know that 0.70.5 only support iOS12.4 and above.
so my question is that if there is a method to integrate 0.70.5 into app which target is iOS9.
when app runs on 12.4 and above,we can use RN,when runs device which version is between iOS9 and iOS 12.4, we use webview to load page。 so we just need RN 0.70 compile successfully and get the building product。
I try to do this,when I set platform as iOS9 in podSpec and compile,some error happened,“ value is unavailable introduce in iOS 12 ”。 when I compile app which platform is iOS 12.4, it compile successfully, but crash when app launch。 It seems that libc++.1.dylib not found, error message is below

dyld: Symbol not found: __ZNSt19bad_optional_accessD1Ev
Referenced from: /Users/zhengyueyang761/Library/Developer/CoreSimulator/Devices/50438C49-53E9-4F22-8495-9721BD60FE81/data/Containers/Bundle/Application/CD0D37C6-F4BF-4084-828C-A795988998FF/zyy.app/zyy
Expected in: /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 10.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libc++.1.dylib
in /Users/zhengyueyang761/Library/Developer/CoreSimulator/Devices/50438C49-53E9-4F22-8495-9721BD60FE81/data/Containers/Bundle/Application/CD0D37C6-F4BF-4084-828C-A795988998FF/zyy.app/zyy
dyld: launch, loading dependent libraries
DYLD_FRAMEWORK_PATH=/Users/zhengyueyang761/Library/Developer/Xcode/DerivedData/zyy-adjnucfudhfybpflkttitqinnylu/Build/Products/Debug-iphonesimulator
DYLD_FALLBACK_LIBRARY_PATH=/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 10.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib
DYLD_ROOT_PATH=/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 10.3.simruntime/Contents/Resources/RuntimeRoot
DYLD_FALLBACK_FRAMEWORK_PATH=/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 10.3.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks
DYLD_INSERT_LIBRARIES=/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 10.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libBacktraceRecording.dylib:/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 10.3.simruntime/Contents/Resources/RuntimeRoot/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib
DYLD_SHARED_REGION=avoid
DYLD_LIBRARY_PATH=/Users/zhengyueyang761/Libra
(lldb)

So if there is a way to compile RN 0.70.5 to iOS9, only build successfully and no crash that is OK, thanks a lot in advance

iBotPeaches wrote this answer on 2022-11-18

I need a help to solve a compile error. Detail is that, minimum iOS version of our bank app is iOS9, and we choose 0.70.5 RN to integrate to app, I know that 0.70.5 only support iOS12.4 and above.

It looks like this is painfully obvious. If you ignore the platform requirements of a version then have issues when it doesn't work on that dropped version - what do you expect?

Its not like you can just change a few flags and expect it work - iOS versions are only dropped when its clear/cut that there is no longer an easy way to support it.

I'd say your option with these constraints is - use an older RN version.

zyy71104233 wrote this answer on 2022-11-19

the reason why we choose RN 0.70.5 instead of 0.62 is that we think the latest version is more high performance than old version.
as currently we use h5 which is bad for user experience, we are afraid that 0.62 performance is not much good than h5 web view, of cause it's our guess, we firstly use rn .
maybe it's really not necessary to do adaptor work for lower iOS version ,thanks for your suggestion @iBotPeaches

cortinico wrote this answer on 2022-11-23

Closing as the @iBotPeaches already answered

More Details About Repo
Owner Name facebook
Repo Name react-native
Full Name facebook/react-native
Language JavaScript
Created Date 2015-01-09
Updated Date 2022-12-01
Star Count 106263
Watcher Count 3666
Fork Count 22655
Issue Count 2277

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Dropdown data doesn't update when open 2 2021-12-24 2022-10-21
[FEATURE]: Custom Intensity Lighting schemes for (RGBCCT) leds 5 2022-01-25 2022-10-19
seeyon Session泄漏漏洞POC有一处问题 1 2022-07-13 2022-11-21
Exception or error handling 4 2022-03-17 2022-10-29
Update Captions on Learning Material Availability 0 2022-05-16 2022-08-24
!! Submission failed: Ex 4 Neural Networks Learning. 0 2021-09-22 2022-11-19
OpenWrt上是否考虑复用已有的Dnsmasq 1 2022-07-06 2022-10-14
cannot enable under gnome-shell 3.36.7 1 2021-03-24 2022-10-25
7-Zip 22.01 Code was released. 1 2022-07-16 2022-11-07
[Bug] RoleMembers context menu not working properly 0 2022-11-11 2022-11-26
Request to add new papers 0 2022-05-10 2022-11-04
Backup restore not possible (deconz 2.12.0) 7 2021-06-01 2022-11-11
Please update package-lock.json 0 2022-04-09 2022-10-08
About the results on the CB dataset 2 2022-07-09 2022-11-12
Search results "Show all" buttons create broken link 1 2021-04-11 2022-10-26
[NoticeIcon > NoticeList] EvenCallBack to get the data of Item in NoticeList 1 2021-04-26 2022-11-14
Profile links in the Pixelfed profile 0 2021-10-04 2022-10-22
Typescript decorator on class doesn't work 1 2021-10-21 2022-11-03
Support Apple Silicon (arm64, M1/M2) for the Tauri/macOS desktop app 0 2022-07-18 2022-11-28
Division by zero exception thrown when given silent audio track 1 2022-05-14 2022-11-23
Can you develop a syntax hint for IntelliJ IDEA 1 2021-11-02 2022-10-14
咨询一下,有没有popover非Directive的实现的用法,类似懒加载效果,当我点击的时候,由服务动态创建浮层,而不是在html用directive绑定浮层 3 2021-12-06 2022-10-05
Alternative to radar 1 2022-09-21 2022-10-23
Remove deprecated alias App Modules. 3 2022-04-22 2022-10-31
Whitesur installer or tweaks is already running 2 2022-11-03 2022-11-22
Update text in email that is sent to authors asking them to connect their ORCID iD with OJS 2 2021-04-12 2022-10-27
Wrong app icon in MATE and Xfce 6 2020-12-22 2022-10-20
Do the helm / orc8r release for v1.8 0 2022-09-06 2022-09-13
[Bug] withEnableSessionWorker causes to ActivityNotRegisteredError 2 2021-09-13 2022-10-28
Offset for footer is missing 2 2022-11-25 2022-11-22
2. Trap error on indicator not present in model 0 2021-04-28 2022-10-07
How to test a page that contains RouterOutlet? 1 2021-09-30 2022-11-29
Minor Typo: "You application is up-to-date" 1 2022-07-20 2022-10-24
Add command line option for choosing builder 1 2020-03-14 2022-11-05
Manage multiple driving scrollviews 0 2021-07-28 2022-11-10
Bluetooth Le Gatt Sample is Not Working. 2 2022-07-19 2022-11-19
"shelf" command 3 2021-11-22 2022-01-14
i2c driver allows negative port numbers (IDFGH-7433) 1 2022-05-23 2022-10-29
Implement NIDKG 0 2021-11-01 2021-12-28
Incomplete sentence 1 2021-05-28 2021-12-30
Building branch-3.4.0 results in dependency errors 1 2022-05-19 2022-11-15
New example sim: SIM_splashdown 0 2022-05-20 2022-10-31
Sorting Datetimes 0 2021-10-06 2022-01-19
Direct memory leak 3 2021-11-22 2022-01-23
References unsupported in `module` block 7 2021-08-17 2022-11-28
Variable accessing / exec flakiness (I very much don't understand what's going on) 2 2022-09-20 2022-11-22
Minikube 1.24.0 update unable to get ingress address 2 2021-12-02 2022-10-07
windows10 hyperv 隔一天,访问不了 4 2021-12-02 2022-11-30
Misleading error message when no constructor or factory method can be found 7 2022-09-01 2022-10-08
Essentials references Xamarin in areas (docs/android file providers) 2 2022-01-18 2022-11-18