`currentDirectoryPath` property of `NSTask` has been documented as `Deprecated`, but does not have `API_AVAILABLE` in header

Originator:Norio.Nomura
Number:rdar://34510783 Date Originated:September 19 2017, 3:37 PM
Status:open Resolved:
Product:macOS + SDK Product Version:Xcode 9.0 (9A235)
Classification:other Reproducible:always
 
Area:
Foundation

Summary:
The document https://developer.apple.com/documentation/foundation/process/1413110-currentdirectorypath describes `currentDirectoryPath` is deprecated.
But `NSTask.h` does not have `API_AVAILABLE` on declaration of that.
quoting from NSTask.h:
```objective-c
@interface NSTask (NSDeprecated)

@property (nullable, copy) NSString *launchPath;
@property (copy) NSString *currentDirectoryPath; // if not set, use current

- (void)launch;

+ (NSTask *)launchedTaskWithLaunchPath:(NSString *)path arguments:(NSArray  *)arguments;
// convenience; create and launch

@end
```

The deprecated information exists only on documentation.
On Xcode 9, using them in Swift or Objective-C codes does not produce any deprecation warnings.
Some warnings should be produced.

Version/Build:
Xcode 9.0 (9A235)
Comments
No Comments

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!