React-native-youtube: Build failed with react native 0.31

Created on 19 Aug 2016  路  6Comments  路  Source: davidohayon669/react-native-youtube

When i try to build with RN 0.31
I've got this issue

CSSLayout/CSSLayout.h' file not found with <angled> include; use "quotes" instead
CSSLayout.h:26:10: 'CSSLayout/CSSMacros.h' file not found with <angled> include; use "quotes" instead

I don't know what to do

Thanks

Most helpful comment

Use XCode's quick fix - right click over the problem area and apply fix. It should be resolved.

All 6 comments

Use XCode's quick fix - right click over the problem area and apply fix. It should be resolved.

The XCode's quick fix solves the problem, but I use BuddyBuild with an integrated SDK and the remote build also fails and I think it's for the same reason.

** BUILD FAILED **
The following build commands failed:
CompileC /tmp/sandbox/57a1edef4af4710100f3aa29/bbbuild/Build/Intermediates/RCTYouTube.build/Debug-iphoneos/RCTYouTube.build/Objects-normal/armv7/RCTYouTubeManager.o RCTYouTubeManager.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler

Is there a way to fix it?

edit: there is also 2 warnings about types:
/tmp/sandbox/workspace/node_modules/react-native-youtube/RCTYouTubeManager.m:64:22: incompatible pointer types initializing 'RCTYouTube *' with an expression of type 'UIView * _Nullable' [-Wincompatible-pointer-types]

and

/tmp/sandbox/workspace/node_modules/react-native-youtube/RCTYouTubeManager.m:66:71: incompatible pointer to integer conversion sending 'NSNumber *' to parameter of type 'BOOL' (aka 'signed char') [-Wint-conversion]

It looks like this was fixed in RN 0.34.0 (released today). See: https://github.com/facebook/react-native/commit/6e216d20343fccbb7bf9853ffb06a0d2628e9fc5

I don't think it was. I'm still having the same issue on RN 0.39.2 and react-native-youtube 0.8.1. I have to do the manual xcode quick fix every time I run yarn install.

Is there a plan / fork with a permanent fix for that?

@sharnik does replacing the arrow with quotes fix it? I am having a similar issue with the react-native-material-design-kit library

@hammadzz It should. Try to open the file in XCode and use its auto-quick-fix thingy.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dungnguyen10989 picture dungnguyen10989  路  3Comments

johnnykoo84 picture johnnykoo84  路  4Comments

manjeet-dobble picture manjeet-dobble  路  5Comments

alz10 picture alz10  路  4Comments

webdevbyjoss picture webdevbyjoss  路  4Comments