skip to Main Content

flutter build ipa is failing on macOS Ventura 13.3 with XCode 14.3 and Flutter 3.7.9.

Log output:

xcodebuild[83777:409216] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled)

flutter run works without issues on iOS Simulators.

13

Answers


  1. Download Xcode for version 14.2, You can use the Xcode Select for this.

    Login or Signup to reply.
  2. I had that error, I did fix it by following these steps :

    1. First I removed the xcode 14.3
    2. I downloaded the Xcode_14.2
    3. installed it
    Login or Signup to reply.
  3. You could build iOS app in Xcode, and it will give you more specific reason about the error.

    In my case, the reason is that ruby language’s method name is changed.

    enter image description here

    I fixed the error by modifying from exists to exist in ReadDotEnv.rb.
    (…/ios/.symlinks/plugins/flutter_config/ios/Classes/ReadDotEnv.rb)

      if File.exist?("#{envs_root}../.envfile")
        envFilePath = "#{envs_root}../.envfile"
      elsif File.exist?("#{envs_root}/.envfile")
        envFilePath = "#{envs_root}.envfile"
    
    Login or Signup to reply.
  4. Currently this is the only one solution working for me to build Archive ipa. Without need to roll back to Xcode 14.2.

    So the solution for now is, open ios/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh file.

    Find this line:

    if [ -L "${source}" ]; then
    echo "Symlinked..."
    source="$(readlink "${source}")"
    fi
    

    to

    if [ -L "${source}" ]; then
    echo "Symlinked..."
    source="$(readlink -f "${source}")"
    fi
    

    add -f and save the file.

    This worked for me. Hope this helps.

    Login or Signup to reply.
  5. You don’t need to rollback to XCode 14.2. The following steps worked for me in 14.3 version:

    1. Make sure you are handling version 11 as Target:
      In the podfile file…

    Replace

    post_install do |installer|
      installer.pods_project.targets.each do |target|
        flutter_additional_ios_build_settings(target)
      end
    end
    

    With

    post_install do |installer|
      installer.pods_project.targets.each do |target|
        flutter_additional_ios_build_settings(target)
        target.build_configurations.each do |config|
          config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
        end
      end
    end
    
    1. Make sure that debug is included within the LaunchAction Xcode schema. In Runner.xcscheme file you need to be sure that something like that is included…

          <LaunchAction
             buildConfiguration = "Debug"
             //...more lines
          </LaunchAction>
      
    Login or Signup to reply.
  6. I change channel to master and run flutter upgrade. and rechange to stable channel and run flutter upgrade again. after that my build work well.

    Login or Signup to reply.
  7. I had the same issue.
    After doing flutter upgrade (from version 3.7.9 to 3.7.10) it worked again.

    Login or Signup to reply.
  8. You can fix the problem by upgrading your Flutter version. Here is a change log to the official fix for Xcode 14.3.

    Here

    Login or Signup to reply.
  9. In my case, two ways work for me. first way is rollback the Xcode (14.3) to (14.2). second way is upgrade Flutter to 3.7.12 and then open ios/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh file. Find this line

    if [ -L "${source}" ]; then
    echo "Symlinked..." 
    source="$(readlink "${source}")"
    fi 
    

    to

    if [ -L "${source}" ]; then 
    echo "Symlinked..." 
    source="$(readlink -f "${source}")"
    fi
    
    Login or Signup to reply.
  10. i changed my build configuration from release to debug mode and it builds successfully.
    you can change build configuration from Xcode go to the product tap, then scheme, edit scheme and change it in a drop down menu to debug.

    Login or Signup to reply.
  11. Flutter clean
    

    Or build clean from xCode will work

    Login or Signup to reply.
  12. Upgrade flutter to 3.7.12 then change build configuration from release to debug mode after that ios simulator should working.

    Thanks to Kiumars’s comment.

    Login or Signup to reply.
  13. In my case i was at Flutter version 3.7.1 and upgrade to 3.7.12 solved it

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search