WWDC22 SALE: Save 50% on all my Swift books and bundles! >>

Some packages don’t load in Swift Playgrounds 4

Forums > Swift

Hi All

I am prototyping a new App in Swift Playgrounds 4.

Sometimes when I attempt to add a new package to the project, Swift Playgrounds just will not load it. You see a brief message "Fetching Versions ...", then nothing.

For example, this happens on the package here: https://github.com/apple/swift-markdown

My guess is there is something missing in the configuration of the project but I am at a loss as to what to do to fix it ... if for instance I made my own fork.

Thanks for any suggestions

2      

Hmmmm

I went through all of the forks for the project until I found one that loaded

https://github.com/kkla320/swift-markdown

Swift Playgrounds 4 now gives me the message The target type "Clang Target" is not supported 😢

Is this going to ba another feature of the App I cannot work on in Swift Playgrounds?

1      

I've experienced this same trouble. Has anyone found it's resolve?

Similar issue regarding a password-protected package. https://developer.apple.com/forums/thread/701369

   

Hacking with Swift is sponsored by Emerge

SPONSORED Optimize your app’s startup time, binary size, and overall performance using Emerge’s advanced app optimization and monitoring tools. Reliably measure app size, speed up your app's startup time with Emerge's Launch Booster, and much more. Emerge is actively used by many of the top mobile development teams in the world.

Find out more

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.