2016-09-23 4 views
5

AVAssetExportSession funktioniert gut auf dem iPhone 6 und darunter, aber nicht auf dem iPhone 7, iPhone 7 Plus Simulator. Xcode 8.0AVAssetExportSession ist kein iPhone 7 - Plus Simulator

Dieser Code return nil in exportSession, wenn auf iPhone 7 - Plus Simulator ausgeführt wird, aber nicht in iPhone SE, iPhone 6s ... Simulator. Finden Sie den folgenden Code für weitere Informationen.

NSURL *inputURL = [[NSBundle mainBundle] URLForResource: @"example" withExtension:@"m4a"]; 
    AVURLAsset *assetAV = [AVURLAsset URLAssetWithURL:inputURL options:nil]; 
    AVAssetExportSession *exportSession = [[AVAssetExportSession alloc] initWithAsset:assetAV presetName:AVAssetExportPresetAppleM4A]; 
    NSAssert(exportSession != nil, @"AVAssetExportSession must not be nil"); 

Es ist ein Radar oder da ist etwas, das ich vermisse ?.

Beispielprojekt an:

https://github.com/rafaelpereznajera/AVAssetExportSessionRadar

+0

Enthält iPhone 7 Beispieldatei? –

+0

Ja, die Datei wird beendet, funktioniert auf dem iPhone 6. Sie können das Beispielprojekt auf github überprüfen. – rafaperez

+0

Das scheint kaputt zu sein. Obwohl 'AVAssetExportPresetPassthrough' funktioniert ... –

Antwort

0

Es ist ein Fehler.

Es ist in Xcode 8.1 Beta behoben.

Xcode 8.1 beta [AVAssetExportSession allExportPresets] iPhone 7 Simulator jetzt zurück:

AVAssetExportPreset1920x1080, 
AVAssetExportPresetLowQuality, 
AVAssetExportPresetAppleM4A, 
AVAssetExportPreset640x480, 
AVAssetExportPreset3840x2160, 
AVAssetExportPresetHighestQuality, 
AVAssetExportPreset1280x720, 
AVAssetExportPresetMediumQuality, 
AVAssetExportPreset960x540 

Xcode 8.0 [AVAssetExportSession allExportPresets] iPhone 7 Simulator ein leeres Array zurückgibt.

Verwandte Themen