@react-native-community/cli-platform-ios
Advanced tools
Comparing version 2.0.2 to 2.1.0
@@ -89,3 +89,3 @@ "use strict"; | ||
_cliTools().logger.info(`Found Xcode ${xcodeProject.isWorkspace ? 'workspace' : 'project'} ${xcodeProject.name}`); | ||
_cliTools().logger.info(`Found Xcode ${xcodeProject.isWorkspace ? 'workspace' : 'project'} "${_chalk().default.bold(xcodeProject.name)}"`); | ||
@@ -169,3 +169,3 @@ const { | ||
_cliTools().logger.info(`Installing ${appPath}`); | ||
_cliTools().logger.info(`Installing "${_chalk().default.bold(appPath)}"`); | ||
@@ -181,7 +181,11 @@ _child_process().default.spawnSync('xcrun', ['simctl', 'install', selectedSimulator.udid, appPath], { | ||
_cliTools().logger.info(`Launching ${bundleID}`); | ||
_cliTools().logger.info(`Launching "${_chalk().default.bold(bundleID)}"`); | ||
_child_process().default.spawnSync('xcrun', ['simctl', 'launch', selectedSimulator.udid, bundleID], { | ||
stdio: 'inherit' | ||
}); | ||
const result = _child_process().default.spawnSync('xcrun', ['simctl', 'launch', selectedSimulator.udid, bundleID]); | ||
if (result.status === 0) { | ||
_cliTools().logger.success('Successfully launched the app on the simulator'); | ||
} else { | ||
_cliTools().logger.error('Failed to launch the app on simulator', result.stderr); | ||
} | ||
} | ||
@@ -201,3 +205,3 @@ | ||
_cliTools().logger.info(`Installing and launching your app on ${selectedDevice.name}...`); | ||
_cliTools().logger.info(`Installing and launching your app on ${selectedDevice.name}`); | ||
@@ -219,3 +223,3 @@ const iosDeployOutput = _child_process().default.spawnSync('ios-deploy', iosDeployInstallArgs, { | ||
_cliTools().logger.info(`Building using "xcodebuild ${xcodebuildArgs.join(' ')}"`); | ||
_cliTools().logger.info(`Building ${_chalk().default.dim(`(using "xcodebuild ${xcodebuildArgs.join(' ')}")`)}`); | ||
@@ -235,3 +239,4 @@ let xcpretty; | ||
buildProcess.stdout.on('data', data => { | ||
buildOutput += data.toString(); | ||
const stringData = data.toString(); | ||
buildOutput += stringData; | ||
@@ -241,3 +246,7 @@ if (xcpretty) { | ||
} else { | ||
_cliTools().logger.info(data.toString()); | ||
if (_cliTools().logger.isVerbose()) { | ||
_cliTools().logger.debug(stringData); | ||
} else { | ||
process.stdout.write('.'); | ||
} | ||
} | ||
@@ -251,2 +260,4 @@ }); | ||
xcpretty.stdin.end(); | ||
} else { | ||
process.stdout.write('\n'); | ||
} | ||
@@ -261,3 +272,3 @@ | ||
${xcodeProject.name}. | ||
`, errorOutput)); | ||
`, buildOutput + '\n' + errorOutput)); | ||
return; | ||
@@ -274,3 +285,3 @@ } | ||
_cliTools().logger.info(`Launching ${simulatorFullName}...`); | ||
_cliTools().logger.info(`Launching ${simulatorFullName}`); | ||
@@ -277,0 +288,0 @@ try { |
{ | ||
"name": "@react-native-community/cli-platform-ios", | ||
"version": "2.0.2", | ||
"version": "2.1.0", | ||
"main": "build/index.js", | ||
@@ -14,3 +14,3 @@ "dependencies": { | ||
], | ||
"gitHead": "0758bd49a042b71552be71523af3215cd4024e4d" | ||
"gitHead": "34d6f70408505d22877ae721949f614ce077d544" | ||
} |
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
99239
2525