【发布时间】:2021-03-04 10:33:47
【问题描述】:
我正在尝试在 iOS 上从 Flutter 构建应用程序,但是当我尝试运行构建时出现以下错误:初始化失败后无效重用。这就是我得到的错误信息。我尝试在网上查找并没有找到任何相关的内容。我想我的 info.plist 可能有问题,但我找不到任何错误。下面是info.plist的内容
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENTLANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLENAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCTBUNDLEIDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>synthexklutchrelease</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>$(FLUTTERBUILDNAME)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(FLUTTERBUILDNUMBER)</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>
<false/>
<key>NSPhotoLibraryUsageDescription</key>
<string>App needs access to photo lib for profile images</string>
<key>NSCameraUsageDescription</key>
<string>To capture profile photo please grant camera access</string>
</dict>
</plist>
【问题讨论】:
-
查看菜单“查看 > 导航器 > 报告导航器”,选择“按时间”选项卡,然后单击最新版本。你看到什么了吗?
-
是的,这就是我得到的:
-
仅显示最近的错误命令 PhaseScriptExecution 失败,退出代码非零
-
现在选择显示“Command PhaseScriptExecution”的行,然后单击
,然后查看所选行的上方。您可能会看到更多细节。 -
然后它只是说构建失败。这是截图,drive.google.com/file/d/1orIpk9NIo1H8vOjvEzSzlLOLw0RePVlI/…