0
我知道相關的問題,但他們提到Pod現在不支持的文件,因此決定重新啓動它。react-native-fbsdk失敗Xcode構建
這是錯誤我調用堆棧:
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
在將它們從~/Documents/FacebookSDK
拖拽出來後,它們都存在於Framework
組的Xcode項目中。libRCTFBSDK.a
存在於Link Binaries With Libraries
,Build Phases
選項卡中。
我們設法讓它工作多次,但現在它已經停止工作時,建設。
我們也不包括任何與Facebook相關的豆莢。
非常感謝你! – Franz