Integrate ACS video call in React Native iOS

Abhishek 0 Reputation points
2025-02-15T05:31:55.15+00:00

I am trying to integrate https://github.com/Azure-Samples/communication-services-ui-library-react-native/tree/main in iOS React Native in a fresh app created by RN community cli v15.0. The demo app runs, but I am unable to integrate it with my app. My actual app also is based on community-cli v15.0.

I am getting version related errors in xcode.

Untitled

My sample repo is https://github.com/bbairwa/videosample. I have added all the dependencies used in my actual project in this sample.

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
1,013 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Mammon Z Baloch 0 Reputation points
    2025-02-15T09:10:33.0666667+00:00

    Most Azure Communication Services (ACS) libraries require iOS 13+ or 14+. By default, a fresh React Native project sometimes sets platform :ios, '11.0' (or similar) in the ios/Podfile. That causes version conflicts when installing pods. To fix this:

    1. Open your ios/Podfile.
    2. Make sure the platform line at the top is at least iOS 13 or 14. For example:
    platform :ios, '14.0'
    
    0 comments No comments

  2. Mammon Z Baloch 0 Reputation points
    2025-02-15T09:15:06.0133333+00:00

    In the same Podfile, ensure you have a post_install block that sets the deployment target for all pods (especially helpful if some pods still claim a lower iOS deployment target):

    post_install do |installer|
      react_native_post_install(installer)  # <= This is the RN autolinking step
      
      installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
          # Force the deployment target to 14.0
          config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0'
        end
      end
    endp
    Â Â
      installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
          # Force the deployment target to 14.0
          config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0'
        end
      end
    end
    end
    
    
    0 comments No comments

  3. Mammon Z Baloch 0 Reputation points
    2025-02-15T09:16:25.69+00:00

    Run the code below ,

    Open the generated <YourApp>.xcworkspace in Xcode, confirm your project’s iOS Deployment Target is also set to 14.0 in the “Build Settings”.

    If the pod install fails or you still see version errors, remove the Pods folder and Podfile.lock, then run pod install again to ensure a clean state.

    cd ios
    pod repo update
    pod install
    

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.