Skip to content

Commit 064de9d

Browse files
committed
fix: avoid negation use containsUnsupportedPodfiles
1 parent 4eaea89 commit 064de9d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/cli-platform-apple/src/config/findPodfilePath.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ export default function findPodfilePath(
5252
.sort((project) => (path.dirname(project) === platformName ? -1 : 1));
5353

5454
const supportedPlatformsArray: string[] = Object.values(supportedPlatforms);
55-
const containsOnlySupportedPodfiles = podfiles.every((podfile) =>
56-
supportedPlatformsArray.includes(podfile.split('/')[0]),
55+
const containsUnsupportedPodfiles = podfiles.every(
56+
(podfile) => !supportedPlatformsArray.includes(podfile.split('/')[0]),
5757
);
5858

5959
if (podfiles.length > 0) {
60-
if (podfiles.length > 1 && !containsOnlySupportedPodfiles) {
60+
if (podfiles.length > 1 && containsUnsupportedPodfiles) {
6161
logger.warn(
6262
inlineString(`
6363
Multiple Podfiles were found: ${podfiles}. Choosing ${podfiles[0]} automatically.

0 commit comments

Comments
 (0)