一.
flutter、VS code ios
1.pod install报错:
The 'Pods-Runner' target has transitive dependencies that include statically linked binaries:
参考:https://zhuanlan.zhihu.com/p/529680469
2.运行时link报错:
dyld: Library not loaded: @rpath/libswiftCore.dylib
参考://www.greatytc.com/p/7becd6ba4d07
1和2的报错如果按参考的方法都试过了不行的话,就删掉flutter项目-》iOS-》.symlinks、flutter项目-》iOS-》pods、podfile.lock、pudspec.lock
然后重新flutter pub get、pod install下载三方库,就可以解决
二.
flutter、VS code ios
VS code 上传代码报错:
git pull --tags origin dev_4.0
From https://gitee.com/XXXXXX
- branch dev_4.0 -> FETCH_HEAD
hint: You have divergent branches and need to specify how to reconcile them.
hint: You can do so by running one of the following commands sometime before
hint: your next pull:
hint:
hint: git config pull.rebase false # merge
hint: git config pull.rebase true # rebase
hint: git config pull.ff only # fast-forward only
hint:
hint: You can replace "git config" with "git config --global" to set a default
hint: preference for all repositories. You can also pass --rebase, --no-rebase,
hint: or --ff-only on the command line to override the configured default per
hint: invocation.
fatal: Need to specify how to reconcile divergent branches.
参考:https://blog.csdn.net/BIG_PEI/article/details/122329816
输入命令:git config pull.rebase false
然后重新提交代码
三.
pod install完成三方库的下载,但报警告,警告也不影响项目运行:
警告:
[!] 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
).
警告: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 yxx_ios
to Pods/Target Support Files/Pods-yxx_ios/Pods-yxx_ios.debug.xcconfig
or include the Pods/Target Support Files/Pods-yxx_ios/Pods-yxx_ios.debug.xcconfig
in your build configuration
参考:https://blog.csdn.net/u012914828/article/details/53609879
解决:
将PROJECT → Info → Configurations 下Debug和Release下的.debug和.release选项替换为None,如下图所示:
设置之后,再pod install无警告