Skip to content

Commit b4ee5f9

Browse files
committed
fix: update an old Xcode warning as now its applicable for all supported Xcode versions
1 parent fea3c13 commit b4ee5f9

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

lib/services/ios-project-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,7 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
12901290

12911291
if (!teamId) {
12921292
const teams = await this.$iOSProvisionService.getDevelopmentTeams();
1293-
this.$logger.warn("Xcode 8 requires a team id to be specified when building for device.");
1293+
this.$logger.warn("Xcode requires a team id to be specified when building for device.");
12941294
this.$logger.warn("You can specify the team id by setting the DEVELOPMENT_TEAM setting in build.xcconfig file located in App_Resources folder of your app, or by using the --teamId option when calling run, debug or livesync commands.");
12951295
if (teams.length === 1) {
12961296
teamId = teams[0].id;

test/ios-project-service.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function createTestInjector(projectPath: string, projectName: string, xcode?: IX
7171
projectPath: projectPath,
7272
projectFilePath: path.join(projectPath, "package.json"),
7373
projectId: "",
74-
projectIdentifiers: { android: "", ios: ""}
74+
projectIdentifiers: { android: "", ios: "" }
7575
});
7676
testInjector.register("projectData", projectData);
7777
testInjector.register("projectHelper", {});
@@ -505,15 +505,15 @@ describe("Source code in plugin support", () => {
505505
const mockPrepareMethods = ["prepareFrameworks", "prepareStaticLibs", "prepareResources", "prepareNativeSourceCode"];
506506

507507
mockPrepareMethods.filter(m => m !== prepareMethodToCall).forEach(methodName => {
508-
iOSProjectService[methodName] = (pluginPlatformsFolderPath: string, pluginData: IPluginData): Promise<void> => {
508+
iOSProjectService[methodName] = (pluginPlatformsFolderPath: string, pluginData: IPluginData): Promise<void> => {
509509
return Promise.resolve();
510510
};
511511
});
512512

513513
iOSProjectService.getXcodeprojPath = () => {
514514
return path.join(__dirname, "files");
515515
};
516-
let pbxProj : any;
516+
let pbxProj: any;
517517
iOSProjectService.savePbxProj = (project: any): Promise<void> => {
518518
pbxProj = project;
519519
return Promise.resolve();
@@ -544,7 +544,7 @@ describe("Source code in plugin support", () => {
544544

545545
it("adds plugin with Source files", async () => {
546546
const sourceFileNames = [
547-
"src/Header.h", "src/ObjC.m",
547+
"src/Header.h", "src/ObjC.m",
548548
"src/nested/Header.hpp", "src/nested/Source.cpp", "src/nested/ObjCpp.mm",
549549
"src/nested/level2/Header2.hxx", "src/nested/level2/Source2.cxx", "src/nested/level2/Source3.c",
550550
"src/SomeOtherExtension.donotadd",
@@ -949,7 +949,7 @@ describe("Merge Project XCConfig files", () => {
949949

950950
appResourcesXcconfigPath = path.join(projectData.appResourcesDirectoryPath, "iOS", BUILD_XCCONFIG_FILE_NAME);
951951
appResourceXCConfigContent = `CODE_SIGN_IDENTITY = iPhone Distribution
952-
// To build for device with XCode 8 you need to specify your development team. More info: https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html
952+
// To build for device with XCode you need to specify your development team. More info: https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html
953953
// DEVELOPMENT_TEAM = YOUR_TEAM_ID;
954954
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
955955
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;

test/xcconfig-service.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ describe("XCConfig Service Tests", () => {
5858
return `// You can add custom settings here
5959
// for example you can uncomment the following line to force distribution code signing
6060
CODE_SIGN_IDENTITY = iPhone Distribution
61-
// To build for device with XCode 8 you need to specify your development team. More info: https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html
61+
// To build for device with XCode you need to specify your development team. More info: https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html
6262
// DEVELOPMENT_TEAM = YOUR_TEAM_ID;
6363
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
6464
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;`;
@@ -80,7 +80,7 @@ describe("XCConfig Service Tests", () => {
8080
return `// You can add custom settings here
8181
// for example you can uncomment the following line to force distribution code signing
8282
CODE_SIGN_IDENTITY = iPhone Distribution
83-
// To build for device with XCode 8 you need to specify your development team. More info: https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html
83+
// To build for device with XCode you need to specify your development team. More info: https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html
8484
// DEVELOPMENT_TEAM = YOUR_TEAM_ID
8585
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon
8686
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage`;

0 commit comments

Comments
 (0)