我正在尝试重新创建茧足类FBSDKShareKit的绑定。
我执行了:
sharpie pod init ios FBSDKShareKit
sharpie pod bind我所犯的错误:
While building module 'FBSDKShareKit' imported from /private/var/folders/something.h:1:
In file included from <module-includes>:1:
In file included from /Users/something/ShareKit/build/Release-maccatalyst/FBSDKShareKit/FBSDKShareKit.framework/Headers/FBSDKShareKit-umbrella.h:13:
In file included from /Users/something/ShareKit/build/Release-maccatalyst/FBSDKShareKit/FBSDKShareKit.framework/Headers/FBSDKAppGroupContent.h:30:
/Users/something/ShareKit/build/Release-maccatalyst/FBSDKShareKit/FBSDKShareKit.framework/Headers/FBSDKCoreKitImport.h:29:10: fatal error:
'FBSDKCoreKit/FBSDKCoreKit.h' file not found
#import <FBSDKCoreKit/FBSDKCoreKit.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/var/folders/something.h:1:9: fatal error: could not build module 'FBSDKShareKit'
@import FBSDKShareKit;
~~~~~~~^~~~~~~~~~~~~
Binding...
2 errors generated.
Error while processing /private/var/folders/something.h.
Done. Exiting with error code 1.
error: Clang failed to parse input and exited with code 1似乎有些引用没有正确地解析/复制。谷歌没有告诉我这个问题(或者我问错了问题)。
有人在过去见过这个错误,或者甚至知道一个解决方案吗?
发布于 2021-02-12 13:17:58
通过dalexsoto (不和谐的DotNetEvolution)找到了一个解决办法:
sudo gem uninstall cocoapods && sudo gem install cocoapods -v 1.5.0 的最新版本不兼容
sharpie pod init ios FBSDKShareKit sharpie pod bind (失败)cp -r ./build/Release-maccatalyst/FBSDKCoreKit/* ./build/Release-maccatalyst/FBSDKShareKit/ 之间的引用。
sharpie pod bind https://stackoverflow.com/questions/66004575
复制相似问题