Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return function (finished) {
ioslib.detect({
// env
xcodeSelect: config.get('osx.executables.xcodeSelect'),
security: config.get('osx.executables.security'),
// provisioning
profileDir: config.get('ios.profileDir'),
// xcode
searchPath: config.get('paths.xcode'),
minIosVersion: iosPackageJson.minIosVersion,
supportedVersions: iosPackageJson.vendorDependencies.xcode
}, function (err, iosInfo) {
this.iosInfo = iosInfo;
this.xcodeEnv = this.iosInfo.selectedXcode;
if (!this.xcodeEnv) {
// this should never happen
logger.error(__('Unable to find suitable Xcode install') + '\n');
return function (done) {
ioslib.detect({
// env
xcodeSelect: config.get('osx.executables.xcodeSelect'),
security: config.get('osx.executables.security'),
// provisioning
profileDir: config.get('ios.profileDir'),
// xcode
searchPath: config.get('paths.xcode'),
minIosVersion: iosPackageJson.minIosVersion,
supportedVersions: iosPackageJson.vendorDependencies.xcode
}, function (err, iosInfo) {
this.iosInfo = iosInfo;
// add itunes sync
iosInfo.devices.push({
udid: 'itunes',
name: 'iTunes Sync'
exports.detect = function (types, config, next) {
ioslib.detect({
// env
xcodeSelect: config.get('osx.executables.xcodeSelect'),
security: config.get('osx.executables.security'),
// provisioning
profileDir: config.get('ios.profileDir'),
// xcode
searchPath: config.get('paths.xcode'),
minIosVersion: iosPackageJson.minIosVersion,
minWatchosVersion: iosPackageJson.minWatchosVersion,
supportedVersions: iosPackageJson.vendorDependencies.xcode
}, function (err, results) {
if (err) {
return next(err);
}
results.devices.unshift({