xcode7 – FBSDKCorekit.h,FBSDKCopying.h文件注释发现使用Cocoapods

前端之家收集整理的这篇文章主要介绍了xcode7 – FBSDKCorekit.h,FBSDKCopying.h文件注释发现使用Cocoapods前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
添加不相关的pod之后,由于某些奇怪的原因,我在构建过程中收到一条错误消息,指示FBSDKCorekit.h,找不到FBSDKCopying.h和FBSDKButton.h文件.根据我在stackoverflow上发现的建议,我已经跟随无数建议改变项目构建设置中的属性;然而,似乎没有任何工作.

我正在使用Cocoapods,所以我试图卸载并重新安装它以及预发行版本.我清理了pod缓存,并删除了实际的pods文件夹,podfile.lock和xcworkspace,并将pod重新安装到项目中;但是,我仍然收到错误.

我也删除了项目缓存并重建了它…

任何帮助将不胜感激

Podfile

  1. # define a global platform for your project
  2. platform :ios,'8.4'
  3. # using Swift
  4. use_frameworks!
  5. #
  6. source 'https://github.com/CocoaPods/Specs.git'
  7.  
  8. # disable bitcode in every sub-target
  9. post_install do |installer|
  10. installer.pods_project.targets.each do |target|
  11. target.build_configurations.each do |config|
  12. config.build_settings['ENABLE_BITCODE'] = 'NO'
  13. end
  14. end
  15. end
  16.  
  17. target 'MyApp' do
  18. # other pods
  19. pod ...
  20. # Facebook
  21. pod 'FBSDKCoreKit','4.9.0-beta2'//4.8 gives same issue
  22. pod 'FBSDKLoginKit','4.9.0-beta2'
  23. pod 'FBSDKShareKit','4.9.0-beta2'
  24. # Uber(New pod added)
  25. pod 'UberRides' //actually just realized it's just a wrapper for very simple calls
  26.  
  27. # ==============================================================
  28. # Sets the inheritance mode for the tests target inheriting
  29. # only the search paths
  30. target 'MyAppTests' do
  31. inherit! :search_paths
  32. end
  33. end

解决方法

Cocapods 1.0.0 Beta版本似乎有一些错误.
回到v0.39.0修复错误.
你可能需要删除可用的最新beta版本,this question应该有所帮助.

猜你在找的iOS相关文章