-
Notifications
You must be signed in to change notification settings - Fork 24.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[cli] react-native run-ios --scheme XXX
work incorrectly
#10102
Comments
Also want to know the correct way to use |
I am having the same issue. It is because the CLI is coded incorrectly. While the scheme that you pass will be built, it will not actually push the equivalent scheme to the simulator/device. The problem is on line 91 of the CLI
Two problems with this:
You can still build different schemes with a React-Native project through Xcode though. |
Just to let everyone know, this appears to be fixed in |
What's the status of this bug? It's May 19th 2017 at v0.44 and this is still happening. FWIW, react-native link also only cares about the main scheme, and not other schemes. |
@bmcmillan is this true? that's a really serious problem, if possible, would you mind telling me what workaround are you using for that? Schemes are absolutely necessary... |
@eddnav yes, absolutely true. The workaround is to do all of it manually. I have 4 other schemes, so that's a PITA. |
Ran into this issue today when starting up a new project with the latest version of React Native (0.45.1). I had previously been using 0.41.2 and had a separate MyAppDev scheme that was duplicated from the default MyApp scheme and had some minor changes, and everything was all working fine. Now with 0.45.1, when I try to run in a simulator using
I believe the reason it's failing is it mistakenly thinks it should be using |
@jordanmkoncz I got exactly the same problem, working with schemes seems not to work in this update. building via Xcode GUI does not work either for me. |
Was there any solution to this? Running react-native run-ios --scheme xxx did not seem to work for me. |
@jordanmkoncz @hdchan I ran across the same issue today and it looks like it had been fixed: 242d29d Upgrading to v0.46 should fix it. |
@jkimbo did it work for you? That PR only mentions the "--configuration" flag, but maybe it also affects "--scheme" (?) |
@southerneer yep it worked for scheme too. I have a |
Duplicate of #14447 |
Duplicate of #14423 |
I have two targets/schemes in the iOS project: one is for production; the other one is for staging.
I tried to run
react-native run-ios
with different scheme params for--scheme
, but it always launch the production target even choosingstaging
scheme.The
xcodebuild
works correctly:but after build succeeded, the install wrong app and launch wrong
App ID
.The text was updated successfully, but these errors were encountered: