[issues] 'value' is unavailable introduced in ios 12.0 [react-native]


๋ฒ„์ „

System:
OS: macOS 13.4.1
CPU: (10) arm64 Apple M2 Pro
Memory: 89.41 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 18.15.0
path: /usr/local/bin/node
Yarn:
version: 1.22.19
path: /opt/homebrew/bin/yarn
npm:
version: 9.5.0
path: /usr/local/bin/npm
Watchman:
version: 2023.07.24.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.13.0
path: /Users/abel/.gem/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 22.4
- iOS 16.4
- macOS 13.3
- tvOS 16.4
- watchOS 9.4
Android SDK: Not Found
IDEs:
Android Studio: 2022.1 AI-221.6008.13.2211.9619390
Xcode:
version: 15.1.0/14E300c
path: /usr/bin/xcodebuild
Languages:
Java:
version: 11.0.11
path: /usr/bin/javac
Ruby:
version: 2.7.6
path: /Users/abel/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.72.5
wanted: 0.72.5
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: false

์—๋Ÿฌ ์ฝ”๋“œ

'value' is unavailable introduced in ios 12.0

๋ฐœ์ƒ ์›์ธ

xcode 15.1 ์—…๋ฐ์ดํŠธํ•˜๊ณ  ๋‚˜์„œ ๋นŒ๋“œํ–ˆ๋”๋‹ˆ Xcode์—์„œ ์ด๋Ÿฐ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒ

ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•

  1. ํ•ด๋‹น ํ”„๋กœ์ ํŠธ์˜ node_modules/react-native/scripts/cocoapods/codegen_utils.rb ํŒŒ์ผ์„ ์—ฐ๋‹ค.
  2. ํƒญ ๋ฉ”๋‰ด ์ค‘ โ€˜Build Phasesโ€™ 87์ค„์— ์žˆ๋Š” 'ios' => '11.0'๋ถ€๋ถ„์„ 'ios'=>'12.0'์œผ๋กœ ์ˆ˜์ •
  3. npx patch-package react-nativeย ์ปค๋งจ๋“œ๋กœ ํŒจ์น˜๋ฅผ ์ง„ํ–‰
  4. pod install
  5. ์‹คํ–‰