如何解决这个问题,因为我在使用 flutter 开发时无法打开 iOS 模拟器
How can solve this problem because I cannot open iOS simulator when I usd flutter development
我用flutter开发的时候打不开iOS模拟器怎么解决这个问题
当我需要打开 ios 模拟器时,它向我显示错误...但在它工作之前我不知道为什么现在是错误。
Error (Xcode): unable to read property list from file: /Users/Stanley/Desktop/yomate/ios/Runner/Info.plist: The operation couldn’t be completed. (XCBUtil.PropertyListConversionError error 2.)
Could not build the application for the simulator.
Error launching application on iPhone 13 Pro Max.
这是我的Info.plist
谁知道哪里有问题?
我有没有修改或删除某些东西?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>Yomate</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>yomate</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>
<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>
<true/>
<key>NSPhotoLibraryUsageDescription</key>
<string>Photo Library Usage</string>
<key>NSMicrophoneUsageDescription</key>
<string>Mic Usage</string>
<key>NSCameraUsageDescription</key>
<string>Privacy Camera Usage</string>
<key>NSAppTransportSecurity</key>
<key>NSAllowsArbitraryLoads</key>
<key>NSLocationWhenInUseUsageDescription</key>
<string>This app needs access to location when open.</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>This app needs access to location when in the background.</string>
<true/>
</dict>
</plist>
尝试删除 info.plist 文件底部的 <true/>
。让我知道它是否有效
<key>NSLocationAlwaysUsageDescription</key>
<string>This app needs access to location when in the background.</string>
<true/> // delete this line
</dict>
</plist>
我用flutter开发的时候打不开iOS模拟器怎么解决这个问题
当我需要打开 ios 模拟器时,它向我显示错误...但在它工作之前我不知道为什么现在是错误。
Error (Xcode): unable to read property list from file: /Users/Stanley/Desktop/yomate/ios/Runner/Info.plist: The operation couldn’t be completed. (XCBUtil.PropertyListConversionError error 2.)
Could not build the application for the simulator.
Error launching application on iPhone 13 Pro Max.
这是我的Info.plist
谁知道哪里有问题?
我有没有修改或删除某些东西?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>Yomate</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>yomate</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>
<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>
<true/>
<key>NSPhotoLibraryUsageDescription</key>
<string>Photo Library Usage</string>
<key>NSMicrophoneUsageDescription</key>
<string>Mic Usage</string>
<key>NSCameraUsageDescription</key>
<string>Privacy Camera Usage</string>
<key>NSAppTransportSecurity</key>
<key>NSAllowsArbitraryLoads</key>
<key>NSLocationWhenInUseUsageDescription</key>
<string>This app needs access to location when open.</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>This app needs access to location when in the background.</string>
<true/>
</dict>
</plist>
尝试删除 info.plist 文件底部的 <true/>
。让我知道它是否有效
<key>NSLocationAlwaysUsageDescription</key>
<string>This app needs access to location when in the background.</string>
<true/> // delete this line
</dict>
</plist>