title: IOS editor bug. archivedData renamed
body: <p>Please help me! I am stuck in a loop and can't find my way out. I am trying to learn IOS programming for work so I thought I would start with their tutorial app the Meal list application. I am at the part where you are supposed to start saving persistent data and now the editor has me stuck in a never ending loop. I have a line of code...</p>
  
  <pre><code>let isSuccessfulSave = NSKeyedArchiver.archiveRootObject(meals, toFile: Meal.ArchiveURL.path)
  </code></pre>
  
  <p>That gives me a warning that says...</p>
  
  <blockquote>
    <p>'archiveRootObject(_:toFile:)' was deprecated in iOS 12.0: Use
    +archivedDataWithRootObject:requiringSecureCoding:error: instead</p>
  </blockquote>
  
  <p>OK, so I change the line of code to...</p>
  
  <pre><code>let isSuccessfulSave = NSKeyedArchiver.archivedDataWithRootObject(meals)
  </code></pre>
  
  <p>Which then gives me the warning... </p>
  
  <blockquote>
    <p>'archivedDataWithRootObject' has been renamed to
    'archivedData(withRootObject:)'</p>
  </blockquote>
  
  <p>OK, so I change the line of code to...</p>
  
  <pre><code>let isSuccessfulSave = NSKeyedArchiver.archivedData(withRootObject: meals)
  </code></pre>
  
  <p>Which tells me...</p>
  
  <blockquote>
    <p>'archivedData(withRootObject:)' was deprecated in iOS 12.0: Use
    +archivedDataWithRootObject:requiringSecureCoding:error: instead</p>
  </blockquote>
  
  <p>OK... So... archivedData was deprecated and I have to use archivedDataWithRootObject, but using archivedDataWithRootObject has been renamed to archivedData, but archivedData is deprecated so use archivedDataWithRootObject which is renamed to archivedData which is deprecated... ad infinitum.</p>
  
  <p>I have tried looking on the developer docs but they just tell me the same thing, one is deprecated, with no links or anything and searching google just gives me a bunch of pages showing me the syntax of using any of them. I am still really new to IOS programming and have no idea how to get out of this endless loop of deprecated to renamed to deprecated to...</p>
  
  <p>Please help, I am lost and not sure how to continue. Thank you.</p>