cli icon indicating copy to clipboard operation
cli copied to clipboard

confused about "--project-path" removal

Open TomSwift opened this issue 3 years ago • 3 comments

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?

TomSwift avatar Jun 27 '22 18:06 TomSwift

Hi @TomSwift , what do you mean by "native host apps"? Like different build variants and flavours?

adamTrz avatar Aug 19 '22 08:08 adamTrz

@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

bigorangemachine avatar Oct 06 '22 18:10 bigorangemachine

@adamTrz not different build variants/flavors of a codebase. I mean an entirely different native host app (separate codebase).

TomSwift avatar Oct 06 '22 18:10 TomSwift

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.

Arjan-Zuidema avatar Nov 23 '22 14:11 Arjan-Zuidema

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.

github-actions[bot] avatar Feb 22 '23 03:02 github-actions[bot]