tlenclos / react-native-audio-streaming

iOS & Android react native module to play an audio stream, with background support and media controls
MIT License
781 stars 255 forks source link

Installation broken: all 3 methods #90

Open lightninglu10 opened 7 years ago

lightninglu10 commented 7 years ago

Hey guys, not sure what's happening as this library was working earlier, but now the installation seems to be completely broken.

If I try the pod installation, I'm getting an error of 'RCTBridgeModule.h' file not found

If I run the 2nd semi-manual installation, on React Native I'm getting some compile failures of streaming kit --

The following build commands failed:

CompileC /Users/patricklu/nando/ios/build/Build/Intermediates/Pods.build/Debug-iphonesimulator/StreamingKit.build/Objects-normal/x86_64/NSMutableArray+STKAudioPlayer.o StreamingKit/StreamingKit/StreamingKit/NSMutableArray+STKAudioPlayer.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

If I try to compile via xcode:

/Users/patricklu/nando/node_modules/react-native-audio-streaming/ios/Pods/<built-in>:1:10: '/Users/patricklu/nando/node_modules/react-native-audio-streaming/ios/Pods/Target Support Files/StreamingKit/StreamingKit-prefix.pch' file not found

And I can't even do the 3rd method. When I run pod install in the node_module, I get this error:

[!] Unable to find host target(s) for ReactNativeAudioStreaming. Please add the host targets for the embedded targets to the Podfile.
Certain kinds of targets require a host target. A host target is a "parent" target which embeds a "child" target. These are example types of targets that need a host target:
- Framework
- App Extension
- Watch OS 1 Extension
- Messages Extension (except when used with a Messages Application)

[!] Automatically assigning platform ios with version 7.0 on target ReactNativeAudioStreaming because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

Can anyone help?

lightninglu10 commented 7 years ago

Weird, looks like someone else had this issue too at #46 and I followed them by deleting the react-native-audio-streaming file in node_modules and re-ran npm install and now things are compiling.