<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:2E07F900@C679AA5D.52929057"></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="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"> <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:'Songti SC';LINE-HEIGHT:normal"></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>