title: Unrecognized platform name iOS in Lotti
body: <p>I have been building my project completely fine over the last two days and then I opened the project this morning and tried to build it and got the error</p>
  
  <p><code>Unrecognized platform name iOS</code> with the following code.</p>
  
  <pre><code>  if (@available(iOS 9.0, *)) {
    if ([UIView userInterfaceLayoutDirectionForSemanticContentAttribute:self.semanticContentAttribute] == UIUserInterfaceLayoutDirectionRightToLeft) {
        diff = diff * -1;
    }
  }
  </code></pre>
  
  <p>The error is coming from a project in my pods: <a href="https://github.com/airbnb/lottie-ios" rel="nofollow noreferrer">https://github.com/airbnb/lottie-ios</a> </p>