title: macos - Flutter ios app not building with razorpay plugin
body: <p>I already build and run my flutter app for Andriod. But when I trying to build it for ios its showing the following error.</p>
  <p><em><strong>If I remove the <code>razorpay</code> dependency from pubspecs.yaml then my app successfully build for ios devices.</strong></em></p>
  <p>I'm new to mac env. Do I have to make some changes in Xcode? My Xcode version :Version 13.2.1. But If I make a new flutter project in my MAC using VS CODE its runing well and good. I hope I able to explain my problem.</p>
  <pre><code>    Launching lib/main.dart on iPhone 13 in debug mode...
  lib/main.dart:1
  Xcode build done.                                           13.3s
  Failed to build iOS app
  Error output from Xcode build:
  ↳
      ** BUILD FAILED **
  Xcode's output:
  ↳
      Command CompileSwiftSources failed with a nonzero exit code
      &lt;unknown&gt;:0: error: unable to load standard library for target 'arm64-apple-ios10.0'
  /Users/sambitdas/Development/flutter/.pub-cache/hosted/pub.dartlang.org/razorpay_flutter-1.2.7/ios/Classes/RazorpayDelegate.swift:2:8: error: module compiled with Swift 5.5.1 cannot be imported by the Swift 5.5.2 compiler: /Users/sambitdas/sleepKart/sleepkart/ios/Pods/razorpay-pod/Pod/Razorpay.framework/Modules/Razorpay.swiftmodule/arm64.swiftmodule
      import Razorpay
             ^
      &lt;unknown&gt;:0: error: unable to load standard library for target 'arm64-apple-ios10.0'
  /Users/sambitdas/Development/flutter/.pub-cache/hosted/pub.dartlang.org/razorpay_flutter-1.2.7/ios/Classes/RazorpayDelegate.swift:2:8: error: module compiled with Swift 5.5.1 cannot be imported by the Swift 5.5.2 compiler: /Users/sambitdas/sleepKart/sleepkart/ios/Pods/razorpay-pod/Pod/Razorpay.framework/Modules/Razorpay.swiftmodule/arm64.swiftmodule
      import Razorpay
             ^
      note: Using new build system
      note: Planning
      note: Build preparation complete
      note: Building targets in dependency order
  Could not build the application for the simulator.
  Error launching application on iPhone 13.
  Exited (sigterm)
  </code></pre>
  <p>My Pod file (build automatically when run my proj for ios)</p>
  <pre><code>    # Uncomment this line to define a global platform for your project
   platform :ios, '10.0'
  
  # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
  ENV['COCOAPODS_DISABLE_STATS'] = 'true'
  
  project 'Runner', {
    'Debug' =&gt; :debug,
    'Profile' =&gt; :release,
    'Release' =&gt; :release,
  }
  
  def flutter_root
    generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
    unless File.exist?(generated_xcode_build_settings_path)
      raise &quot;#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first&quot;
    end
  
    File.foreach(generated_xcode_build_settings_path) do |line|
      matches = line.match(/FLUTTER_ROOT\=(.*)/)
      return matches[1].strip if matches
    end
    raise &quot;FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get&quot;
  end
  
  require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
  
  flutter_ios_podfile_setup
  
  target 'Runner' do
    use_frameworks!
    use_modular_headers!
  
    flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
  end
  
  post_install do |installer|
    installer.pods_project.targets.each do |target|
      flutter_additional_ios_build_settings(target)
    end
  end
  </code></pre>