cli
cli copied to clipboard
confused about "--project-path" removal
I see that in version 8 we no longer have a --project path option for run-ios. The docs suggest this path is now set in the "project configuration". But I don't see how I can support multiple native hosts for my single project.
That is, I have a single react-native codebase, and I have multiple native host apps. How can I designate which to build when using run-ios?
Hi @TomSwift , what do you mean by "native host apps"? Like different build variants and flavours?
@adamTrz & @TomSwift
I think I am investigating this issue now. I'm trying to leverage project config (as per docs).
What I see so far is after loading the config it doesn't include project[platform] provided value I set in sourceDir. The value is null.
We're trying to use this configuration override to the pod install process so we can have our app as a cocoa pod. So I assume its similar to what Tom was suggesting.
Edit: I had to set sourceDir to where my PodFile is
@adamTrz not different build variants/flavors of a codebase. I mean an entirely different native host app (separate codebase).
I am currently in the progress of updating the example project for CameraRoll to the latest version of react-native. We are using --project-path here to run the project in the example directory. Would be nice if this option returns.
There hasn't been any activity on this issue in the past 3 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 7 days.