问题修复记录

工作问题及解决方案记录

1、Command PhaseScriptExecution failed with a nonzero exit code

 

解决方案

 

pod里面数据都删除重新pod install

2、flutter版本更新

flutter upgrade --force

在同步flutter 插件

Command + , ->Plugins 选择更新

3、Xcode报错does not contain bitcode. You must rebuild it with bitcode enabled

解决方案Build Setting 中设置Enable BitcodeNO.

 

4flutter重新运行项目的时候,一直卡在“Resolving dependencies...”

解决方案打开Flutter SDK:flutter\packages\flutter_tools\gradle\flutter.gradle

buildscript {

    repositories {

       // google()

       // jcenter()

        maven{ url 'https://maven.aliyun.com/repository/google' }

        maven{ url 'https://maven.aliyun.com/repository/jcenter' }

        maven{url 'http://maven.aliyun.com/nexus/content/groups/public'}

    }

    dependencies {

        classpath 'com.android.tools.build:gradle:3.5.0'

    }

}

 

5Xcode清理~/Library/Developerdd/Xcode/

清理/DerivedDataArchivesiOS DeviceSupport

6、[!] Invalid `Podfile` file: Missing `flutter_post_install(installer)` in Podfile `post_install` block.

 

target 'myapp' do// 用的各sdk

end// 新增的配置

post_install do |installer|

  flutter_post_install(installer) if defined?(flutter_post_install)

end

 

 

解决方案podflie文件添加新flutter版本需要

 

post_install do |installer|

  flutter_post_install(installer) if defined?(flutter_post_install)

end

 

 

7

[!] CocoaPods could not find compatible versions for pod "Flutter":

  In Podfile:

    Flutter (from `../flutter_module/.ios/Flutter`)

 

    FlutterPluginRegistrant (from `../flutter_module/.ios/Flutter/FlutterPluginRegistrant`) was resolved to 0.0.1, which depends on

      Flutter

 

Specs satisfying the `Flutter (from `../flutter_module/.ios/Flutter`), Flutter` dependency were found, but they required a higher minimum deployment target.

 

解决方案

 

1、../flutter_module/.ios/podflie文件 对应iOS版本是多少

2、flutter的版本对应标记的iOS是多少

../flutter_module/.ios/Flutter Flutter.podspec

3当前podflie文件保持一致后在pod install

 

8解决方案很简单, Library not loaded找到不到swfit依赖的库,那我们就直接指定swift的本地路径就行了。

找到Runpath Search Paths添加参数/usr/lib/swift

 

9Failed to build iOS app

可能就是缓存问题

bitcode设置问题运行下Ios看看

 

 

 

posted @   黄志武(kaven)  阅读(485)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 零经验选手,Compose 一天开发一款小游戏!
· 通过 API 将Deepseek响应流式内容输出到前端
· 因为Apifox不支持离线,我果断选择了Apipost!
点击右上角即可分享
微信分享提示