Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- > react-native run-ios
- Scanning folders for symlinks in /Users/kurtpeek/mobile/applicant-app/node_modules (16ms)
- Found Xcode workspace applicant.xcworkspace
- Could not find iPhone 6 simulator
- > xcrun simctl list --json devices | grep ""iPhone 6"" -B 5 -A 5
- },
- {
- "availability" : "(available)",
- "state" : "Shutdown",
- "isAvailable" : true,
- "name" : "iPhone 6",
- "udid" : "93E4D0AF-C267-406B-B8F5-B3B305BEBBF0",
- "availabilityError" : ""
- },
- {
- "availability" : "(available)",
- function runOnSimulator(xcodeProject, args, scheme) {
- return new Promise((resolve) => {
- try {
- var simulators = JSON.parse(
- child_process.execFileSync('xcrun', ['simctl', 'list', '--json', 'devices'], {encoding: 'utf8'})
- );
- } catch (e) {
- throw new Error('Could not parse the simulator list output');
- }
- const selectedSimulator = findMatchingSimulator(simulators, args.simulator);
- if (!selectedSimulator) {
- throw new Error(`Could not find ${args.simulator} simulator`);
- }
- function findMatchingSimulator(simulators, simulatorName) {
- debugger;
- if (!simulators.devices) {
- return null;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement