Closed
Description
Description
When building with Xcode 15 Beta 1, building fails with a C++ issue in boost:
› Compiling react-native Pods/RCT-Folly » json.cpp
❌ (ios/Pods/boost/boost/container_hash/hash.hpp:131:33)
129 | #else
130 | template <typename T>
> 131 | struct hash_base : std::unary_function<T, std::size_t> {};
| ^ no template named 'unary_function' in namespace 'std'; did you mean '__unary_function'?
132 | #endif
133 |
134 | struct enable_hash_value { typedef std::size_t type; };
Apparently, boost 1.8x does not have this issue and builds correctly. However, react-jsi currently does not work with boost 1.8x due to breaking changes.
React Native Version
0.71.8
Output of npx react-native info
>> npx react-native info
info Fetching system and libraries information...
System:
OS: macOS 13.4
CPU: (10) arm64 Apple M1 Pro
Memory: 124.09 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 19.4.0 - /opt/homebrew/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 9.6.5 - /opt/homebrew/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.12.1 - /opt/homebrew/lib/ruby/gems/3.1.0/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 23.0, iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0
Android SDK: Not Found
IDEs:
Android Studio: 2022.1 AI-221.6008.13.2211.9619390
Xcode: 15.0/15A5160n - /usr/bin/xcodebuild
Languages:
Java: javac 19 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: 0.71.8 => 0.71.8
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
Steps to reproduce
- Prerequisite: On a machine running macOS, ensure that Xcode 15 is installed
- Download or clone this Sample
cd react-Xcode15Bug
npm install && (cd ios && pod install)
Then either:
yarn ios
Or
xed ios
and build with Xcode