diff --git a/Source/Tools/ServiceGenerator/SGGenerator.m b/Source/Tools/ServiceGenerator/SGGenerator.m index 36283dc1e..2a8963469 100644 --- a/Source/Tools/ServiceGenerator/SGGenerator.m +++ b/Source/Tools/ServiceGenerator/SGGenerator.m @@ -342,8 +342,8 @@ - (instancetype)initWithApi:(GTLRDiscovery_RestDescription *)api importPrefix:(NSString *)importPrefix { self = [super init]; if (self != nil) { - NSAssert(((options & kSGGeneratorOptionImportPrefixIsFramework) != 0) && - ((options & kSGGeneratorOptionImportPrefixIsModular) != 0), + NSAssert(!(((options & kSGGeneratorOptionImportPrefixIsFramework) != 0) && + ((options & kSGGeneratorOptionImportPrefixIsModular) != 0)), @"Internal error, can't set both."); _api = api; _options = options;