[swift-users] How to use non-ASCII identifier string as 'swift_name' attribute's parameter?

孙博弘 sunbohong at vip.qq.com
Thu Jul 21 04:13:54 CDT 2016


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?




	@objc(Order)

	public enum 顺序: Int {

		@objc(Start)

		case 开头

	

		@objc(End)

		case 结尾

	}







And the demo which is come from 

https://developer.apple.com/library/mac/documentation/Swift/Conceptual/BuildingCocoaApps/InteractingWithObjective-CAPIs.html will show the same error.




	@objc(Color)

	enum Цвет: Int {

	    @objc(Red)

	    case Красный

	    

	    @objc(Black)

	    case Черный

	}







------------------
---------------------------------------------
 孙博弘 
  
 TEL :      15932691211
 MAIL:    sunbohong at gmail.com
 ---------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160721/b0d29513/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2E07F900 at C679AA5D.52929057
Type: application/octet-stream
Size: 106282 bytes
Desc: not available
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160721/b0d29513/attachment.obj>


More information about the swift-users mailing list