Impossible to #import AVFoundation.framework from Objective-C in Xcode 9b5 9M202q

Originator:mark
Number:rdar://33760222 Date Originated:2017-08-07
Status:Closed Resolved:2017-08-22
Product:macOS + SDK Product Version:Xcode 9b5 (9M202q)
Classification:Serious Bug Reproducible:Always
 
Area:
Xcode

Summary:
It’s impossible to compile any Objective-C code that uses AVFoundation.framework by #importing <AVFoundation/AVFoundation.h>.

<AVFoundation/AVFoundation.h> #imports <AVFoundation/AVRouteDetector.h>, but this file is not present in the SDK. It was introduced in Xcode 9 beta 2 (9M137d), and present in betas 3 (9M174d) and 4 (9M189t), but is gone in beta 5 (9M202q).

Steps to Reproduce:
% cat t.m
#import <AVFoundation/AVFoundation.h>
% clang -c t.m -o t.o
In file included from t.m:1:
/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.h:88:9: fatal error: 
      'AVFoundation/AVRouteDetector.h' file not found
#import <AVFoundation/AVRouteDetector.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Expected Results:
% clang -c t.m -o t.o

should remain silent and produce the object file t.o.

Observed Results:
% clang -c t.m -o t.o
In file included from t.m:1:
/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.h:88:9: fatal error: 
      'AVFoundation/AVRouteDetector.h' file not found
#import <AVFoundation/AVRouteDetector.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Version:
macOS 10.12db5 17A330h
Xcode 9b5 9M202q

Comments

2017-08-22 16:12 UTC to Apple

This issue has been verified by the developer as resolved.

2017-08-22 16:12 UTC to Apple

Fixed in Xcode 9b6 9M214v.


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!