一切都很好。它既在模拟器中运行,也在iPhone中运行。将手机软件版本升级到13.3.1后,它停止工作。但是,它正在模拟器中运行。尝试从android studio运行时出现以下错误。
Launching lib/main.dart on John’s iPhone in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: MFL3YAAR46
Running Xcode build...
Xcode build done. 10.6s
Installing and launching...
Could not install build/ios/iphoneos/Runner.app on 003308020-000D741G0A7A002E.
Try launching Xcode and selecting "Product > Run" to fix the problem:
open ios/Runner.xcworkspace
Error launching application on John’s iPhone.
然后,我在xcode中打开flutter iOS,并尝试从那里运行,并得到以下消息,其中包含线程1:信号SIGABRT
dyld: Library not loaded: @rpath/Flutter.framework/Flutter
Referenced from: /private/var/containers/Bundle/Application/A2E2CB44-5BE3-4200-A27A-7A7502859B1C/Runner.app/Runner
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/A2E2CB44-5BE3-4200-A27A-7A7502859B1C/Runner.app/Frameworks/Flutter.framework/Flutter: code signature invalid for '/private/var/containers/Bundle/Application/A2E2CB44-5BE3-4200-A27A-7A7502859B1C/Runner.app/Frameworks/Flutter.framework/Flutter'
/private/var/containers/Bundle/Application/A2E2CB44-5BE3-4200-A27A-7A7502859B1C/Runner.app/Frameworks/Flutter.framework/Flutter: stat() failed with errno=25
/private/var/containers/Bundle/Application/A2E2CB44-5BE3-4200-A27A-7A7502859B1C/Runner.app/Frameworks/Flutter.framework/Flutter: code signature invalid for '/private/var/containers/Bundle/Application/A2E2CB44-5BE3-4200-A27A-7A7502859B1C/Runner.app/Frameworks/Flutter.framework/Flutter'
/private/var/containers/Bundle/Application/A2E2CB44-5BE3-4200-A27A-7A7502859B1C/Runner.app/Frameworks/Flutter.framework/Flutter: stat() failed with errno=1
/private/var/containers/Bundle/Application/A2E2CB44-5BE3-4200-A27A-7A7502859B1C/Runner.app/Frameworks/Flutter.framework/Flutter: code signature invalid for '/private/var/containers/Bundle/Application/A2E2CB44-5BE3-4200-A27A-7A7502859B1C/Runner.app/Frameworks/Flutter.framework/Flutter'
/private/var/containers/Bundle/Application/A2E2CB44-5BE3-4200-A27A-7A7502859B1C/Runner.app/Frameworks/Flutter.framework/Flutter: stat() failed with errno=1
/private/var/containers/Bundle/Application/A2E2CB44-5BE3-4200-A27A-7A7502859B1C/Runner.app/Frameworks/Flutter.framework/Flutter: code signature invalid for '/private/var/containers/Bundle/Application/A2E2CB44-5BE3-4200-A27A-7A7502859B1C/Runner.app/Frameworks/Flutter.framework/Flutter'
/private/var/containers/Bundle/Application/A2E2CB44-5BE3-4200-A27A-7A7502859B1C/Runner.app/Frameworks/Flutter.framework/Flutter: stat() failed with errno=1
/private/var/containers/Bundle/Application/A2E2CB44-5BE3-4200-A27A-7A7502859B1C/Runner.app/Frameworks/Flutter.framework/Flutter: code signature invalid for '/private/var/containers/Bundle/Application/A2E2CB44-5BE3-4200-A27A-7A7502859B1C/Runner.app/Frameworks/Flutter.framework/Flutter'
/private/var/containers/Bundle/Application/A2E2CB44-5BE3-4200-A27A-7A7502859B1C/Runner.app/Frameworks/Flutter.framework/Flutter: stat() failed with errno=1
(lldb)
答案 0 :(得分:3)
它与iOS 13.3.1版本有关,与Flutter SDK无关。 请阅读https://github.com/flutter/flutter/issues/49504
它已在iOS13.4 beta版上修复。 到那时,请避免使用个人团队进行自动代码签名。
答案 1 :(得分:0)
相同。发生在任何吊舱中。 我所做的一切,我相信它已在Apple上解决。
我已经在这里记录了我所做的一切: https://forums.developer.apple.com/thread/128435