You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 609a642
Browse filesBrowse the repository at this point in the historyBrowse files
'error: The Xcode project links Foo.framework (a), but the autolinking plugin that provides Foo gives it a different id. Run `npx react-native spm update` to relink Foo in the committed project for the whole team.',
302
+
'error: The Xcode project links Bar.framework (b), but the autolinking plugin that provides Bar gives it a different id. Run `npx react-native spm update` to relink Bar in the committed project for the whole team.',
303
+
]);
304
+
});
305
+
306
+
it('fails once when a plugin changes the id of a linked framework',()=>{
'error: The Xcode project links Foo.framework (a), but the autolinking plugin that provides Foo gives it a different id. Run `npx react-native spm update` to relink Foo in the committed project for the whole team.',
313
+
]);
314
+
});
315
+
316
+
it('reports a new framework and swapped ids once each',()=>{
'error: Baz (c) is a precompiled framework from an autolinking plugin, but the Xcode project does not link it. Run `npx react-native spm update` to add Baz to the committed project for the whole team.',
331
+
'error: The Xcode project links Foo.framework (a), but the autolinking plugin that provides Foo gives it a different id. Run `npx react-native spm update` to relink Foo in the committed project for the whole team.',
332
+
'error: The Xcode project links Bar.framework (b), but the autolinking plugin that provides Bar gives it a different id. Run `npx react-native spm update` to relink Bar in the committed project for the whole team.',
333
+
]);
334
+
});
284
335
});
285
336
286
337
describe('assertPluginFrameworksLinked, linked frameworks from the project, for an older marker',()=>{
338
+
it('compares setting prefixes and names separately',()=>{
`error: ${frameworkName} (${id}) is a precompiled framework from an autolinking plugin, but the Xcode project does not link it. Run \`npx react-native spm update\` to add ${frameworkName} to the committed project for the whole team.`,
2404
2418
);
@@ -2418,6 +2432,17 @@ function assertPluginFrameworksLinked(
2418
2432
);
2419
2433
}
2420
2434
}
2435
+
for(constframeworkoflinked.pluginFrameworks??[]){
2436
+
const{id, frameworkName}=framework;
2437
+
if(
2438
+
pairedNames.has(frameworkName)&&
2439
+
!pairedPairs.has(pairKey(framework))
2440
+
){
2441
+
problems.push(
2442
+
`error: The Xcode project links ${frameworkName}.framework (${id}), but the autolinking plugin that provides ${frameworkName} gives it a different id. Run \`npx react-native spm update\` to relink ${frameworkName} in the committed project for the whole team.`,
0 commit comments