Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. > react-native run-ios
  2. Scanning folders for symlinks in /Users/kurtpeek/mobile/applicant-app/node_modules (16ms)
  3. Found Xcode workspace applicant.xcworkspace
  4.  
  5. Could not find iPhone 6 simulator
  6.  
  7. > xcrun simctl list --json devices | grep ""iPhone 6"" -B 5 -A 5
  8. },
  9. {
  10. "availability" : "(available)",
  11. "state" : "Shutdown",
  12. "isAvailable" : true,
  13. "name" : "iPhone 6",
  14. "udid" : "93E4D0AF-C267-406B-B8F5-B3B305BEBBF0",
  15. "availabilityError" : ""
  16. },
  17. {
  18. "availability" : "(available)",
  19.  
  20. function runOnSimulator(xcodeProject, args, scheme) {
  21. return new Promise((resolve) => {
  22. try {
  23. var simulators = JSON.parse(
  24. child_process.execFileSync('xcrun', ['simctl', 'list', '--json', 'devices'], {encoding: 'utf8'})
  25. );
  26. } catch (e) {
  27. throw new Error('Could not parse the simulator list output');
  28. }
  29.  
  30. const selectedSimulator = findMatchingSimulator(simulators, args.simulator);
  31. if (!selectedSimulator) {
  32. throw new Error(`Could not find ${args.simulator} simulator`);
  33. }
  34.  
  35. function findMatchingSimulator(simulators, simulatorName) {
  36. debugger;
  37.  
  38. if (!simulators.devices) {
  39. return null;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement