diff --git a/CompanionLib/Utility/FBIDBStorageManager.m b/CompanionLib/Utility/FBIDBStorageManager.m index c933f7535..f825bebb9 100644 --- a/CompanionLib/Utility/FBIDBStorageManager.m +++ b/CompanionLib/Utility/FBIDBStorageManager.m @@ -139,17 +139,17 @@ - (BOOL)checkArchitecture:(FBBundleDescriptor *)bundle error:(NSError **)error NSSet *binaryArchitectures = bundle.binary.architectures; NSArray *targetArchs = self.target.architectures; NSSet *supportedArchitectures = [FBiOSTargetConfiguration baseArchsToCompatibleArch:targetArchs]; - + const BOOL containsExactArch = [binaryArchitectures intersectsSet:supportedArchitectures]; - // arm64 binaries are acceptable on arm64e devices, but arm64e is not yet available + // arm64 binaries are acceptable on arm64e devices const BOOL arm64eEquivalent = [targetArchs containsObject:@"arm64e"] && [binaryArchitectures containsObject:@"arm64"]; - + if (!(containsExactArch || arm64eEquivalent)) { return [[FBIDBError describeFormat:@"The supported architectures of the target %@ do not intersect with any architectures in the bundle: %@", [FBCollectionInformation oneLineDescriptionFromArray:supportedArchitectures.allObjects], [FBCollectionInformation oneLineDescriptionFromArray:binaryArchitectures.allObjects]] failBool:error]; } - + return YES; }