Skip to content

fix: remove invalid config section from pubspec.yaml#3738

Merged
beastoin merged 2 commits into
mainfrom
fix/pubspec-invalid-config
Dec 17, 2025
Merged

fix: remove invalid config section from pubspec.yaml#3738
beastoin merged 2 commits into
mainfrom
fix/pubspec-invalid-config

Conversation

@kodjima33
Copy link
Copy Markdown
Collaborator

@kodjima33 kodjima33 commented Dec 12, 2025

every time i try to run the ios repo i get this error

"Error detected in pubspec.yaml:
Unexpected child "config" found under "flutter".
Please correct the pubspec.yaml file at /Users/nik/projects/omi/app/pubspec.yaml"

AI told me to just remove it, pushing if it's not critical

The 'config' key under 'flutter' is not a valid Flutter configuration. This was causing 'Error detected in pubspec.yaml: Unexpected child config found under flutter.' Removed the invalid config section to fix the error.

The 'config' key under 'flutter' is not a valid Flutter configuration.
This was causing 'Error detected in pubspec.yaml: Unexpected child config found under flutter.'
Removed the invalid config section to fix the error.
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request addresses an error in pubspec.yaml by removing an invalid config section under the flutter key. This change is correct as the config key is not a valid Flutter configuration, and its presence was causing the error: Unexpected child "config" found under "flutter". The removal fixes the issue without any apparent side effects. The change is approved.

Move troubleshooting section from app/README.md to the official documentation
at docs/doc/developer/AppSetup.mdx in the Troubleshooting section.

This documents the 'Unable to flip between RX and RW memory protection on pages'
error that occurs when running Flutter apps in Debug mode on physical iOS devices.

The troubleshooting section explains:
- The cause of the error (iOS security restrictions preventing JIT compilation)
- Solution 1: Use iOS Simulator for development (recommended)
- Solution 2: Use Release/Profile mode for physical device testing

This helps developers quickly resolve this common issue without needing to search for solutions.
@kodjima33 kodjima33 force-pushed the fix/pubspec-invalid-config branch from be0d5db to 2f5d2ab Compare December 12, 2025 22:36
@beastoin
Copy link
Copy Markdown
Collaborator

hi bro, thank you btw can you check $flutter doctor -v?

if you are in < 3.24 flutter ver, let's run $flutter upgrade

then $cd omi/app && flutter clean && sh setup.sh ios again

@kodjima33
Copy link
Copy Markdown
Collaborator Author

@beastoin

Flutter (Channel stable, 3.32.0, on macOS 15.6.1 24G90 darwin-arm64, locale en-US) [457ms]
• Flutter version 3.32.0 on channel stable at /opt/homebrew/Caskroom/flutter/3.29.1/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision be698c48a6 (7 months ago), 2025-05-19 12:59:14 -0700
• Engine revision 1881800949
• Dart version 3.8.0
• DevTools version 2.45.1

@beastoin
Copy link
Copy Markdown
Collaborator

lgtm @kodjima33

@beastoin beastoin merged commit 62857e8 into main Dec 17, 2025
1 check passed
@beastoin beastoin deleted the fix/pubspec-invalid-config branch December 17, 2025 02:39
Glucksberg pushed a commit to Glucksberg/omi-local that referenced this pull request Apr 28, 2026
)

* fix: remove invalid config section from pubspec.yaml

The 'config' key under 'flutter' is not a valid Flutter configuration.
This was causing 'Error detected in pubspec.yaml: Unexpected child config found under flutter.'
Removed the invalid config section to fix the error.

* docs: Add iOS memory protection error troubleshooting to App Setup

Move troubleshooting section from app/README.md to the official documentation
at docs/doc/developer/AppSetup.mdx in the Troubleshooting section.

This documents the 'Unable to flip between RX and RW memory protection on pages'
error that occurs when running Flutter apps in Debug mode on physical iOS devices.

The troubleshooting section explains:
- The cause of the error (iOS security restrictions preventing JIT compilation)
- Solution 1: Use iOS Simulator for development (recommended)
- Solution 2: Use Release/Profile mode for physical device testing

This helps developers quickly resolve this common issue without needing to search for solutions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants