首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >未能为FBSDKShareKit茧足类创建客观的锐器绑定

未能为FBSDKShareKit茧足类创建客观的锐器绑定
EN

Stack Overflow用户
提问于 2021-02-02 06:22:58
回答 1查看 269关注 0票数 0

我正在尝试重新创建茧足类FBSDKShareKit的绑定。

我执行了:

代码语言:javascript
复制
sharpie pod init ios FBSDKShareKit
sharpie pod bind

我所犯的错误:

代码语言:javascript
复制
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

似乎有些引用没有正确地解析/复制。谷歌没有告诉我这个问题(或者我问错了问题)。

有人在过去见过这个错误,或者甚至知道一个解决方案吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-02-12 13:17:58

通过dalexsoto (不和谐的DotNetEvolution)找到了一个解决办法:

  1. sudo gem uninstall cocoapods && sudo gem install cocoapods -v 1.5.0
    • 最新版本的cocoapods与目标sharpie.

的最新版本不兼容

  1. sharpie pod init ios FBSDKShareKit
    • 只是常规下载& preparation.

  1. sharpie pod bind (失败)
    • 第一次绑定尝试失败,但创建了所有文件necessary.

  1. cp -r ./build/Release-maccatalyst/FBSDKCoreKit/* ./build/Release-maccatalyst/FBSDKShareKit/
    • 将FBSDKCoreKit的构建工件复制到FBSDKShareKit的构建目标文件夹中。这满足了Facebook sdk头files.

之间的引用。

  1. sharpie pod bind
    • 绑定现在正在按预期工作。Hooray!
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66004575

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档