thecatalinstan / Criollo

A powerful Cocoa web framework and HTTP server for macOS, iOS and tvOS.
https://criollo.io/
MIT License
290 stars 51 forks source link

SPM fails with error: could not build Objective-C module 'Criollo' #89

Closed philipphofmann closed 2 years ago

philipphofmann commented 2 years ago

Steps to reproduce:

  1. Create empty swift project
  2. Add Criollo to Package.swift .package(name:"Criollo", url: "https://github.com/thecatalinstan/Criollo", .branch("master"))
  3. Add import Criollo to main.swift
  4. Call swift build

The build fails with

error: could not build Objective-C module 'Criollo'

I expect the build to succeed. Also, the latest release 1.0.1 doesn't include the Package.swift file so SPM needs to point to master which is not optimal. It would be awesome to do a release for the SPM support.

thecatalinstan commented 2 years ago

Hi @philipphofmann,

It should work now. Let me know if it doesn't.

I expect the build to succeed. Also, the latest release 1.0.1 doesn't include the Package.swift file so SPM needs to point to master which is not optimal. It would be awesome to do a release for the SPM support.

I'll make a new release after #90 is done.

Best, Catalin

philipphofmann commented 2 years ago

Yes, it works now for me. Thanks @thecatalinstan for the quick fix 👏