FileManager replaceItemAt() always fails with EXC_BAD_ACCESS

Originator:kraemea
Number:rdar://28755011 Date Originated:13-Oct-2016 05:35 PM
Status:Open Resolved:
Product:iOS SDK Product Version:10
Classification:Bug Reproducible:Yes
 
Summary:
Calling the function replaceItemAt() from FileManager yields always to an EXC_BAD_ACCESS. 
Here is a link to an existing StackOverflow post:
http://stackoverflow.com/questions/39930482/filemanager-replaceitemat-results-in-exc-bad-access/39986213#39986213

I've attached a playground file which shows the error.

Steps to Reproduce:
Just call replaceItemAt() from an FileManager object.

Expected Results:
No EXC_BAD_ACCESS error ;-)

Actual Results:
Always EXC_BAD_ACCESS

Version:
Deplyoment target: iOS 10

Notes:


Configuration:
Simulator

Attachments:
'MyPlayground.playground.zip' was successfully uploaded.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!