3

I have the code perfect running in Xcode 7.2.1, Swift 2.1, and I just upgraded the new Xcode 7.3, Swift 3.0.

How can I use @asmname() with Swift 3.0.

xcode

JAL
  • 41,701
  • 23
  • 172
  • 300
Boyan Sarac
  • 75
  • 1
  • 8
  • 1
    `@asmname` was removed from Swift 3.0. You can use `@_silgen_name` as its replacement. The rename was done to really drive home the fact that you should not be using either `@asmname` or `@_silgen_name`. – vcsjones Mar 28 '16 at 20:36
  • Thank you for your helping. I found that from google and you. – Boyan Sarac Mar 28 '16 at 20:38
  • Related: [What is '@_silgen_name' in Swift language?](http://stackoverflow.com/questions/35030998/what-is-silgen-name-in-swift-language/) – dfrib Mar 29 '16 at 21:20

1 Answers1

2

As of Swift 2.2 @asmname has been renamed to @_silgen_name.

Related test change in this commit, name change in this file, and the changelog.

JAL
  • 41,701
  • 23
  • 172
  • 300