skip to Main Content

Recently i upgrade my Xcode to 15 and i face this error.this is my build phase, i dont know why i get this error i try many solution on stack overflow like recreate IOS dir but didn’t work..

i try this but didn’t work

Backup Runner folder
Delete the ios folder
Go to a terminal and execute flutter create . in the flutter project folder
Paste your Runner folder back into the ios folder
pod deintegrate in the ios folder
pod install also in the ios folder
flutter clean in the flutter project folder
flutter pub get
flutter run

2

Answers


  1. Chosen as BEST ANSWER

    i solved this i change built phase and now my project run on IOS and also create IOS buildenter image description here


  2. Updated 11 Oct 2023 Solutions If you faced an issue after updating to Xcode 15 and can’t run your flutter app on iOS platform. Follow the solutions below.

    Solution 1: Update Cocoapods to v1.13 (1.13 released a fix)

    It seems to be an issue due to old Cocoapods version with Xcode 15. This is resolved in the CocoaPods version 1.13.0

    You can follow these steps https://stackoverflow.com/a/77229768/6890699

    Solution 2: Update Podfile (Flutter / Xcode 15)

    However, it’s important to note that this should only be used as a temporary solution until a cocopods update comes out that fixes your Xcode version

    post_install do |installer|
      installer.pods_project.targets.each do |target|
         flutter_additional_ios_build_settings(target)
          target.build_configurations.each do |config|
            xcconfig_path = config.base_configuration_reference.real_path
            xcconfig = File.read(xcconfig_path)
            xcconfig_mod = xcconfig.gsub(/DT_TOOLCHAIN_DIR/, "TOOLCHAIN_DIR")
            File.open(xcconfig_path, "w") { |file| file << xcconfig_mod }
          end
      end
    end
    

    For non-flutter users: Remove the below line from the script.

    flutter_additional_ios_build_settings(target)
    

    Additional fixes related: Update flutter libraries

    If you use inAppWebview, you will get an error like this

    Parse Issue (Xcode): Could not build module ‘WebKit’

    Update inAppWebview to v5.8.0 release

    flutter_inappwebview: 5.8.0
    

    Look for updates on the libraries you are using within your flutter project.

    REMEMBER after using any of the above solutions

    1. Clean your flutter project flutter clean && flutter pub get
    2. Remove Pods directory inside iOS directory rm Podfile.lock && rm -rf Pods/
    3. Install and update pods pod install && pod update
    4. Build and test your app on an ios device flutter run or build within your Xcode.
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search