Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to build module 'AzureCommunicationCalling'; this SDK is not supported by the compiler . Please select a toolchain which matches the SDK. #2002

Open
GagandeepJatana opened this issue Jan 30, 2025 · 7 comments
Assignees
Labels
Communication customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@GagandeepJatana
Copy link

GagandeepJatana commented Jan 30, 2025

Failed to build module 'AzureCommunicationCalling'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)', while this compiler is 'Apple Swift version 6.0.3 effective-5.10 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)'). Please select a toolchain which matches the SDK.

i Already checked issue 1403 but its not working
https://github.com/Azure/azure-sdk-for-ios/issues/1403
Am currently using node : v23.6.0
"react-native": "0.74.5",
"react": "18.2.0",
xcode Version 16.2 (16C5032a)
pod 'AzureCommunicationUICalling', '1.13.0'

Also getting : Compiling for iOS 12.0, but module 'AzureCommunicationCommon' has a minimum deployment target of iOS 13.4: /Users/p360/Library/Developer/Xcode/DerivedData/APP-hdyciuctfxrqbbbtyavyvluwwdoq/Build/Products/Release-iphoneos/AzureCommunicationCommon/AzureCommunicationCommon.framework/Modules/AzureCommunicationCommon.swiftmodule/arm64-apple-ios.swiftmodule

@github-actions github-actions bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jan 30, 2025
@github-actions github-actions bot removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Jan 30, 2025
@tjprescott
Copy link
Member

@lucianopa-msft or @raosanat can you take a look at this?

@lucianopa-msft
Copy link
Member

@GagandeepJatana
Have you check this #1403 (comment)?
It appears that your reactive native project is setting the AzureCommunicationCommon library to minimum iOS 13.4 which is not going to work. Please check what are the minimum targets version for all libraries and ensure that AzureCommunicationCommon and AzureCommunicationCalling is 12.0.

@GagandeepJatana
Copy link
Author

GagandeepJatana commented Feb 3, 2025

i set the minimum to 16.0 still stuck at this .
here is the pod file and package json

====================================
------------------------Pod file---------------

require File.join(File.dirname(node --print "require.resolve('expo/package.json')"), "scripts/autolinking")
require File.join(File.dirname(node --print "require.resolve('react-native/package.json')"), "scripts/react_native_pods")

require 'json'
podfile_properties = JSON.parse(File.read(File.join(dir, 'Podfile.properties.json'))) rescue {}

ENV['RCT_NEW_ARCH_ENABLED'] = podfile_properties['newArchEnabled'] == 'true' ? '1' : '0'
ENV['EX_DEV_CLIENT_NETWORK_INSPECTOR'] = podfile_properties['EX_DEV_CLIENT_NETWORK_INSPECTOR']

use_autolinking_method_symbol = ('use' + '_native' + '_modules!').to_sym
origin_autolinking_method = self.method(use_autolinking_method_symbol)
self.define_singleton_method(use_autolinking_method_symbol) do |*args|
if ENV['EXPO_UNSTABLE_CORE_AUTOLINKING'] == '1'
Pod::UI.puts('Using expo-modules-autolinking as core autolinking source'.green)
config_command = [
'node',
'--no-warnings',
'--eval',
'require(require.resolve('expo-modules-autolinking', { paths: [require.resolve('expo/package.json')] }))(process.argv.slice(1))',
'react-native-config',
'--json',
'--platform',
'ios'
]
origin_autolinking_method.call(config_command)
else
origin_autolinking_method.call()
end
end

platform :ios, podfile_properties['ios.deploymentTarget'] || '16.0'
install! 'cocoapods',
:deterministic_uuids => false

prepare_react_native_project!

target 'APP' do
pod 'GoogleUtilities', :modular_headers => true
pod 'FirebaseCoreInternal', :modular_headers => true
pod 'FirebaseCore', :modular_headers => true
pod 'FirebaseInstallations', :modular_headers => true
pod 'GoogleDataTransport', :modular_headers => true
pod 'nanopb', :modular_headers => true
pod 'FirebaseCrashlytics', :modular_headers => true
pod 'FirebaseSessions', :modular_headers => true
pod 'FirebaseCoreExtension', :modular_headers => true
use_expo_modules!

use_frameworks!
pod 'AzureCommunicationUICalling', '1.13.0'
pod 'RNFS', :path => '../node_modules/react-native-fs'
permissions_path = '../node_modules/react-native-permissions/ios'

pod 'TrustKit'

pod 'react-native-config', :path => '../node_modules/react-native-config'

config = use_native_modules!

use_frameworks! :linkage => podfile_properties['ios.useFrameworks'].to_sym if podfile_properties['ios.useFrameworks']
use_frameworks! :linkage => ENV['USE_FRAMEWORKS'].to_sym if ENV['USE_FRAMEWORKS']

use_react_native!(
:path => config[:reactNativePath],
:hermes_enabled => podfile_properties['expo.jsEngine'] == nil || podfile_properties['expo.jsEngine'] == 'hermes',
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/..",

)

