react-native-schemes-manager icon indicating copy to clipboard operation
react-native-schemes-manager copied to clipboard

hide-library-schemes has no effect

Open mlostekk opened this issue 5 years ago • 10 comments

Environment Xcode 10.1 Node v8.15.0 (via NVM 0.33.5) macOS Mojave 10.14.2 (18C54)

Steps to reproduce the behavior

run react-native-schemes-manager hide-library-schemes see output

Expected behavior

run react-native-schemes-manager hide-library-schemes see less library schemes

Actual behavior

bildschirmfoto 2019-02-08 um 11 27 46

mlostekk avatar Feb 08 '19 10:02 mlostekk

If you watch the changes to the project files, they should still be made. Usually XCode won't actually update visually until you close it and re-open it.

So try these steps and let me know if it solves your problem:

  1. Completely quit XCode
  2. Run the all command
  3. Open the project in XCode again

If that doesn't help, please provide the terminal output of running the all command so I can have a crack at seeing what's going on.

thekevinbrown avatar Feb 15 '19 05:02 thekevinbrown

I'll go ahead and assume this resolved the issue for you. If not, please let me know, happy to help!

thekevinbrown avatar Feb 27 '19 05:02 thekevinbrown

Well, it does not have any effect on my side. Tried everything from deleting derivedata folders, to clearing caches, to full git clone of the project. I will try to reproduce it on a small / fresh project and post the link to the repo

mlostekk avatar Feb 27 '19 09:02 mlostekk

Same here. No effect. Closed Xcode before runnnig. RN 59.10 XCode Version 10.2 (10E125)

kg-currenxie avatar Aug 01 '19 07:08 kg-currenxie

@kg-currenxie or @mlostekk are either of you able to provide a reproduction case? I can't replicate this.

thekevinbrown avatar Aug 01 '19 07:08 thekevinbrown

I'll try this weekend :)

kg-currenxie avatar Aug 01 '19 07:08 kg-currenxie

@kg-currenxie I'd be curious to hear about your findings, because I'm seeing the same issue – the command has no effect whatsoever for me.

richeterre avatar Aug 02 '19 19:08 richeterre

Here's my test repo: https://github.com/kg-currenxie/schemas-test-react-native

  1. yarn
  2. react-native-link
  3. Check XCode, all schemas visible
  4. yarn run fix-code (runs react-native-schemes-manager hide-library-schemes)
  5. Schemas still visible

Note; I'm using custom schemas, and not a default RN-project one (Debug). Screenshot 2019-08-04 at 00 24 30

kg-currenxie avatar Aug 03 '19 16:08 kg-currenxie

Do the schemes you want to change end in .xcscheme_^#shared#^_?

marcferna avatar Aug 12 '19 22:08 marcferna

The project got on-hold, and recently picked up. Now using RN 0.61.x (Still XCode 10.2) and suddenly it works fine. Not sure why 🤷‍♂ but the it's not an issue for me anymore :)

kg-currenxie avatar Jan 09 '20 02:01 kg-currenxie