GO FURTHER, FASTER: Try the Swift Career Accelerator today! >>

Is anybody here familiar with using Ignite?

Forums > Swift

I'm trying to use Ignite to build a website for the first time. I just installed it, so I'm not very familiar with it at all yet. I followed the instructions in the ReadMe file in the git repository to get it installed, and create a new website project. However, once my website project opens in XCode, I instantly have errors. The first one I notice is if I go to the file MyWebsite/Sources/Themes/Site.swift there is an error on this line static func main() async { which says "Concurrency is only available in iOS 13.0.0 or newer".

I am familiar with how to change the target iOS version in a regular SwiftUI project in Xcode. However, I don't know where to do that in this project that is created from a "Package" I guess. Does anybody know how I can make these errors go away, and start working on my website?

For those who are unfamiliar, Ignite is a website building tool created by Paul Hudson, which you can find here https://github.com/twostraws/Ignite

   

Hi Fly0strich

While Paul has done a video on it Brush and Bark which is on HWS+ so you need to sign up to see it. (think he has a trail period to join).

   

Thanks. I guess I am able to view that article as a preview of HWS+ so that might be helpful. I did find the answer to my question there as well I think. But it turns out, it was also given to me in the command line when I created my website using ignite.

Tip: If you want to build with Xcode, go to the Product menu and choose Destination > My Mac.

I just didn't pay it any mind I guess.

That appears to have gotten rid of all of the errors except one.

var url = URL("https://www.example.com")

Ambiguous use of 'init(_:)'

   

I searched for the word "Ambiguous" on the Ignite Github page, and found this commit

https://github.com/twostraws/Ignite/commit/3762034875f03d48efa2e0c7254fb42d178836f0

So, it looks like this issue can be fixed by changing the line of code above to

var url: URL = URL("https://www.example.com")

Maybe this will help somebody else some day.

1      

Hacking with Swift is sponsored by Essential Developer.

SPONSORED Transform your career with the iOS Lead Essentials. This Black Friday, unlock over 40 hours of expert training, mentorship, and community support to secure your place among the best devs. Click for early access to this limited offer and a free crash course.

Save your spot

Sponsor Hacking with Swift and reach the world's largest Swift community!

Reply to this topic…

You need to create an account or log in to reply.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.