AVAssetExportSession
works fine on iPhone 6 and below but not on iPhone 7, iPhone 7 Plus simulator. Xcode 8.0
This code return nil
in exportSession, when is executed on iPhone 7 - Plus Simulator, but not in iPhone SE, iPhone 6s ... Simulator. Please find the below code for more information.
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");
It's a radar or there is something that I'm missing?.
Sample project at:
https://github.com/rafaelpereznajera/AVAssetExportSessionRadar
Xcode 8.1 beta [AVAssetExportSession allExportPresets] iPhone 7 Simulator now returns:
Xcode 8.0 [AVAssetExportSession allExportPresets] iPhone 7 Simulator returns an empty array.