We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Podfile.lock
1 parent 5abea6e commit b99f2bcCopy full SHA for b99f2bc
packages/cli-platform-apple/src/tools/pods.ts
@@ -67,15 +67,19 @@ export function compareMd5Hashes(hash1?: string, hash2?: string) {
67
async function getChecksum(
68
podfileLockPath: string,
69
): Promise<string | undefined> {
70
- const file = fs.readFileSync(podfileLockPath, 'utf8');
+ try {
71
+ const file = fs.readFileSync(podfileLockPath, 'utf8');
72
- const checksumLine = file
73
- .split('\n')
74
- .find((line) => line.includes('PODFILE CHECKSUM'));
+ const checksumLine = file
+ .split('\n')
75
+ .find((line) => line.includes('PODFILE CHECKSUM'));
76
- if (checksumLine) {
77
- return checksumLine.split(': ')[1];
78
- } else {
+ if (checksumLine) {
+ return checksumLine.split(': ')[1];
79
+ }
80
+
81
+ return undefined;
82
+ } catch {
83
return undefined;
84
}
85
0 commit comments