Skip to content

Commit cd91d2e

Browse files
Xcode 13/14 binary compatibility fix (#499)
* objc msgend selector stubs * flags * typo * compile option * kick build * stackoverflow Co-authored-by: Cedric Guillemet <[email protected]>
1 parent 0845430 commit cd91d2e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Package/iOS/CMakeLists.txt

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
cmake_minimum_required(VERSION 3.13.2)
22
project(ReactNativeBabylon)
3+
4+
# Clang will by default emit objc_msgSend stubs in Xcode 14, which ld from earlier Xcodes doesn't understand.
5+
# We disable this by passing -fno-objc-msgsend-selector-stubs to clang.
6+
# https://stackoverflow.com/questions/73983452/xcode-14-xcode-13-incompatibility
7+
add_compile_options("-fno-objc-msgsend-selector-stubs")
8+
39
include(${CMAKE_CURRENT_SOURCE_DIR}/../../Apps/Playground/Playground/node_modules/@babylonjs/react-native-iosandroid/ios/CMakeLists.txt)
410

511
set(PACKAGED_LIBS

0 commit comments

Comments
 (0)