我知道相关问题,但它们指的是现在不受支持的Pod文件,因此决定再次提出。
这是我对错误的调用堆栈:
ld: warning: Auto-Linking supplied '/Users/Me/Documents/FacebookSDK/Bolts.framework/Bolts', framework linker option at /Users/Me/Documents/FacebookSDK/Bolts.framework/Bolts is not a dylib
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_FBSDKHashtag", referenced from:
objc-class-ref in libRCTFBSDK.a(RCTConvert+FBSDKSharingContent.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我Info.plist
看起来像这样:
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>fb****</string>
</array>
</dict>
</array>
<key>FacebookAppID</key>
<string>********</string>
<key>FacebookDisplayName</key>
<string>My App</string>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>fbapi</string>
<string>fb-messenger-api</string>
<string>fbauth2</string>
<string>fbshareextension</string>
</array>
- FBSDK 驻留
~/Documents/FacebookSDK
并添加到Framework Search Paths
选项卡中Build Settings
(设置为recursive
)。 Bolts, FBSDKCoreKit, FBSDKLoginKit, FBSDKShareKit
Framework
从~/Documents/FacebookSDK
. _libRCTFBSDK.a
存在于Link Binaries With Libraries
选项Build Phases
卡中。
我们已经设法让它工作了好几次,但现在它在构建时已经停止工作。
我们也不包含任何与 Facebook 相关的 Pod。