无法在 IOS 上 运行 应用程序,关于 Flutter 中的 pod 的问题
Could not run application on IOS, issue about pod in Flutter
每当我清理 project/ios
文件夹然后尝试 pod install
它会抛出一个错误:
[!] The 'Pods-Runner' target has transitive dependencies that include statically linked binaries: ({repo-path}/ios/Flutter/Flutter.framework)
Whosebug 和其他论坛中列出了一些解决方法。
其中几个:
- 删除
project/ios/Flutter/Flutter.framework
然后尝试 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`).
下面列出了最有用的解决方案:
- 删除
ios/Podfile.lock
然后 运行ning:
cd ios
pod install
如果它不起作用,那么,如果您遇到这样的新问题:
[!] The 'Pods-Runner' target has transitive dependencies that include statically linked binaries: ({repo-path}/ios/Flutter/Flutter.framework)
您应该尝试通过以下步骤修复它:
- 删除
ios/Flutter/Flutter.framework
cd ios
pod install
在我的情况下有效的方式:
我只是从头重新创建了项目,然后我替换了 .git/
lib/
, pubspec
...(制作项目的必要目录和文件 运行 )
每当我清理 project/ios
文件夹然后尝试 pod install
它会抛出一个错误:
[!] The 'Pods-Runner' target has transitive dependencies that include statically linked binaries: ({repo-path}/ios/Flutter/Flutter.framework)
Whosebug 和其他论坛中列出了一些解决方法。
其中几个:
- 删除
project/ios/Flutter/Flutter.framework
然后尝试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`).
下面列出了最有用的解决方案:
- 删除
ios/Podfile.lock
然后 运行ning:
cd ios
pod install
如果它不起作用,那么,如果您遇到这样的新问题:
[!] The 'Pods-Runner' target has transitive dependencies that include statically linked binaries: ({repo-path}/ios/Flutter/Flutter.framework)
您应该尝试通过以下步骤修复它:
- 删除
ios/Flutter/Flutter.framework
cd ios
pod install
在我的情况下有效的方式:
我只是从头重新创建了项目,然后我替换了 .git/
lib/
, pubspec
...(制作项目的必要目录和文件 运行 )