iOS错误合集

2023-01-05  本文已影响0人  happycheng

一.

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
参考:https://www.jianshu.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

参考: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,如下图所示:

截屏2023-01-06 00.39.35.png
设置之后,再pod install无警告
上一篇 下一篇

猜你喜欢

热点阅读