Open buzzware opened 2 months ago
Thanks for the report @buzzware Can you take a look at this issue and underlying comments to see if they help in your case or not ?
Thanks for the report @buzzware Can you take a look at this issue and underlying comments to see if they help in your case or not ?
@darshankawar I don't have an issue in my project - I am reporting my learning and I think a bug when you generate a fresh project and then add packages that require CocoaPods. As part of the solution I'm suggesting some documentation explaining the XCode -> Flutter integration through xcode_backend and the recommended configs. That reference is 3 years old and doesn't cover CocoaPods.
Thanks for the update. I do see the message but it is a warning / alert and not an error and it is coming from cocoapods and not Flutter.
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.
I'll keep this issue open for documentation if the team thinks it would be beneficial.
Yes its a warning but the warning says "In order for CocoaPods integration to work at all..."
Also when upgrading old projects or trying to fix build errors, it helps to know what the intention is of each of the configurations so you know what should be selected.
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
```console ```Flutter Doctor output
Doctor output
```console Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel beta, 3.22.0-0.2.pre, on macOS 14.4.1 23E224 darwin-x64, locale en-AU) [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2) [✓] Xcode - develop for iOS and macOS (Xcode 15.3) [✓] Chrome - develop for the web [✓] Android Studio (version 2023.2) [✓] Android Studio (version 2022.2) [✓] IntelliJ IDEA Ultimate Edition (version 2024.1) [✓] VS Code (version 1.87.2) [✓] Connected device (2 available) [✓] Network resources • No issues found! ```