use*_*459 12 xcode simulator ios dart flutter
我正在尝试在 IOS 模拟器上运行我的 flutter 应用程序,但它不起作用。所以尝试了最基本的 Flutter 应用程序(创建 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.
Run Code Online (Sandbox Code Playgroud)
编辑:我更新了我的 MacOS,删除并重新安装了 Xcode,我什至尝试运行最简单的 swift 应用程序,但我总是遇到同样的错误,看起来构建成功但无法安装。我仍然遇到同样的错误,我该怎么办?
J. *_*Saw 14
这发生在我首先打开模拟器然后更新 XCode 时——即使在 XCode 完全更新之后才运行应用程序。
什么对我有用:
flutter clean如果它仍然不起作用,请尝试从模拟器菜单中的“设备”->“擦除所有内容和设置...”重置设备。
说实话。这对开发者来说确实很令人沮丧
我就是这样解决的!
flutter clean
flutter pub get
cd ios
rm Podfile.lock
pod repo update
pod install
cd ..
Run Code Online (Sandbox Code Playgroud)
然后运行应用程序,它就可以了!
| 归档时间: |
|
| 查看次数: |
4757 次 |
| 最近记录: |