<div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif">I got the same results as yours with Xcode 7.3.1. However, in Xcode 8 beta3, the errors become yellow alerts, which can pass the building. You should file a bug on this.</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">Zhaoxin</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 21, 2016 at 5:54 PM, 孙博弘 <span dir="ltr">&lt;<a href="mailto:sunbohong@vip.qq.com" target="_blank">sunbohong@vip.qq.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>I am usingXcode 7.3.1 Swift 2.2.</div><div><br></div><div>And the link I provided is <font style="display:inline;font-size:14px;font-family:Verdana;color:rgb(0,0,0);font-weight:normal;font-style:normal;background-color:rgba(0,0,0,0)">《Using Swift with Cocoa and Objective-C (Swift 2.2)》.</font></div><div><br></div><div><span style="line-height:1.5">When i add</span><span style="line-height:1.5"> </span><span style="color:rgb(100,56,32);font-family:Menlo,monospace;font-size:12px;line-height:22.4px;white-space:pre-wrap"> #import &quot;ProductModuleName-Swift.h&quot; </span><span style="color:rgb(65,65,65);font-family:Helvetica,Arial,sans-serif;line-height:20.3px">to</span><span style="color:rgb(100,56,32);font-family:Menlo,monospace;font-size:12px;line-height:22.4px;white-space:pre-wrap"> </span><span style="color:rgb(65,65,65);font-family:Helvetica,Arial,sans-serif;line-height:20.3px">Objective-C</span><span style="color:rgb(65,65,65);font-family:Helvetica,Arial,sans-serif;line-height:20.3px">  file.The error will appear.</span></div><span class=""><div><br></div><div><br></div><div><div style="color:#909090;font-family:Arial Narrow;font-size:12px">------------------</div><div style="font-size:14px;font-family:Verdana;color:#000"><div><font color="#004080" size="2" face="Simsun,serif"><span lang="en-US" style="FONT-SIZE:10pt">---------------------------------------------</span></font></div><span style="FONT-SIZE:18px;FONT-FAMILY:&#39;Songti SC&#39;;LINE-HEIGHT:normal">
<div style="MARGIN-BOTTOM:0px;MARGIN-TOP:0px"><font color="#004080" size="2" face="Arial,sans-serif"><span lang="en-US" style="FONT-SIZE:10pt"><b>孙博弘<font face="Simsun,serif"> </font></b></span></font></div>
<div style="MARGIN-BOTTOM:0px;MARGIN-TOP:0px"><font color="#004080" size="2" face="宋体"><span lang="en-US" style="FONT-SIZE:10pt"><strong></strong></span></font> </div>
<div style="MARGIN-BOTTOM:0px;MARGIN-TOP:0px"><font color="#004080" size="2" face="Arial,sans-serif"><span lang="en-US" style="FONT-SIZE:10pt"><b><font face="Arial,sans-serif">TEL :</font><font face="Arial,sans-serif">      <a href="tel:15932691211" value="+8615932691211" target="_blank">15932691211</a></font></b></span></font></div>
<div style="MARGIN-BOTTOM:0px;MARGIN-TOP:0px"><font color="#004080" size="2" face="Arial,sans-serif"><span lang="en-US" style="FONT-SIZE:10pt"><b><font face="Arial,sans-serif">MAIL:</font><font face="Arial,sans-serif">    <a href="mailto:sunbohong@gmail.com" target="_blank">sunbohong@gmail.com</a></font></b></span></font></div>
<div style="MARGIN-BOTTOM:0px;MARGIN-TOP:0px"><font color="#004080" size="2"><span lang="en-US" style="FONT-SIZE:10pt">---------------------------------------------</span></font></div></span><span style="FONT-SIZE:medium;FONT-FAMILY:&#39;Songti SC&#39;;LINE-HEIGHT:normal"></span></div></div><div> </div></span><div><div><br></div><div><br></div><div style="font-size:12px;font-family:Arial Narrow;padding:2px 0 2px 0">------------------ 原始邮件 ------------------</div><div style="font-size:12px;background:#efefef;padding:8px"><div><b>发件人:</b> &quot;Zhao Xin&quot;;&lt;<a href="mailto:owenzx@gmail.com" target="_blank">owenzx@gmail.com</a>&gt;;</div><div><b>发送时间:</b> 2016年7月21日(星期四) 下午5:29</div><div><b>收件人:</b> &quot;孙博弘&quot;&lt;<a href="mailto:sunbohong@vip.qq.com" target="_blank">sunbohong@vip.qq.com</a>&gt;; </div><div><b>抄送:</b> &quot;swift-users&quot;&lt;<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>&gt;; </div><div><b>主题:</b> Re: [swift-users] How to use non-ASCII identifier string as&#39;swift_name&#39; attribute&#39;s parameter?</div></div><div><div class="h5"><div><br></div><div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif">I just created a new Swift 3.0 Cocoa project in Xcode 8 beta3. Put the code in ViewController.swift, and created a new Objective-C file and let Xcode create the bridge file. Then I ran the project, everything worked fine.</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">Can you create a sample project and shared it?</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">Zhaoxin</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 21, 2016 at 5:13 PM, 孙博弘 via swift-users <span dir="ltr">&lt;<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>







<p>When i use follow enumeration in a mixed-language app.Xcode will show me there is a error ```Parameter of &#39;swift_name&#39; attribute must be an ASCII identifier string```.So can we add support for it?</p><p><br></p><p><span style="white-space:pre-wrap">        </span>@objc(Order)</p><p><span style="white-space:pre-wrap">        </span>public enum 顺序: Int {</p><p><span style="white-space:pre-wrap">                </span>@objc(Start)</p><p><span style="white-space:pre-wrap">                </span>case 开头</p><p><span style="white-space:pre-wrap">        </span></p><p><span style="white-space:pre-wrap">                </span>@objc(End)</p><p><span style="white-space:pre-wrap">                </span>case 结尾</p><p><span style="white-space:pre-wrap">        </span>}</p><p><br></p><p><br></p><p>And the demo which is come from </p><p><a href="https://developer.apple.com/library/mac/documentation/Swift/Conceptual/BuildingCocoaApps/InteractingWithObjective-CAPIs.html" target="_blank">https://developer.apple.com/library/mac/documentation/Swift/Conceptual/BuildingCocoaApps/InteractingWithObjective-CAPIs.html</a> will show the same error.</p><p><br></p><p><span style="white-space:pre-wrap">        </span>@objc(Color)</p><p><span style="white-space:pre-wrap">        </span>enum Цвет: Int {</p><p><span style="white-space:pre-wrap">        </span>    @objc(Red)</p><p><span style="white-space:pre-wrap">        </span>    case Красный</p><p><span style="white-space:pre-wrap">        </span>    </p><p><span style="white-space:pre-wrap">        </span>    @objc(Black)</p><p><span style="white-space:pre-wrap">        </span>    case Черный</p><p><span style="white-space:pre-wrap">        </span>}</p><p></p><p><img src="cid:9247171B@593E275C.C19B9057"></p></div><div><br></div><div><div style="color:#909090;font-family:Arial Narrow;font-size:12px">------------------</div><div style="font-size:14px;font-family:Verdana;color:#000"><div><font color="#004080" size="2" face="Simsun,serif"><span lang="en-US" style="FONT-SIZE:10pt">---------------------------------------------</span></font></div><span>
<div style="MARGIN-BOTTOM:0px;MARGIN-TOP:0px"><font color="#004080" size="2" face="Arial,sans-serif"><span lang="en-US" style="FONT-SIZE:10pt"><b>孙博弘<font face="Simsun,serif"> </font></b></span></font></div>
<div style="MARGIN-BOTTOM:0px;MARGIN-TOP:0px"><font color="#004080" size="2" face="宋体"><span lang="en-US" style="FONT-SIZE:10pt"><strong></strong></span></font> </div>
<div style="MARGIN-BOTTOM:0px;MARGIN-TOP:0px"><font color="#004080" size="2" face="Arial,sans-serif"><span lang="en-US" style="FONT-SIZE:10pt"><b><font face="Arial,sans-serif">TEL :</font><font face="Arial,sans-serif">      <a value="+8615932691211">15932691211</a></font></b></span></font></div>
<div style="MARGIN-BOTTOM:0px;MARGIN-TOP:0px"><font color="#004080" size="2" face="Arial,sans-serif"><span lang="en-US" style="FONT-SIZE:10pt"><b><font face="Arial,sans-serif">MAIL:</font><font face="Arial,sans-serif">    <a href="mailto:sunbohong@gmail.com" target="_blank">sunbohong@gmail.com</a></font></b></span></font></div>
<div style="MARGIN-BOTTOM:0px;MARGIN-TOP:0px"><font color="#004080" size="2"><span lang="en-US" style="FONT-SIZE:10pt">---------------------------------------------</span></font></div></span><span></span></div></div><div> </div><br>_______________________________________________<br>
swift-users mailing list<br>
<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-users" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-users</a><br>
<br></blockquote></div><br></div></div></div></div></blockquote></div><br></div>