Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

React Native iOS error: "clang: error: linker command failed with exit code 1"

$
0
0

I just installed react-native-appodeal and I'm receiving the following error when trying to launch of iOS:

clang: error: linker command failed with exit code 1 (use -v to see invocation)

Does anyone know how to fix this?

I'm using the react-native-appodeal package and followed the setup instructions perfectly. Has anyone encountered this issue with appodeal specifically or iOS in general?

Environment

"react-native": "0.61.5""react-native-appodeal": "^2.6.4"

AppDelegate.m

#import "AppDelegate.h"#import <React/RCTBridge.h>#import <React/RCTBundleURLProvider.h>#import <React/RCTRootView.h>#import <Firebase.h>#import "RNSplashScreen.h"#import <CodePush/CodePush.h>#import <Appodeal/Appodeal.h>@implementation AppDelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{  RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];  RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge                                                   moduleName:@"wwdbbenji"                                            initialProperties:nil];  rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];  self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];  UIViewController *rootViewController = [UIViewController new];  rootViewController.view = rootView;  self.window.rootViewController = rootViewController;  [self.window makeKeyAndVisible];  if ([FIRApp defaultApp] == nil) {  [FIRApp configure];  }  [RNSplashScreen show];  [Appodeal initializeWithApiKey:@"XXXXX" types:AppodealAdTypeBanner hasConsent:true];  return YES;}- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge{#if DEBUG  return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];#else  return [CodePush bundleURL];#endif}@end

Podfile

platform :ios, '9.0'require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'def appodeal  pod 'APDAdColonyAdapter', '2.6.4.1'  pod 'APDAmazonAdsAdapter', '2.6.4.1'  pod 'APDAppLovinAdapter', '2.6.4.1'  pod 'APDAppodealAdExchangeAdapter', '2.6.4.1'  pod 'APDChartboostAdapter', '2.6.4.1'  pod 'APDFacebookAudienceAdapter', '2.6.4.1'  pod 'APDInMobiAdapter', '2.6.4.1'  pod 'APDInnerActiveAdapter', '2.6.4.1'  pod 'APDIronSourceAdapter', '2.6.4.1'  pod 'APDMintegralAdapter', '2.6.4.1'  pod 'APDMyTargetAdapter', '2.6.4.1'  pod 'APDOguryAdapter', '2.6.4.1'  pod 'APDOpenXAdapter', '2.6.4.1'  pod 'APDPubnativeAdapter', '2.6.4.1'  pod 'APDSmaatoAdapter', '2.6.4.1'  pod 'APDStartAppAdapter', '2.6.4.1'  pod 'APDTapjoyAdapter', '2.6.4.1'  pod 'APDUnityAdapter', '2.6.4.1'  pod 'APDVungleAdapter', '2.6.4.1'  pod 'APDYandexAdapter', '2.6.4.1'endtarget 'wwdbbenji' do  # Pods for wwdbbenji  pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"  pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"  pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired"  pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety"  pod 'React', :path => '../node_modules/react-native/'  pod 'React-Core', :path => '../node_modules/react-native/'  pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules'  pod 'React-Core/DevSupport', :path => '../node_modules/react-native/'  pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'  pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'  pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'  pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'  pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'  pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'  pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'  pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'  pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'  pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/'  pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'  pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'  pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'  pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'  pod 'ReactCommon/jscallinvoker', :path => "../node_modules/react-native/ReactCommon"  pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon"  pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'  appodeal  target 'wwdbbenjiTests' do    inherit! :search_paths    # Pods for testing  end  use_native_modules!  use_frameworks!endtarget 'wwdbbenji-tvOS' do  # Pods for wwdbbenji-tvOS  target 'wwdbbenji-tvOSTests' do    inherit! :search_paths    # Pods for testing  endend

Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>