post_install do |installer|
react_native_post_install(
installer,
config[:reactNativePath],
:mac_catalyst_enabled => false,

)
installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings["IPHONEOS_DEPLOYMENT_TARGET"] = "16.0"
    end
  end

# This is necessary for Xcode 14, because it signs resource bundles by default
# when building for devices.
installer.target_installation_results.pod_target_installation_results
  .each do |pod_name, target_installation_result|
  target_installation_result.resource_bundle_targets.each do |resource_bundle_target|
    resource_bundle_target.build_configurations.each do |config|
      config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
    end
  end
end

end

post_integrate do |installer|
begin
expo_patch_react_imports!(installer)
rescue => e
Pod::UI.warn e
end
end
end

=================================================================

==========================PACKAGE JSON FILE CONTENT=======================

"expo": "49.0.18",
"expo-auth-session": "~5.0.2",
"expo-av": "~13.4.1",
"expo-constants": "~14.4.2",
"expo-document-picker": "~11.5.4",
"expo-font": "~11.4.0",
"expo-image-picker": "~14.3.2",
"expo-linear-gradient": "~12.3.0",
"expo-linking": "~5.0.2",
"expo-location": "~16.1.0",
"expo-router": "^2.0.0",
"expo-screen-orientation": "~6.0.6",
"expo-splash-screen": "~0.20.5",
"expo-status-bar": "~1.6.0",
"expo-system-ui": "~2.4.0",
"expo-web-browser": "~12.3.2",
"formik": "2.4.6",
"google-libphonenumber": "^3.2.40",
"i18next": "23.16.4",
"lodash": "4.17.21",
"moment-timezone": "0.5.46",
"nativewind": "2.0.11",
"node-libs-react-native": "1.2.1",
"pusher-js": "8.4.0-rc2",
"qs": "6.13.0",
"react": "18.2.0",
"react-detect-offline": "^2.4.5",
"react-dom": "18.2.0",
"react-draggable": "4.4.6",
"react-i18next": "15.1.0",
"react-native": "0.72.10",
"react-native-calendars": "1.1307.0",
"react-native-callkeep": "4.3.14",
"react-native-collapsible": "1.6.2",
"react-native-config": "^1.5.3",
"react-native-crypto": "2.2.0",
"react-native-device-info": "14.0.0",
"react-native-draggable": "^3.3.0",
"react-native-fs": "2.20.0",
"react-native-gesture-handler": "~2.12.0",
"react-native-get-random-values": "~1.9.0",
"react-native-inappbrowser-reborn": "^3.7.0",
"react-native-keychain": "^9.2.2",
"react-native-outside-press": "1.2.2",
"react-native-popable": "0.4.3",
"react-native-progress": "5.0.1",
"react-native-push-notification": "8.1.1",
"react-native-reanimated": "~3.3.0",
"react-native-reanimated-carousel": "3.5.1",
"react-native-safe-area-context": "4.6.3",
"react-native-screens": "~3.22.0",
"react-native-svg": "13.9.0",
"react-native-toast-message": "2.2.1",
"react-native-web": "0.19.10",
"react-native-webview": "13.2.2",
"react-phone-number-input": "3.4.9",
"react-timer-hook": "3.0.8",
"socket.io-client": "4.8.1",
"stream-browserify": "3.0.0",
"tailwindcss": "3.3.2",
"timezones-list": "3.0.3",
"twrnc": "4.5.1",
"usehooks-ts": "3.1.0",
"uuid": "11.0.2",
"uuid-by-string": "4.0.0",
"zustand": "5.0.1",
"expo-modules-core": "~1.5.12"

@GagandeepJatana
Copy link
Author

@GagandeepJatana Have you check this #1403 (comment)? It appears that your reactive native project is setting the AzureCommunicationCommon library to minimum iOS 13.4 which is not going to work. Please check what are the minimum targets version for all libraries and ensure that AzureCommunicationCommon and AzureCommunicationCalling is 12.0.

yes i checke as i mentioned in the issue detail above.
also the minimum target in pods is set to 16 still no luck .

@lucianopa-msft
Copy link
Member

i set the minimum to 16.0 still stuck at this . here is the pod file and package json
...
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings["IPHONEOS_DEPLOYMENT_TARGET"] = "16.0"
end
end

Can you try this instead?

installer.pods_project.targets.each do |target|
     target.build_configurations.each do |config|
          if target.name  == "AzureCommunicationCalling" or target.name == "AzureCommunicationCommon"
               config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = "12.0"
          else 
               config.build_settings["IPHONEOS_DEPLOYMENT_TARGET"] = "16.0"
          end
     end
end

Calling and Common both need to be on iOS 12.0, the rest could be whatever minimum target you need
Let us know if that works :)

@lucianopa-msft
Copy link
Member

@GagandeepJatana Any updates on this?

@GagandeepJatana
Copy link
Author

@lucianopa-msft
yes above fixed the issue for me . Thanks for the help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Communication customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

4 participants