Coding编译连接过程中遇到的问题及解决方法(iOS)

时间:2023-03-08 16:54:34
Coding编译连接过程中遇到的问题及解决方法(iOS)
Github源码下载地址:https://github.com/Coding/Coding-iOS
Coding 上下载地址: https://coding.net/u/coding/p/Coding-iPad/git
Github源码下载地址:https://github.com/Coding/Coding-iPad
第一个问题:
diff: /../Podfile.lock: No such file or directory
diff: /Manifest.lock: No such file or directory
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
Coding编译连接过程中遇到的问题及解决方法(iOS)
解决方法: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 `Coding_iOS` to `Pods/Target Support Files/Pods-Coding_iOS/Pods-Coding_iOS.debug.xcconfig` or include the `Pods/Target Support Files/Pods-Coding_iOS/Pods-Coding_iOS.debug.xcconfig` in your build configuration.

[!] 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 `Coding_iOS` to `Pods/Target Support Files/Pods-Coding_iOS/Pods-Coding_iOS.release.xcconfig` or include the `Pods/Target Support Files/Pods-Coding_iOS/Pods-Coding_iOS.release.xcconfig` in your build configuration.

cocoapods方面遇到的警告解决方法:
Coding编译连接过程中遇到的问题及解决方法(iOS)
然后再: pod install
2. ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Coding编译连接过程中遇到的问题及解决方法(iOS)
解决方法:几年了,由于第一次遇到这个问题,以前顶多也就是说ld: library not found for -lxxx  等缺失第三方库,这次的问题是缺失pods,网上说的方法也都基本上用过了,但是没有用。偶然看到*上面有一段关于解决该问题的描述,虽然不是很匹配我的问题,但是我找到了我的项目对应的位置,并做了将libPods.a直接删除的操作,居然问题解决了。
Coding编译连接过程中遇到的问题及解决方法(iOS)
Coding编译连接过程中遇到的问题及解决方法(iOS)
无论如何,问题是解决了,也算是一种方法,以后遇到类似的问题,也可以参照一下。