I’m attempting to combine AzureCommunicationCalling iOS sdk in my react native mission. however when i attempt to import AzureCommunicationCalling in a swift file, construct error happens.
Did not construct module 'AzureCommunicationCalling'; this SDK just isn't supported by the compiler (the SDK is constructed with 'Apple Swift model 5.4 (swiftlang-1205.0.26.9 clang-1205.0.19.55)', whereas this compiler is 'Apple Swift model 6.0.2 effective-5.10 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)'). Please choose a toolchain which matches the SDK.
Is there any workaround for this? I attempted to do the next:
- Downgrade my Xcode model to fifteen.1 (I get a distinct error
Did not construct module 'AzureCommunicationCalling' for importation as a result of errors above; the textual interface could also be damaged by mission points or a compiler bug
) - Set
Construct Libraries For Distribution
toYES
in Construct Settings (On this case the error goes away however i get a distinct error sayingUtilizing bridging headers with module interfaces is unsupported
) - Created a brand new react native mission and tried to combine the sdk. (Similar error)
That is my Podfile
def node_require(script)
# Resolve script with node to permit for hoisting
require Pod::Executable.execute_command('node', ['-p',
"require.resolve(
'#{script}',
{paths: [process.argv[1]]},
)", __dir__]).strip
finish
node_require('react-native/scripts/react_native_pods.rb')
node_require('react-native-permissions/scripts/setup.rb')
platform :ios, 13.4
prepare_react_native_project!
setup_permissions([
'LocationAccuracy',
'LocationAlways',
'LocationWhenInUse',
'Notifications',
])
use_frameworks! :linkage => :static
abstract_target 'myProjectCommonPods' do
pod 'react-native-google-maps', :path => '../node_modules/react-native-maps'
config = use_native_modules!
use_react_native!(
:path => config[:reactNativePath],
:app_path => "#{Pod::Config.occasion.installation_root}/..",
:hermes_enabled => false
)
pod 'AzureCommunicationCalling', '~> 2.13.1'
goal 'myProject Dev' do
$RNFirebaseAsStaticFramework = true
finish
goal 'myProject Reside' do
$RNFirebaseAsStaticFramework = true
finish
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec', :modular_headers => false
pod 'react-native-webview', :path => '../node_modules/react-native-webview'
pod 'RNReanimated', :path => '../node_modules/react-native-reanimated'
pod 'RNGestureHandler', :path => '../node_modules/react-native-gesture-handler'
pod 'react-native-slider', :path => '../node_modules/@react-native-community/slider'
pod 'RNSVG', :path => '../node_modules/react-native-svg'
pod 'react-native-geolocation', :path => '../node_modules/@react-native-community/geolocation'
goal 'myProjectTests' do
inherit! :full
# Pods for testing
finish
pre_install do |installer|
Pod::Installer::Xcode::TargetValidator.ship(:define_method, :verify_no_static_framework_transitive_dependencies) {}
installer.pod_targets.every do |pod|
if pod.identify.eql?('RNPermissions') || pod.identify.start_with?('Permission-')
def pod.build_type;
Pod::BuildType.static_library
finish
finish
if pod.identify.start_with?('AzureCommunicationCommon') || pod.identify.start_with?('AzureCommunicationCalling')
def pod.build_type;
Pod::BuildType.new(:linkage => :dynamic, :packaging => :framework)
finish
finish
finish
finish
post_install do |installer|
react_native_post_install(
installer,
config[:reactNativePath],
:mac_catalyst_enabled => false
)
installer.pods_project.build_configurations.every do |config|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "$(inherited) arm64"
if config.identify == 'Debug'
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
finish
finish
finish
finish
goal 'OneSignalNotificationServiceExtension' do
pod 'OneSignalXCFramework', '>= 5.0.0', '< 6.0'
finish
goal 'OneSignalNotificationServiceExtensionLive' do
pod 'OneSignalXCFramework', '>= 5.0.0', '< 6.0'
finish
I’m utilizing
- Xcode model 16.1
- AzureCommunicationCalling iOS sdk model 2.13.1
- React native model 0.74.4
I used to be attempting to construct react native app on a react iPhone machine (iOS model 17.6.1).