File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed 
Sources/_OpenAPIGeneratorCore Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11# Swift OpenAPI Generator  
22
3- [ ![ ] ( https://img.shields.io/badge/sswg-sandbox-lightgrey .svg )] ( https://www.swift.org/sswg/ ) 
3+ [ ![ ] ( https://img.shields.io/badge/sswg-incubating-yellow .svg )] ( https://www.swift.org/sswg/ ) 
44[ ![ ] ( https://img.shields.io/badge/docc-read_documentation-blue )] ( https://swiftpackageindex.com/apple/swift-openapi-generator/documentation ) 
55[ ![ ] ( https://img.shields.io/github/v/release/apple/swift-openapi-generator )] ( https://github.com/apple/swift-openapi-generator/releases ) 
66[ ![ ] ( https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fapple%2Fswift-openapi-generator%2Fbadge%3Ftype%3Dswift-versions )] ( https://swiftpackageindex.com/apple/swift-openapi-generator ) 
Original file line number Diff line number Diff line change 1414
1515// Emit a compiler error if this library is linked with a target in an adopter
1616// project.
17- //
18- // When compiling  for MacCatalyst, the plugin is (erroneously?) compiled with os(iOS ).
19- #if ! (os(macOS)  || os(Linux ) || ( os(iOS) && targetEnvironment(macCatalyst)) ) 
17+ // This is only done for platforms where the linkage was most likely added 
18+ // erroneously ( for platforms which can't be used as development hosts ).
19+ #if (os(iOS) && !targetEnvironment(macCatalyst))  || os(tvOS ) || os(watchOS) || os(visionOS ) 
2020#error( 
2121    " _OpenAPIGeneratorCore is only to be used by swift-openapi-generator itself—your target should not link this library or the command line tool directly. " 
2222) 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments