<div>I am usingXcode 7.3.1 Swift 2.2.</div><div><br></div><div>And the link I provided is <font __editorwarp__="1" 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; text-indent: -13px; white-space: pre-wrap;"> #import "ProductModuleName-Swift.h" </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; text-indent: -13px; 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><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: 'Songti SC'; 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"> 15932691211</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">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: 'Songti SC'; LINE-HEIGHT: normal"></span></div></div><div> </div><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> "Zhao Xin";<owenzx@gmail.com>;</div><div><b>发送时间:</b> 2016年7月21日(星期四) 下午5:29</div><div><b>收件人:</b> "孙博弘"<sunbohong@vip.qq.com>; <wbr></div><div><b>抄送:</b> "swift-users"<swift-users@swift.org>; <wbr></div><div><b>主题:</b> Re: [swift-users] How to use non-ASCII identifier string as'swift_name' attribute's parameter?</div></div><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"><<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>></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 'swift_name' 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 style="">
<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" 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=""></span></div></div><div> </div><br>_______________________________________________<br>
swift-users mailing list<br>
<a href="mailto:swift-users@swift.org">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>