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
Download Xcode for version 14.2, You can use the Xcode Select for this.
I had that error, I did fix it by following these steps :
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.
I fixed the error by modifying from
exists
toexist
in ReadDotEnv.rb.(…/ios/.symlinks/plugins/flutter_config/ios/Classes/ReadDotEnv.rb)
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:
to
add -f and save the file.
This worked for me. Hope this helps.
You don’t need to rollback to XCode 14.2. The following steps worked for me in 14.3 version:
In the podfile file…
Replace
With
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…
I change channel to master and run
flutter upgrade
. and rechange tostable channel
and runflutter upgrade
again. after that my build work well.I had the same issue.
After doing
flutter upgrade
(from version 3.7.9 to 3.7.10) it worked again.You can fix the problem by upgrading your Flutter version. Here is a change log to the official fix for Xcode 14.3.
Here
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
to
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.
Or build clean from xCode will work
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.
In my case i was at Flutter version 3.7.1 and upgrade to 3.7.12 solved it