Skip to content

Commit

Permalink
Xcode 13/14 binary compatibility fix (#499)
Browse files Browse the repository at this point in the history
* objc msgend selector stubs

* flags

* typo

* compile option

* kick build

* stackoverflow

Co-authored-by: Cedric Guillemet <[email protected]>
  • Loading branch information
CedricGuillemet and CedricGuillemetMS authored Nov 8, 2022
1 parent 0845430 commit cd91d2e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Package/iOS/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
cmake_minimum_required(VERSION 3.13.2)
project(ReactNativeBabylon)

# Clang will by default emit objc_msgSend stubs in Xcode 14, which ld from earlier Xcodes doesn't understand.
# We disable this by passing -fno-objc-msgsend-selector-stubs to clang.
# https://stackoverflow.com/questions/73983452/xcode-14-xcode-13-incompatibility
add_compile_options("-fno-objc-msgsend-selector-stubs")

include(${CMAKE_CURRENT_SOURCE_DIR}/../../Apps/Playground/Playground/node_modules/@babylonjs/react-native-iosandroid/ios/CMakeLists.txt)

set(PACKAGED_LIBS
Expand Down

0 comments on commit cd91d2e

Please sign in to comment.