iPhone (iOS): copying files from main bundle to documents folder causes crash

后端 未结 6 1829
日久生厌
日久生厌 2020-12-10 03:46

I am trying to set up my application so that on first launch, a series of files located in the \"Populator\" folder in the main bundle are copied into the documents director

6条回答
  •  心在旅途
    2020-12-10 03:57

    I don't know a lot about iPhone programming or objective C, but out of curiosity, what is error in that case if the copy operation actually succeeded? Could it be the log lines that are crashing if there was no error?

    [edit] Also, are you allowed to copy the entire contents of a subdirectory like that? (Again, I'm unfamiliar with the iOS API, just identifying possible sources of error based on what I know of other languages/APIs)

提交回复
热议问题