在添加不相关的pod之后,由于某些奇怪的原因,我在构建过程中收到一条错误消息,指示FBSDKCorekit.h,找不到FBSDKCopying.h和FBSDKButton.h文件.根据我在stackoverflow上发现的建议,我已经跟随无数建议改变项目构建设置中的属性;然而,似乎没有任何工作.
我正在使用Cocoapods,所以我试图卸载并重新安装它以及预发行版本.我清理了pod缓存,并删除了实际的pods文件夹,podfile.lock和xcworkspace,并将pod重新安装到项目中;但是,我仍然收到错误.
我也删除了项目缓存并重建了它…
任何帮助将不胜感激
Podfile
# define a global platform for your project platform :ios,'8.4' # using Swift use_frameworks! # source 'https://github.com/CocoaPods/Specs.git' # disable bitcode in every sub-target post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['ENABLE_BITCODE'] = 'NO' end end end target 'MyApp' do # other pods pod ... # Facebook pod 'FBSDKCoreKit','4.9.0-beta2'//4.8 gives same issue pod 'FBSDKLoginKit','4.9.0-beta2' pod 'FBSDKShareKit','4.9.0-beta2' # Uber(New pod added) pod 'UberRides' //actually just realized it's just a wrapper for very simple calls # ============================================================== # Sets the inheritance mode for the tests target inheriting # only the search paths target 'MyAppTests' do inherit! :search_paths end end