错误运行Flutter测试iOS应用没有XCode

发布于 2025-01-22 22:53:50 字数 1122 浏览 3 评论 0 原文

我能够从Xcode运行一个Flutter应用程序,但是当我尝试在没有Xcode的情况下自行运行该应用程序时,我会收到以下错误,任何想法都将不胜感激。谢谢

Error loading metadata for com.xyz.test: Error Domain=ASDErrorDomain 
Code=513 "Loading failed for '/private/var/containers/Bundle/Application/1EAB1C0A-F552-4093-BC0A-AF5959366360'" 
UserInfo={NSDebugDescription=Loading failed for '/private/var/containers/Bundle/Application/1EAB1C0A-F552-4093-BC0A-AF5959366360', 
NSUnderlyingError=0x104c48080 {Error Domain=MIInstallerErrorDomain Code=78 
"Failed to read iTunesMetadata.plist from /private/var/containers/Bundle/Application/1EAB1C0A-F552-4093-BC0A-AF5959366360/iTunesMetadata.plist" 
UserInfo={NSLocalizedDescription=Failed to read iTunesMetadata.plist from /private/var/containers/Bundle/Application/1EAB1C0A-F552-4093-BC0A-AF5959366360/iTunesMetadata.plist,
LegacyErrorString=InvalidiTunesMetadataPlist, FunctionName=+[MIStoreMetadata metadataFromPlistAtURL:error:], SourceFileLine=650, NSUnderlyingError=0x104cb8cb0 
{Error Domain=NSCocoaErrorDomain Code=260 "The file “iTunesMetadata.plist” couldn’t be opened because there is no such file." UserInfo={NSFil

I am able to run a flutter app from xCode, however when I try to run the app on its own without xcode from the homescreen, I get the following errors, any ideas would be appreciated. Thank you

Error loading metadata for com.xyz.test: Error Domain=ASDErrorDomain 
Code=513 "Loading failed for '/private/var/containers/Bundle/Application/1EAB1C0A-F552-4093-BC0A-AF5959366360'" 
UserInfo={NSDebugDescription=Loading failed for '/private/var/containers/Bundle/Application/1EAB1C0A-F552-4093-BC0A-AF5959366360', 
NSUnderlyingError=0x104c48080 {Error Domain=MIInstallerErrorDomain Code=78 
"Failed to read iTunesMetadata.plist from /private/var/containers/Bundle/Application/1EAB1C0A-F552-4093-BC0A-AF5959366360/iTunesMetadata.plist" 
UserInfo={NSLocalizedDescription=Failed to read iTunesMetadata.plist from /private/var/containers/Bundle/Application/1EAB1C0A-F552-4093-BC0A-AF5959366360/iTunesMetadata.plist,
LegacyErrorString=InvalidiTunesMetadataPlist, FunctionName=+[MIStoreMetadata metadataFromPlistAtURL:error:], SourceFileLine=650, NSUnderlyingError=0x104cb8cb0 
{Error Domain=NSCocoaErrorDomain Code=260 "The file “iTunesMetadata.plist” couldn’t be opened because there is no such file." UserInfo={NSFil

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

-柠檬树下少年和吉他 2025-01-29 22:53:50

与iOS中的Android不同,您无法在调试模式下真正安装该应用程序。当您使用IDE在调试模式下启动 flutter Run 时,您将能够与应用程序进行交互,但是关闭应用程序或拔下设备后,它将不会再次运行。

在这些情况下,我已经观察到不同的行为:

  1. 拔下USB电缆关闭应用程序的插头
  2. 拔下了USB电缆,应用程序仍将其开放

这些行为取决于iOS版本。

关闭您的应用程序后,它就无法在不从IDE跑步的情况下从HomeScreen打开它。

这是苹果确保设备安全的方法。

Unlike Android in iOS, you cannot truly install the app in debug mode. When you initiate the flutter run in debug mode using IDE, you will be able to interact with your app but once you close the app or unplug your device it will not run again.

I have observed different behaviours in these cases:

  1. Unplug the USB cable closes the app
  2. Unplug the USB cable the app remains open

These behaviour depends on iOS version.

Once your app is closed, it can't be opened again from the Homescreen like Android without running from IDE.

This is Apple's approach to keeping the device secure.

客…行舟 2025-01-29 22:53:50

参见

没有主机计算机的启动调试颤音

也是由于调试器机制的变化,一旦一次颤抖的调试
应用程序已安装在设备上(要么使用flutter运行a
启动扑动的IDE或从Xcode中),应用程序不再是
通过在主屏幕中敲击应用程序的图标来重新启动
物理设备上的iOS 14。

See https://docs.flutter.dev/development/ios-14#launching-debug-flutter-without-a-host-computer

Launching debug Flutter without a host computer

Also due to changes in debugger mechanisms, once a Flutter debug
application is installed on the device (either by using flutter run a
Flutter-enabled IDE, or from Xcode), the application can no longer be
re-launched by tapping the application’s icon in the home screen in
iOS 14 on physical devices.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文