Xcode-beta (7A120f): sqlite3 Library Broken
| Originator: | kwells2 | ||
| Number: | rdar://21465025 | Date Originated: | 19-Jun-2015 12:07 PM |
| Status: | Resolved | Resolved: | 21-Jul-2015 10:35 AM |
| Product: | Developer Tools | Product Version: | Xcode-beta (7A120f) |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: SQLite functions are no longer accessible in Swift 2. This breaks several open source libraries for manual SQLite manipulation. Steps to Reproduce: 1. Create new project in the Xcode 7 Public Beta 1 (7A120f). 2. Link Binary With Libraries > libsqlite3.tbd (or libsqlite3.0.tbd). 3. Create Bridging Header. 4. #import “sqlite3.h” 5. Add line with sqlite function, e.g. sqlite3_open() 6. Attempt to build project. Expected Results: Projects builds without issue, correctly linking sqlite3 library. Actual Results: Building project fails wit the message : ‘Undefined symbols for architecture x86_64: "_sqlite3_open”’. The compiler also complains that libsqlite3.tbd is a text file. Regression: These functions are working correctly in Swift 1.2 with Xcode 6.3.2 (6D2105).
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!