Flutter iOS真机Release模式无法运行及TestFlight白屏问题求助
iOS Release模式启动白屏/报错排查求助
我使用Flutter 3.10.5开发了一款应用,在iOS模拟器上运行完全正常,但将.ipa文件部署到TestFlight后,打开公开链接时应用直接白屏无法启动。
尝试在真机上以Release模式运行:
flutter run --release
出现报错(截图如下):
我已经尝试了以下操作,但问题依然存在:
- 设置了正确的开发团队
- 使用了唯一且有效的Bundle ID
- 真机已在Apple开发者账号中完成注册
- 在Xcode中勾选了“自动配置描述文件”选项
- 在Podfile中添加了以下代码,但没有效果:
post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle" target.build_configurations.each do |config| config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO' end end end end end
相关环境信息
- Flutter版本:3.10.5(stable通道)
- Xcode版本:14.2 (14C18)
- macOS版本:12.5,设备为MacBook Air (M1 2020)
Flutter Doctor检测结果
[✓] Flutter (Channel stable, 3.10.5, on macOS 12.5 21G72 darwin-arm64 (Rosetta), locale en-EG) [!] Android toolchain - develop for Android devices (Android SDK version 34.0.0) ✗ cmdline-tools component is missing Run `path/to/sdkmanager --install "cmdline-tools;latest"` See https://developer.android.com/studio/command-line for more details. ✗ Android license status unknown. Run `flutter doctor --android-licenses` to accept the SDK licenses. See https://flutter.dev/docs/get-started/install/macos#android-setup for more details. [✓] Xcode - develop for iOS and macOS (Xcode 14.2) [✓] Chrome - develop for the web [✓] Android Studio (version 2022.2) [✓] VS Code (version 1.79.2) [✓] Connected device (2 available) ! Error: Failed to prepare the device for development. Please unlock and reconnect the device. (code 806) [✓] Network resources ! Doctor found issues in 1 category.
恳请各位帮忙排查问题原因,感谢!
内容的提问来源于stack exchange,提问作者aym1781969
相关产品推荐
相关产品推荐

