ios – Error launching Flutter undertaking after upgrading to mac os sequoia and xcode 16

ios – Error launching Flutter undertaking after upgrading to mac os sequoia and xcode 16


I’ve been engaged on a flutter undertaking, lately I upgraded to the brand new macOS and Xcode model, and now I can’t run the ios model of the app and I get an error about DVTDeviceOperation construct quantity. The android is okay, that is the error I get:

Launching lib/main_preprod.dart on iPhone 15 in debug mode...
Xcode construct carried out.                                           615.2s
Didn't construct iOS app
Error output from Xcode construct:
↳
    2024-10-08 17:39:12.778 xcodebuild[76880:259010]  DVTDeviceOperation: Encountered a construct quantity "" that's incompatible with DVTBuildVersion.
    2024-10-08 17:39:13.535 xcodebuild[76880:259006] [MT] DVTDeviceOperation: Encountered a construct quantity "" that's incompatible with DVTBuildVersion.
    --- xcodebuild: WARNING: Utilizing the primary of a number of matching locations:
    { platform:iOS Simulator, id:A1C55CDA-8E1C-4CC4-8AAF-9F527F769510, OS:17.0.1, title:iPhone 15 }
    { platform:iOS Simulator, id:A1C55CDA-8E1C-4CC4-8AAF-9F527F769510, OS:17.0.1, title:iPhone 15 }
    ** BUILD FAILED **

I’ve already tried setting CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES to sure but it surely didn’t work.

That is my Podfile:

# Uncomment this line to outline a worldwide platform on your undertaking
platform :ios, '12.0'

# CocoaPods analytics sends community stats synchronously affecting flutter construct latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

undertaking 'Runner'

def flutter_root
  generated_xcode_build_settings_path = File.expand_path(File.be part of('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
  until File.exist?(generated_xcode_build_settings_path)
    increase "#{generated_xcode_build_settings_path} should exist. For those who're working pod set up manually, be sure that flutter pub get is executed first"
  finish

  File.foreach(generated_xcode_build_settings_path) do |line|
    matches = line.match(/FLUTTER_ROOT=(.*)/)
    return matches[1].strip if matches
  finish
  increase "FLUTTER_ROOT not present in #{generated_xcode_build_settings_path}. Strive deleting Generated.xcconfig, then run flutter pub get"
finish

require File.expand_path(File.be part of('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup

goal 'Runner' do
  use_frameworks!
  use_modular_headers!

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
finish

post_install do |installer|
  installer.pods_project.targets.every do |goal|
    flutter_additional_ios_build_settings(goal)

    goal.build_configurations.every do |config|
      if goal.title == 'BoringSSL-GRPC'
        goal.source_build_phase.recordsdata.every do |file|
          if file.settings && file.settings['COMPILER_FLAGS']
            flags = file.settings['COMPILER_FLAGS'].cut up
            flags.reject!  flag == '-GCC_WARN_INHIBIT_ALL_WARNINGS' 
            file.settings['COMPILER_FLAGS'] = flags.be part of(' ')
          finish
        finish
      finish
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0' 
      config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
        '$(inherited)',
        'AUDIO_SESSION_MICROPHONE=0'
      ]
    finish
  finish
finish


goal 'OneSignalNotificationServiceExtension' do
  use_frameworks!
  pod 'OneSignalXCFramework', '>= 3.4.3', '< 4.0'
finish

and that is my flutter physician:

Physician abstract (to see all particulars, run flutter physician -v):
[✓] Flutter (Channel secure, 3.7.12, on macOS 15.0 24A335 darwin-arm64, locale en-US)
[✓] Android toolchain - develop for Android gadgets (Android SDK model 33.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.0)
[✓] Chrome - develop for the online
[✓] Android Studio (model 2021.2)
[✓] VS Code (model 1.94.0)
[✓] Linked gadget (4 accessible)
[✓] HTTP Host Availability

• No points discovered!

To see the total construct log, look right here.

Leave a Reply

Your email address will not be published. Required fields are marked *