Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Closed
andrewsardone opened this issue Mar 30, 2015 · 2 comments
Closed

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

andrewsardone opened this issue Mar 30, 2015 · 2 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@andrewsardone
Copy link
Contributor

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!

andrewsardone added a commit to andrewsardone/ReactCocoaPodsDemo that referenced this issue Mar 30, 2015
@ide
Copy link
Contributor

ide commented Mar 30, 2015

You could try to pull in #508 and #285 and optionally #261. The current master branch doesn't handle cocoapods very well but once something like a scalable module system (#235) is built out things should get a lot better.

@andrewsardone
Copy link
Contributor Author

Thanks for the reply, @ide! I’ll take a look at those issues, but actually my problem was much simpler: I simply didn’t include the React/RCTText subspec dependency in my Podfile. This was pointed out to me by @mudetroit: andrewsardone/ReactCocoaPodsDemo#1.

I’m excited to see development of a broader module system (#235), so I’ll catch up on that thread. But frankly, right now this CocoaPods setup doesn’t seem too bad!

Closing the ticket – cheers!

@facebook facebook locked as resolved and limited conversation to collaborators May 29, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 23, 2018
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants