title: Xcode error: "expected expression" after upgrade Xcode from 7 to 9
body: <p>I encountered a very strange thing.</p>
  
  <p>The code is ok and well compiled in Xcode 7.</p>
  
  <p>But after I upgrade Xcode from 7 to 9.</p>
  
  <p>The following codes show "expected expression" error</p>
  
  <pre><code>if ([jsonDic objectForKey:@"errMsg"] !=nil 
      &amp;&amp; ![[jsonDic objectForKey:@"errMsg"] isEqualToString:@""]) {
          [self showAlertView:NSLocalizedString(@"AlertMsgErrorTitle", @"") 
              and:[[jsonDic objectForKey:@"errMsg"] stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
  }
  else{
          [self showAlertView:NSLocalizedString(@"AlertMsgErrorTitle", @"") 
              and:[UserSetting getString:@"NSLocalizedDescription"]];
  }
  </code></pre>
  
  <p>It shows "expected expression" with red underline for the "colon" following "and" as following graph.</p>
  
  <p><a href="https://i.stack.imgur.com/q84cw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/q84cw.png" alt="enter image description here"></a></p>
  
  <p>I can't get it, don't know what to fix.</p>
  
  <p>Did the code syntax changed from 7 to 9?</p>
  
  <p>Any idea how to fix it? thanks in advance.</p>