美文网首页
Flutter 真机运行和打包遇到的问题

Flutter 真机运行和打包遇到的问题

作者: 张_何 | 来源:发表于2020-07-17 18:43 被阅读0次
    • 如下图真机运行的时候报6S has denied the launch request. Internal launch error: process launch failed: failed to get the task for process 36000的错误,

      image.png
      这个错误在于真机运行的时候使用的描述文件是distribute的,将描述文件改为debug的就好了
    • AS 跑真机的时候报 error: Building for iOS, but the embedded framework 'App.framework' was built for iOS Simulator. (in target 'Runner' from project 'Runner')
      这个时候只需要我们找到Flutter 生成的 App.framework下的App,将App删掉重新编译就好

      image.png
    • archive的时候报
      Bitcode bundle could not be generated because '/***/.ios/Flutter/engine/Flutter.framework/Flutter' was built without full bitcode. All frameworks and dylibs for bitcode must be generated from Xcode Archive or Install build file '/***/.ios/Flutter/engine/Flutter.framework/Flutter' for architecture armv7
      情形一:有时候时候我们需要将FlutterModule中的.ios工程中的Bitcode关掉就好了
      情形二:本情况适用于在情形一无效的情况下
      1、AS 终端执行flutter clean
      2、终端 Flutter build ios --release
      3、修改bundleid 和 证书及描述文件
      4、然后对.ios工程执行pod install,然后bitcode修改为no,然后archive
      5、.ios的工程archive没问题的话,再对native 项目执行pod install,bitcode修改为no,然后archive
      参考github上的解决

      image.png

    相关文章

      网友评论

          本文标题:Flutter 真机运行和打包遇到的问题

          本文链接:https://www.haomeiwen.com/subject/bwsghktx.html