问题描述
错误:/ios/Runner/Info.plist:属性列表错误:在第 33 行发现内部非键/JSON 错误:JSON 文本未以数组或对象开头,并且没有设置允许片段的选项。
我在 iOS 模拟器上运行我的 Flutter 应用程序时总是遇到这个错误。这会导致应用无法构建,因此根本无法在 iOS 上运行
我尝试了以下方法:
- 已删除 Podfile.lock
- 运行 pod --repo-update
- 扑通干净
它似乎没有被修复。 我不是来自 iOS 开发背景,所以不完全了解我的 XCODE 方式。有人可以详细帮助吗?谢谢!
这是我的 info.plist 文件:
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSLocationWhenInUseUsageDescription</key>
<string>This app needs access to location when open.</string>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>MeetMeFit</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>$(FlutteR_BUILD_NAME)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundLeversion</key>
<string>$(FlutteR_BUILD_NUMBER)</string>
<key>LSRequiresIPhoneOS</key>
<true />
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UISupportedInterfaceOrientations</key>
<key>NSPhotoLibraryUsageDescription</key>
<string>Allow to get image from Photo library</string>
<key>NSCameraUsageDescription</key>
<string>Allow to to use camera</string>
<key>NSHealthShareUsageDescription</key>
<string>We will sync your data with the Apple Health app to give you better insights</string>
<key>NSHealthUpdateUsageDescription</key>
<string>We will sync your data with the Apple Health app to give you better insights</string>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UIViewControllerBasedStatusBarappearance</key>
<false />
</dict>
</plist>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)