【发布时间】:2021-05-22 20:48:05
【问题描述】:
好的,首先让我们从这个开始:当我放弃 project/ios 并尝试 pod install 时,它给了我这个错误:(我想让你知道,我已经修复了 pod关于The platform of the target Runner``)的问题
[!] The 'Pods-Runner' target has transitive dependencies that include statically linked binaries: ({repo-path}/ios/Flutter/Flutter.framework)
好的,我找到了一些解决方案来解决这个问题,但这些解决方案对我不起作用: 我尝试过的解决方案:
- 删除
project/ios/Flutter/Flutter.framework并在尝试运行pod install之后。 当我这样做时,在pod install的第一次运行中它给了我这个输出:
Analyzing dependencies
cloud_firestore: Using Firebase SDK version '7.3.0' defined in 'firebase_core'
firebase_auth: Using Firebase SDK version '7.3.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '7.3.0' defined in 'firebase_core'
firebase_storage: Using Firebase SDK version '7.3.0' defined in 'firebase_core'
Downloading dependencies
Installing GoogleUtilities 7.2.0 (was 7.2.2)
Generating Pods project
Integrating client project
Pod installation complete! There are 10 dependencies from the Podfile and 28 total pods installed.
[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target `Runner` to `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` or include the `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` in your build configuration (`Flutter/Release.xcconfig`).
之后,当我想运行应用程序时它不起作用,所以卡在Running Xcode build...
当终止(停止调试)它并运行这些命令时:
cd ios
pod install
它再次给了我这个输出:(同样的问题)。
[!] The 'Pods-Runner' target has transitive dependencies that include statically linked binaries: ({repo-path}/ios/Flutter/Flutter.framework)
我已经尝试了越来越多的解决方案来解决这个问题,检查了所有关于 flutter-ios-pod 的 StackOverflow 问题,但是我从未找到任何可行的解决方案。
【问题讨论】:
-
我试过了,还是不行
标签: flutter cocoapods flutter-ios