Skip to content

Bug and/or best practice question around usage of CocoaPod #519

@andrewsardone

Description

@andrewsardone

Hi there! Given that this is my first React Native issue, let me just say, “awesome work!” This is an impressive project, and I especially appreciate the team open sourcing it.

I’m up against an issue using React Native when brought in as a CocoaPods dependency.

At first, the structure looks sound. My Pods/React directory includes everything and I’m able to compile an app that constructs a simple RCTRootView, but upon serving up my bundle JS file simple components seem to be throwing errors:

RCTJSLog> "Running application "ReactCocoaPodsDemo" with appParams: {"rootTag":1,"initialProps":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF"
[RCTLog][tid:0x7f8528c53570][RCTUIManager.m:710]>No manager class found for view with module name "RCTText"
[RCTLog][tid:0x7f8528c53570][RCTUIManager.m:710]>No manager class found for view with module name "RCTRawText"
[RCTLog][tid:0x7f8528c53570][RCTUIManager.m:710]>No manager class found for view with module name "RCTText"
[RCTLog][tid:0x7f8528c53570][RCTUIManager.m:710]>No manager class found for view with module name "RCTRawText"
[RCTLog][tid:0x7f8528c53570][RCTUIManager.m:710]>No manager class found for view with module name "RCTRawText"
[RCTLog][tid:0x7f8528c53570][RCTUIManager.m:710]>No manager class found for view with module name "RCTRawText"
[RCTLog][tid:0x7f8528c53570][RCTUIManager.m:710]>No manager class found for view with module name "RCTText"
[RCTLog][tid:0x7f8528c53570][RCTUIManager.m:710]>No manager class found for view with module name "RCTRawText"

I’ve posted a sample repo with steps to recreate the issue:

  1. git clone https://github.com/andrewsardone/ReactCocoaPodsDemo
  2. cd ReactCocoaPodsDemo && open ReactCocoaPodsDemo.xcworkspace
  3. In a shell, run script/server and leave it running
  4. In Xcode, ⌘R to build and run
  5. Note that no <Text> components are rendered, and Xcode’s console is noting the above warnings

I’m at a loss on how to move forward, so any help would be appreciated.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions