【发布时间】:2020-09-11 03:46:47
【问题描述】:
我正在尝试在 IOS 模拟器上运行我的颤振应用程序,但它无法正常工作。所以尝试了最基本的颤振应用程序(创建 my_app 然后尝试运行它),似乎没有任何效果! 当我从终端运行它直到链接和签名阶段以及我得到错误的地方时,一切似乎都工作正常,我该如何解决它?
这是我得到的错误:
Unable to install
/Users/MyUserName/Desktop/my_app/build/ios/iphonesimulator/Runner.app on
82562E3A-E7BD-4FE0-9BF9-8BB9C7AD5F15. This is sometimes caused by a malformed
plist file:
ProcessException: Process exited abnormally:
An error was encountered processing the command
(domain=IXUserPresentableErrorDomain, code=1):
This app could not be installed at this time.
Could not install at this time.
Failed to transfer ownership of path
/Users/MyUserName/Library/Developer/CoreSimulator/Devices/82562E3A-E7BD-4FE0-9BF9-8B
B9C7AD5F15/data/Containers/Shared/SystemGroup/systemgroup.com.apple.installcoord
inationd/Library/InstallCoordination/PromiseStaging/98CD703F-760F-4AAE-B991-BC2E
82D37D17/my_app.app to installd
Underlying error (domain=MIInstallerErrorDomain, code=103):
Failed to transfer ownership of path
/Users/MyUserName/Library/Developer/CoreSimulator/Devices/82562E3A-E7BD-4FE0-9BF9-8
BB9C7AD5F15/data/Containers/Shared/SystemGroup/systemgroup.com.apple.installcoo
rdinationd/Library/InstallCoordination/PromiseStaging/98CD703F-760F-4AAE-B991-B
C2E82D37D17/my_app.app to installd
Command: /usr/bin/xcrun simctl install 82562E3A-E7BD-4FE0-9BF9-8BB9C7AD5F15
/Users/MyUserName/Desktop/my_app/build/ios/iphonesimulator/Runner.app
Error launching application on iPhone 11 Pro Max.
编辑: 我更新了我的 MacOS,删除并重新安装了 Xcode,我什至尝试运行最简单的 swift 应用程序,但我总是遇到同样的错误,看起来构建成功但无法安装。我仍然遇到同样的错误,我该怎么办?
【问题讨论】:
-
您是从 XCode 运行它还是使用颤振运行?如果您还没有尝试过,请在 XCode 中打开项目工作区并尝试从那里运行。 XCode 有时会为错误提供更好的提示
-
关闭其他 Xcode?span>
-
我更新了我的 MacOS,删除并重新安装了 Xcode,我什至尝试运行最简单的 swift 应用程序,但我总是遇到同样的错误,看起来构建成功但无法安装。我仍然遇到同样的错误,我该怎么办?
-
就我而言,这是因为 macOS 在我使用模拟器时更新了 Xcode。解决方案是完全关闭“模拟器”应用并重新启动它
标签: ios xcode flutter dart simulator