skip to Main Content

I am building a flutter chat app,

here on running it on an ios device, I am getting the below error.

ld: building for iOS Simulator, but linking in dylib built for iOS, file '/Users/drole/Documents/chat/ios/Pods/AgoraRtcEngine_iOS/AgoraAIDenoiseExtension.framework/AgoraAIDenoiseExtension' for architecture arm64

What should I do to resolve the error,
I’ve tried surfing on the internet but I don’t get a proper solution.

2

Answers


  1. in Podfile add this

    post_install do |installer|
      projects = installer.aggregate_targets
       .map{ |t| t.user_project }
       .uniq{ |p| p.path }
       .push(installer.pods_project)
       installer.pods_project.targets.each do |target|
        flutter_additional_ios_build_settings(target)
       end
    
      projects.each do |project|
       project.build_configurations.each do |config|
        config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 
       'arm64'
       end
    
       project.save()
     end
     end
    
    Login or Signup to reply.
  2. in Podfile add this or check this link
    https://github.com/mapbox/mapbox-gl-native-ios/issues/487#issuecomment-1163332686

    post_install do |installer|
      projects = installer.aggregate_targets
       .map{ |t| t.user_project }
       .uniq{ |p| p.path }
       .push(installer.pods_project)
       installer.pods_project.targets.each do |target|
        flutter_additional_ios_build_settings(target)
       end
    
      projects.each do |project|
       project.build_configurations.each do |config|
        config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 
       'arm64'
       end
    
       project.save()
     end
     end
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search