cli icon indicating copy to clipboard operation
cli copied to clipboard

Change default location of iOS folder (RN 0.75.0)

Open ShrikantRao opened this issue 1 year ago • 3 comments

Ask your Question

I'm encountering build errors in my React Native iOS project (npx @react-native-community/cli@latest init MyApp) where I have moved the "IOS" folder from root to "clients/c1/ios". Here's my react-native.config.js Screenshot 2024-09-18 at 12 58 56 AM

Getting error on 'pod install' Screenshot 2024-09-18 at 12 43 39 AM

Can you please help me out what I'm missing.

ShrikantRao avatar Sep 17 '24 19:09 ShrikantRao

Hey, I could replicate this issue and it's related to Codegen, I'll try to debug and check how we can resolve this issue. For now it only works when .. from iOS project is root React Native project and this is not good assumption because it fails in case like yours.

szymonrybczak avatar Sep 18 '24 05:09 szymonrybczak

cc @cipolleschi is there any chance we could leverage root property from config's command output in Codegen to avoid situations like this one? Especially now that the structure for the Config should be the same across implementations.

szymonrybczak avatar Sep 18 '24 20:09 szymonrybczak

probably yes, but right now we don't have capacity nor time to work on that. Moreover, this will introduce yet another dependency on the config command from the CLI, something we are trying to minimize for the React Native framework effort. I don't have a clear solution in mind, right now. I'll have to spend time thinking about that.

cipolleschi avatar Sep 19 '24 15:09 cipolleschi

Hey @cipolleschi @szymonrybczak, just following up to see if you’ve had a chance to work through the solution you mentioned. Do you have an updated timeline for when this might be completed, or has it already been implemented? Appreciate the update when you can. Thanks in advance!

ShrikantRao avatar Dec 05 '24 08:12 ShrikantRao

Sorry, but no... in the past few months we were uber-focused on the release of the New Architecture and we are now stabilizing it, so no updates on my side.

cipolleschi avatar Dec 09 '24 14:12 cipolleschi

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 Mar 10 '25 03:03 github-actions[bot]