[Bug]: Property List error: Found non-key inside <dict>
Is there an existing issue for this?
- [X] I have searched the existing issues
Current Behavior
I am getting the following error:
Property List error: Found non-key inside <dict> at line 73 / JSON error: JSON text did not start with array or object and option to allow fragments not set. around line 1, column 0.
When I included the following XML snippet in Info.plist to integrate iOS with Facebook:
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>fb1009838866366808</string>
</array>
</dict>
</array>
<key>FacebookAppID</key>
<string>1009838866366808</string>
<key>FacebookDisplayName</key>
<string>Univi</string>
Please note that I already use CFBundleURLTypes for Firebase integration.
Expected Behavior
Info.plist file should be valid after introducing XML snippet from Facebook and/or package documentation
Steps To Reproduce
- Added snippet to Info.plist
- flutter clean
- run app
Platform
iOS
Flutter Doctor
flutter doctor -v
[✓] Flutter (Channel stable, 3.0.5, on macOS 13.0 22A5321d darwin-arm, locale en-GB)
• Flutter version 3.0.5 at /Users/daimyo/Developer/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision f1875d570e (4 weeks ago), 2022-07-13 11:24:16 -0700
• Engine revision e85ea0e79c
• Dart version 2.17.6
• DevTools version 2.12.2
[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
• Android SDK at /Users/daimyo/Library/Android/sdk
• Platform android-33, build-tools 32.1.0-rc1
• ANDROID_HOME = /Users/daimyo/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 14.0)
• Xcode at /Applications/Xcode-beta.app/Contents/Developer
• CocoaPods version 1.11.3
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2021.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
[✓] VS Code (version 1.70.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension can be installed from:
🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[✓] Connected device (3 available)
• iPhone 13 (mobile) • A1B89375-24F0-48DD-8C72-5DBBC7B04F97 • ios •
com.apple.CoreSimulator.SimRuntime.iOS-15-5 (simulator)
• macOS (desktop) • macos • darwin-arm64 • macOS 13.0 22A5321d
darwin-arm
• Chrome (web) • chrome • web-javascript • Google Chrome
104.0.5112.79
[✓] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!
The pasted plist data surely looks good to me. Have you tried updating the plist file in the example to see if that works for you? Let me know if you are still stuck on this.
Closing due to no activity