小编raf*_*rez的帖子

AVAssetExportSession是零iPhone 7 - Plus模拟器

AVAssetExportSession适用于iPhone 6及以下版本,但iPhone 7,iPhone 7 Plus模拟器无法正常工作.Xcode 8.0

这个代码return nil在exportSession中,在iPhone 7 - Plus Simulator上执行,但不在iPhone SE,iPhone 6s ...模拟器中执行.请查看以下代码以获取更多信息.

    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");
Run Code Online (Sandbox Code Playgroud)

这是一个雷达还是有一些我不知道的东西?

示例项目:

https://github.com/rafaelpereznajera/AVAssetExportSessionRadar

objective-c avfoundation ios ios-simulator

6
推荐指数
1
解决办法
602
查看次数

标签 统计

avfoundation ×1

ios ×1

ios-simulator ×1

objective-c ×1