React-native-youtube: Can't build with XCode 9.2, got error "Too many arguments to block call, expected 1, have 3"

Created on 2 Jan 2018  Â·  8Comments  Â·  Source: davidohayon669/react-native-youtube

Hi, I got an error "Too many arguments to block call, expected 1, have 3" after updating to XCode 9.2
At 'RCTYoutubeStandalone.m' at line

reject(@“error”, @“XCDYouTubeKit is not installed”, nil);

react-native: 0.50.4
react-native-youtube: ^1.0.1

Does anyone know how to fix it ? Please help me

All 8 comments

@saly2310 can you build the example app in this repo?

add: pod 'XCDYouTubeKit', '~> 2.5' to pod file and run pod install

+1 with:

xcode 9.3
"react": "16.3.1",
"react-native": "0.55.3",

I have same issue @luisfuertes

Hi, have the same error, were you able to fix it?

xcode : 10
react : 16.4.2
react-native : 0.55.4

image

I added 'libXCDYouTubeKit.a' manually to 'My Target > Build Phases > Link Binary With Libraries' list then it works fine. I don't know why but the library is in pods and builds well but it doesn't work before setting it manually.

Anyways hope it helps someone.

xcode : 10
react : 16.4.2
react-native : 0.55.4

image

I added 'libXCDYouTubeKit.a' manually to 'My Target > Build Phases > Link Binary With Libraries' list then it works fine. I don't know why but the library is in pods and builds well but it doesn't work before setting it manually.

Anyways hope it helps someone.

where is this .a file located?

The right way to do this is in README:

Standalone iOS player Uses XCDYoutubeKit (Warning: XCDYoutubeKit doesn't conform to YouTube's Terms Of Use). Add the next line to your Podfile and run pod install inside /ios folder:

pod 'XCDYouTubeKit', '~> 2.8'

Was this page helpful?
0 / 5 - 0 ratings