@react-native-community/cli-platform-ios
Advanced tools
Comparing version 2.0.0-alpha.9 to 2.0.0-alpha.13
@@ -184,2 +184,10 @@ "use strict"; | ||
async function runOnDevice(selectedDevice, scheme, xcodeProject, args) { | ||
const isIOSDeployInstalled = _child_process().default.spawnSync('ios-deploy', ['--version'], { | ||
encoding: 'utf8' | ||
}); | ||
if (isIOSDeployInstalled.error) { | ||
throw new (_cliTools().CLIError)(`Failed to install the app on the device because we couldn't execute the "ios-deploy" command. Please install it by running "${_chalk().default.bold('npm install -g ios-deploy')}" and try again.`); | ||
} | ||
const appName = await buildProject(xcodeProject, selectedDevice.udid, scheme, args); | ||
@@ -195,6 +203,6 @@ const iosDeployInstallArgs = ['--bundle', getBuildPath(args.configuration, appName, true, scheme), '--id', selectedDevice.udid, '--justlaunch']; | ||
if (iosDeployOutput.error) { | ||
_cliTools().logger.error('** INSTALLATION FAILED **\nMake sure you have ios-deploy installed globally.\n(e.g "npm install -g ios-deploy")'); | ||
} else { | ||
_cliTools().logger.info('** INSTALLATION SUCCEEDED **'); | ||
throw new (_cliTools().CLIError)(`Failed to install the app on the device. We've encountered an error in "ios-deploy" command: ${iosDeployOutput.error.message}`); | ||
} | ||
return _cliTools().logger.success('Installed the app on the device.'); | ||
} | ||
@@ -201,0 +209,0 @@ |
{ | ||
"name": "@react-native-community/cli-platform-ios", | ||
"version": "2.0.0-alpha.9", | ||
"version": "2.0.0-alpha.13", | ||
"main": "build/index.js", | ||
"dependencies": { | ||
"@react-native-community/cli-tools": "^2.0.0-alpha.8", | ||
"@react-native-community/cli-tools": "^2.0.0-alpha.13", | ||
"chalk": "^1.1.1", | ||
@@ -14,3 +14,3 @@ "xcode": "^2.0.0" | ||
], | ||
"gitHead": "e7eeea4a808ff002108f5ef4d7c79a23c334a642" | ||
"gitHead": "827daa4c1687f8d17eb7df46e1a2ec25640c7797" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
94629
2438
2