4

When I instantiate an AVAssetExportSession object in new simulators instance with either of the 2 methods:

AVAsset *videoAsset = [AVAsset assetWithURL:videoURL];
AVAssetExportSession *exporter =  [AVAssetExportSession exportSessionWithAsset:asset presetName:AVAssetExportPresetHighestQuality];

or

AVAssetExportSession *exporter = [[AVAssetExportSession alloc] initWithAsset:asset presetName:AVAssetExportPresetHighestQuality];

and, run the app on one of the 3 new simulators: iPhone XR, iPhone XS, and iPhone XS MAX, I got exporter = nil, whereas on all other simulators I got a normal non null exporter object.

I also noticed that ONLY when I set the presetName parameter to be AVAssetExportPresetPassthrough, the exporter is not nil. Any other presetName will make the initialization to fail.

Anyone has encountered the similar problems?

4

1 回答 1

0

显然这是一个苹果错误... https://bugreport.apple.com/web/?problemID=44701489 将在原始错误关闭后报告。

编辑:Apple 在 iOS 10.1 SDK 中已修复此问题。您只需将 xcode 更新到 10.1。

于 2018-09-25T23:39:19.963 回答