You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I integrated the stephencelis/SQLite.swift package into my project and re-generated the Xcode project using the subcommand `generate-xcodeproj`. The project builded successfully using the CLI (`swift build`) but not in Xcode. The ObjC target is using the Swift compiler by default but it should use ObjC. We already did some investigation and we found a workaround: stephencelis/SQLite.swift#828
Enable modules is disabled for C targets because of complicated reasons which break the indexing/autocompletion. This is because SwiftPM target model doesn't map 1:1 with Xcode's framework model. In Swift 4.2, we improved this situation for C targets that contain an umbrella header without any non-modular imports (import stuff outside of the target). Your package is compatible with this and the generated project starts working as expected if you rename `SQLite-Bridging.h` to `SQLiteObjc.h`.
Attachment: Download
Environment
Xcode v10.0 beta 6 (10L232m), Swift 4.1
Additional Detail from JIRA
md5: ffadfdaa8ec9484286b99437d3ef0fd7
duplicates:
Issue Description:
I integrated the stephencelis/SQLite.swift package into my project and re-generated the Xcode project using the subcommand `generate-xcodeproj`. The project builded successfully using the CLI (`swift build`) but not in Xcode. The ObjC target is using the Swift compiler by default but it should use ObjC. We already did some investigation and we found a workaround: stephencelis/SQLite.swift#828
Package.swift file: https://github.com/stephencelis/SQLite.swift/blob/f8032b2c2cda38311bda44eef2c5570022fe2f33/Package.swift#L4
The text was updated successfully, but these errors were encountered: