Flutter应用程序可以在iOS设备/模拟器上进行调试,但通过TestFlight安装时会立即崩溃 [英] Flutter app can debug on an iOS device/simulator but crashes immediately when installed via TestFlight

查看:363
本文介绍了Flutter应用程序可以在iOS设备/模拟器上进行调试,但通过TestFlight安装时会立即崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

曾经从事过应用程序的开发.一切都很好,我们可以在iOS和Android的模拟器和设备上进行调试.我们的Android应用程序运行良好,APK已在Play商店中显示.另一方面,iOS应用程序不喜欢通过TestFlight进行部署.构建档案,上传到iTunesConnect并通过TestFlight分发应用程序,我们看到应用程序在启动时立即崩溃.

Been working on an app. Everything is fine and we can debug on simulators and devices, both iOS and Android. Our Android app builds fine and the APK is up in the Play Store. The iOS app on the other hand doesn't like to be deployed via TestFlight. Building an archive, uploading to iTunesConnect and distributing the app through TestFlight we see the app crash immediately on startup.

确保在调试和发布时均将Bitcode设置为NO.将发布目标上的优化级别"设置为无".那没有影响.我已经证实我们也在使用正确的配置文件和签名证书进行签名.起初,我去了自动处理.

Ensured that Bitcode is set to NO for both debug and release. Set the Optimization Level on the release target to None. That had no impact. I've verified we're signing with the right provisioning profile and signing certificate too. At first I went with the Automatic handling of that.

我应该寻求解决立即崩溃的任何想法或领域吗?想提交某种设备日志,但没有任何日志.奇怪的是,双击iOS设备的主页按钮会在堆栈中显示一张带有我们应用徽标的白卡.所以看起来好像在那里...非常困惑.

Any ideas or areas I should be looking to resolve the immediate crashing? Would like to submit some sort of device log but there isn't any. Odd thing is that double tapping the iOS device home button shows a white card in the stack with our app logo. So it looks like it's there... very confused.

推荐答案

扩展@FrederickCook回答的内容...

Extending on what @FrederickCook answered...

  1. 转到您的ios/Podfile并查找:

ENV['FLUTTER_FRAMEWORK_DIR'] = '/Users/Alex/flutter/bin/cache/artifacts/engine/ios/'

它应该在第5行中.

  1. 修改为:

ENV['FLUTTER_FRAMEWORK_DIR'] = '/Users/Alex/flutter/bin/cache/artifacts/engine/ios-release/'

  1. 在ios/文件夹中运行 pod install
  2. 返回到应用的根目录并运行 flutter build ios
  3. 打开Xcode并创建存档以下载到iTunes.
  1. Run pod install inside the ios/ folder
  2. Go back to your app's root directory and run flutter build ios
  3. Open up Xcode and create your archive to download to iTunes.

这篇关于Flutter应用程序可以在iOS设备/模拟器上进行调试,但通过TestFlight安装时会立即崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