我找到了錯誤的原因。 AVCompositionTrackSegment.h已損壞。出於某種原因,行@property (nonatomic, readonly, getter=isEmpty) BOOL empty;
被替換爲&&
。
編輯
曾爲一次。現在它在同一個文件的空行中給出錯誤「未知類型名稱」'「。該文件沒有錯誤,因爲它已從其他開發人員的計算機中恢復。
從頭文件末尾刪除以下行,現在編譯。所以看起來像Xcode中的錯誤。向蘋果提交了一份錯誤報告。
/* indicates whether the AVCompositionTrackSegment is an empty segment;
an empty segment has a valid target time range but nil sourceURL and kCMTimeInvalid source start time; all other fields are undefined */
@property (nonatomic, readonly, getter=isEmpty) BOOL empty;
/* indicates the container file of the media presented by the AVCompositionTrackSegment */
@property (nonatomic, readonly, nullable) NSURL *sourceURL;
/* indicates the track of the container file of the media presented by the AVCompositionTrackSegment */
@property (nonatomic, readonly) CMPersistentTrackID sourceTrackID;