Xcode 报错解决过程记录
1、 directory not found for option '-F/Users/sowaydev/Desktop/共享链/ShareChain/Vendor/iOSPanoramaSDK_v2.6.0/BaiduMap_iOSPanoramaSDK_v2.6.0_framework'
解决方法:
这种提示,通常是由于添加了第三方SDK,但是后来改了个名字或者去掉了SDK,但是在Build Settings----->Search Paths----->Library Search Paths 中仍然没有删除掉对应的路径,所以需要到Library Search Paths和Framework Search Paths中删除掉警告的路径,就OK了
2、/Users/apple/.rvm/gems/ruby-2.4.1@global/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:118:in git_version': Failed to extract git version from
git --version("xcrun: error: active developer path (\"/Users/apple/Desktop/Xcode.app/Contents/Developer\") does not exist\nUse
sudo xcode-select --switch path/to/Xcode.appto specify the Xcode that you wish to use for command line developer tools, or use
xcode-select --installto install the standalone command line developer tools.\nSee
man xcode-select` for more details.\n") (RuntimeError)
这是因为安装了2个版本的xcode,终端不知道command line developer tools要操作那个版本的xcode
屏幕快照 2018-11-21 下午10.47.36.png
3、Receiver type ‘X’ for instance message is a forward declaration
这往往是引用的问题。ARC要求完整的前向引用,也就是说在MRC时代可能只需要在.h中申明@class就可以,但是在ARC中如果调用某个子类中未覆盖的父类中的方法的话,必须对父类.h引用,否则无法编译。
https://www.aliyun.com/jiaocheng/428942.html
4、Xcode14运行真机Pod工程中签名报错
解决方案:https://www.jianshu.com/p/b12854822b1b
推荐使用方法三来解决
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['CODE_SIGN_IDENTITY'] = '' //主要是这句
end
end
end
或
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings['CODE_SIGN_IDENTITY'] = ''
end
end