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

添加不相关的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

解决方法

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

相关文章

当我们远离最新的 iOS 16 更新版本时,我们听到了困扰 Apple...
欧版/美版 特别说一下,美版选错了 可能会永久丧失4G,不过只...
一般在接外包的时候, 通常第三方需要安装你的app进行测...
前言为了让更多的人永远记住12月13日,各大厂都在这一天将应...