anchor.diff:    }
   }
   
  -Future<void> _checkFrameworkArchs(String frameworkPath, String mode) async {
  +Future<void> _checkFrameworkArchs(String frameworkPath, bool shouldContainSimulator) async {
     checkFileExists(frameworkPath);
   
     final String archs = await fileType(frameworkPath);
     if (!archs.contains('armv7')) {
  -    throw TaskResult.failure('$mode $frameworkPath armv7 architecture missing');
  +    throw TaskResult.failure('$frameworkPath armv7 architecture missing');
     }
   
     if (!archs.contains('arm64')) {
  -    throw TaskResult.failure('$mode $frameworkPath arm64 architecture missing');
  +    throw TaskResult.failure('$frameworkPath arm64 architecture missing');
     }
     final bool containsSimulator = archs.contains('x86_64');
  -  final bool isDebug = mode == 'Debug';
   
     // Debug should contain the simulator archs.
     // Release and Profile should not.
  -  if (containsSimulator != isDebug) {
  -    throw TaskResult.failure('$mode $frameworkPath x86_64 architecture ${isDebug ? 'missing' : 'present'}');
  +  if (containsSimulator != shouldContainSimulator) {
  +    throw TaskResult.failure(
  +        '$frameworkPath x86_64 architecture ${shouldContainSimulator ? 'missing' : 'present'}');
     }
   }
   
  
positive.code:       'device_info.framework',
        'device_info',
      );
      await _checkFrameworkArchs(pluginFrameworkPath, mode);
      await _checkBitcode(pluginFrameworkPath, mode);
  
      checkFileExists(path.join(
  
negative.code:       'Flutter',
      );
  
      await _checkFrameworkArchs(engineFrameworkPath, mode == 'Debug');
      await _checkBitcode(engineFrameworkPath, mode);
  
      checkFileExists(path.join(
  