Skip to content

Commit 31eb627

Browse files
refactor: set Swift version and configure Objective-C++ interoperability in Podfile
1 parent a22e139 commit 31eb627

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

example/ios/Podfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,16 @@ target 'MendixNativeExample' do
3030
pod 'RNCAsyncStorage', :path=> '../node_modules/@react-native-async-storage/async-storage', :modular_headers => true
3131

3232
post_install do |installer|
33+
installer.pods_project.targets.each do |target|
34+
if target.name == 'MendixNative'
35+
target.build_configurations.each do |config|
36+
# Set Swift version
37+
config.build_settings['SWIFT_VERSION'] = '5.9'
38+
# Configure Objective-C++ Interoperability Mode
39+
config.build_settings['SWIFT_OBJC_INTEROP_MODE'] = 'objcxx'
40+
end
41+
end
42+
end
3343
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
3444
react_native_post_install(
3545
installer,

0 commit comments

Comments
 (0)