接手flutter 項目 master主分支 運行一切正常 切換到dev分支 運行各種bug 各種沖突 特此做記錄 方便備查
一、用AS運行項目 flutter clean ?清理緩存、更新pod ?install 庫、 flutter build iOS 運行iOS項目 三步走
二、Xcode 運行報錯 1)本地庫版本不一致 用AS 全局搜索 改統一最新版本
2)集成融云庫報錯?rongcloud_rtc_plugin 集成方式有問題 ?正常情況是這樣的: ?rongcloud_rtc_plugin: ??
? ?git:
? ? ? ?url: git://github.com/rongcloud/rongcloud-rtc-flutter-sdk.git
不需要加path 避免分支節點報錯
3)The 'Pods-Runner' target has transitive dependencies that include ?
有三種解決方案:1、podfile 文件刪除userframe! 這樣swift引OC 會報錯
2、在podfile文件添加 ?pre_installdo|installer|# workaround for https://github.com/CocoaPods/CocoaPods/issues/3289Pod::Installer::Xcode::TargetValidator.send(:define_method,:verify_no_static_framework_transitive_dependencies){}end ?也有一個問題就是引入的第三方庫會報錯 顯示未引入
3、在插件 ios podspec 上增加 s.static_framework = true 解決了問題
三、Xcode Command PhaseScriptExecution failed with a nonzero exit code 提供一個解決方案 :?https://blog.csdn.net/qq_40697071/article/details/99055070