我在windos机器上写了我的应用程序,然后我把它移到了mac上。但是当它还在windos机器上工作的时候,我不能在mac上运行它。这个应用程序在play store中是实时的,这就是错误:
正在调试模式下启动iPhone 13 Pro Max上的lib/main. dart .../用户/macair/下载/文件名/flutter_application_1/ios/Runner/信息列表:属性列表错误:在第6行中发现非密钥/JSON错误:JSON文本没有以数组或对象开头,并且没有设置允许片段的选项。在第1行,第0列附近。/Users/macair/Downloads//flutter_application_1/ios/Runner/Info. plist:属性列表错误:在第6行中发现非密钥/JSON错误:JSON文本未以数组或对象开头,并且未设置允许片段的选项。在第1行第0列附近。正在运行Xcode构建... Xcode构建完成。47.4s无法构建iOS应用程序错误(Xcode):无法从文件读取属性列表:/用户/macair/下载/人力资源管理/flutter_application_1/ios/Runner/信息列表:无法完成该操作。(XCBUtil. PropertyListConversionError错误2。)
无法为模拟器构建应用程序。在iPhone 13 Pro Max上启动应用程序时出错。
这是我的信息。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>
<key>NSAllowsArbitraryLoads</key><true/>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>Flutter Application 1</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>magic world entertainment</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>LSApplicationQueriesSchemes</key>
<array>
<string>https</string>
</array>
<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>
<false/>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
</dict>
</plist>
1条答案
按热度按时间jvlzgdj91#
AllowsArbitaryLoads应位于字典内