Skip to content

Commit ceb79e3

Browse files
author
Fatme
authored
Merge pull request #3368 from NativeScript/fatme/brew-xcodeproj
feat(doctor): Support xcodeproj from brew
2 parents bcd794e + 6eadc04 commit ceb79e3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/common

lib/services/doctor-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class DoctorService implements IDoctorService {
6464
result = true;
6565
}
6666

67-
if (!sysInfo.xcodeprojGemLocation) {
67+
if (!sysInfo.xcodeprojLocation) {
6868
this.$logger.warn("WARNING: xcodeproj gem is not installed or is not configured properly.");
6969
this.$logger.out("You will not be able to build your projects for iOS." + EOL
7070
+ "To be able to build for iOS and run apps in the native emulator, verify that you have installed xcodeproj." + EOL);

lib/services/ios-project-service.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1046,8 +1046,8 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
10461046
private async executePodInstall(projectData: IProjectData): Promise<any> {
10471047
// Check availability
10481048
try {
1049-
await this.$childProcess.exec("gem which cocoapods");
1050-
await this.$childProcess.exec("gem which xcodeproj");
1049+
await this.$childProcess.exec("which pod");
1050+
await this.$childProcess.exec("which xcodeproj");
10511051
} catch (e) {
10521052
this.$errors.failWithoutHelp("CocoaPods or ruby gem 'xcodeproj' is not installed. Run `sudo gem install cocoapods` and try again.");
10531053
}

0 commit comments

Comments
 (0)