`NSSquareStatusItemLength` cannot be used from Swift
| Originator: | neocool2 | ||
| Number: | rdar://20794656 | Date Originated: | 03-May-2015 10:01 PM |
| Status: | Open | Resolved: | |
| Product: | OS X SDK | Product Version: | 10.10 |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: The constant `NSSquareStatusItemLength` cannot be used from Swift. Steps to Reproduce: Run the following Swift code: ``` #!/usr/bin/xcrun swift import AppKit let i = NSSquareStatusItemLength println(i) ``` Expected Results: It prints “-2.0” on screen, the underlying value of NSSquareStatusItemLength Actual Results: LLVM ERROR: Program used external function '_NSSquareStatusItemLength' which could not be resolved! Regression: This API was usable from ObjC without issues. Notes: Same issue applies for `NSVariableStatusItemLength`
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
I'm having this same issue, except with my own framework which depends on an Objective-C framework. Any ideas?