Undefined symbols for architecture x86_64:
"__swift_FORCE_LOAD_$_swiftUniformTypeIdentifiers", referenced from:
__swift_FORCE_LOAD_$_swiftUniformTypeIdentifiers_$_FBSDKShareKit in libFBSDKShareKit.a(Enums+Extensions.o)
(maybe you meant: __swift_FORCE_LOAD_$_swiftUniformTypeIdentifiers_$_FBSDKShareKit)
"__swift_FORCE_LOAD_$_swiftCoreMIDI", referenced from:
__swift_FORCE_LOAD_$_swiftCoreMIDI_$_FBSDKShareKit in libFBSDKShareKit.a(Enums+Extensions.o)
(maybe you meant: __swift_FORCE_LOAD_$_swiftCoreMIDI_$_FBSDKShareKit)
"__swift_FORCE_LOAD_$_swiftWebKit", referenced from:
__swift_FORCE_LOAD_$_swiftWebKit_$_FBSDKCoreKit in libFBSDKCoreKit.a(AccessToken.o)
__swift_FORCE_LOAD_$_swiftWebKit_$_FBSDKCoreKit in libFBSDKCoreKit.a(Permission.o)
__swift_FORCE_LOAD_$_swiftWebKit_$_FBSDKCoreKit in libFBSDKCoreKit.a(Settings.o)
__swift_FORCE_LOAD_$_swiftWebKit_$_FBSDKLoginKit in libFBSDKLoginKit.a(FBLoginButton.o)
__swift_FORCE_LOAD_$_swiftWebKit_$_FBSDKLoginKit in libFBSDKLoginKit.a(LoginManager.o)
__swift_FORCE_LOAD_$_swiftWebKit_$_FBSDKShareKit in libFBSDKShareKit.a(Enums+Extensions.o)
(maybe you meant: __swift_FORCE_LOAD_$_swiftWebKit_$_FBSDKLoginKit, __swift_FORCE_LOAD_$_swiftWebKit_$_FBSDKShareKit , __swift_FORCE_LOAD_$_swiftWebKit_$_FBSDKCoreKit )
ld: symbol(s) not found for architecture x86_64
解决:
open XCode
create new file, select swift file
confirm "Create Bridging Header"
clean and build (I actually made my first build from XCode and then from react-native CLI)