一.
flutter、VS code ios
1.pod install報(bào)錯(cuò):
The 'Pods-Runner' target has transitive dependencies that include statically linked binaries:
參考:https://zhuanlan.zhihu.com/p/529680469
2.運(yùn)行時(shí)link報(bào)錯(cuò):
dyld: Library not loaded: @rpath/libswiftCore.dylib
參考:http://www.lxweimin.com/p/7becd6ba4d07
1和2的報(bào)錯(cuò)如果按參考的方法都試過(guò)了不行的話,就刪掉flutter項(xiàng)目-》iOS-》.symlinks、flutter項(xiàng)目-》iOS-》pods、podfile.lock、pudspec.lock
然后重新flutter pub get、pod install下載三方庫(kù),就可以解決
二.
flutter、VS code ios
VS code 上傳代碼報(bào)錯(cuò):
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完成三方庫(kù)的下載,但報(bào)警告,警告也不影響項(xiàng)目運(yùn)行:
警告:
[!] 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選項(xiàng)替換為None,如下圖所示:
設(shè)置之后,再pod install無(wú)警告