[flutter_tool] Documentation on Base configurations in XCode with and without CocoaPods #147263
Labels
d: api docs
Issues with https://api.flutter.dev/
P2
Important issues not at the top of the work list
platform-ios
iOS applications specifically
t: xcode
"xcodebuild" on iOS and general Xcode project management
team-tool
Owned by Flutter Tool team
tool
Affects the "flutter" command-line tool. See also t: labels.
triaged-tool
Triaged by Flutter Tool team
Steps to reproduce
Actual results
you will see :
The issue is that the Runner Profile configuration is set to the Release configuration. Setting it to Pods-Runner.profile makes the error go away, but I don't know what it should be.
This is my modified (and seemingly correct) configuration :
These base configurations cause a lot of trouble for flutter development, and I have not seen any official advice or documentation online. In my main project I've had #140845 / #138795 holding me up for days. Older articles advised selecting Pods-Runner.xxx directly, which means not including Generated which causes the #138795 "Null check operator" error (Debug & Release are only 2 lines - they include Pods-Runner.xxx and Generated, and Generated contains the environment variables required by xcode_backend.dart).
Adding packages that require CocoaPods makes the situation more confusing as there are many more configurations in the list.
I believe some official documentation including screenshots of what the base configurations in XCode should look like with and without CocoaPods would be very helpful. Even if the generated project is fixed, it would still help people with existing projects.
Logs
Logs
<!-- Paste your logs here -->
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: