Я пробовал это решение, но ошибка все та же..
Мой файл AppDelegate.mm выглядит так:
Код: Выделить всё
#import "AppDelegate.h"
#import
#import
#import
#import
#import
@implementation AppDelegate
- (BOOL)application:(UIApplication *)app
openURL:(NSURL *)url
options:(NSDictionary *)options
{
if ([[FBSDKApplicationDelegate sharedInstance] application:app openURL:url options:options]) {
return YES;
}
if ([RCTLinkingManager application:app openURL:url options:options]) {
return YES;
}
return NO;
}
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.moduleName = @"AppName";
// You can add your custom initial props in the dictionary below.
// They will be passed down to the ViewController used by React Native.
self.initialProps = @{};
return [super application:application didFinishLaunchingWithOptions:launchOptions];
}
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
{
return [self getBundleURL];
}
- (NSURL *)getBundleURL
{
#if DEBUG
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
#else
return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
#endif
}
@end
Код: Выделить всё
CFBundleURLTypes
CFBundleURLSchemes
fb
CFBundleVersion
$(CURRENT_PROJECT_VERSION)
FacebookAppID
FacebookClientToken
FacebookDisplayName
LSApplicationQueriesSchemes
fbapi
fb-messenger-share-api
Код: Выделить всё
pod 'react-native-fbsdk-next', :path => '../node_modules/react-native-fbsdk-next'
Код: Выделить всё
installer.aggregate_targets.first.user_project.native_targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['LIBRARY_SEARCH_PATHS'] = ['$(inherited)', '$(SDKROOT)/usr/lib/swift']
end
end
Подробнее здесь: https://stackoverflow.com/questions/780 ... n-appdeleg