Usage of External Packages for the challenge

Can I use external Swift Package Dependencies for the challenge, or will my app just not run as the testing environment is offline? I have a couple dependencies which are crucial to the running of my submission

@advaitconty I'm not involved in that team nor I know anything about it, however I can see in the rules and regulations of the challenge that there is not rule against it.

Looking at the rules and requirements I don't see anything about the Swift Package Dependencies but needs to be a Swift Playground template.

https://developer.apple.com/swift-student-challenge/eligibility/

And this is a way to add packages on your swift playgrounds:

https://developer.apple.com/documentation/swift-playgrounds/add-a-swift-package

Hope this helps.

Albert Pascual
  Worldwide Developer Relations.

@Vincent_Galilieo is right that way it works just make sure your external package doesn't take too much space as the size limit for your zip file is max 25 mb. So @advaitconty just download your packages locally and then create an folder besides your playground and save it there and then while adding packages in Xcode make sure to add that package with the same relative path. ( which is default if you are not editing package.swift file yourself ).

Are we not allowed to add a package normally and the judging computer download the package?

Are we not allowed to add a package normally and the judging computer download the package?

In the fine print we specifically state that your playground is expected to work without a network connection.

For other hints and tips on this topic, see my reply on this thread.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Just want to add my two cents here. It is possible to import a Swift package locally, so there should be no need to rely on an internet connection.

If you are using Xcode:

Files > Add Package Dependencies...

A window should appear and there should be a button on the bottom left that says "Add Local".

From there, you can import your package.

It is possible to import a Swift package locally

Right. And that’s a great option for day-to-day development. My concern in this case is that the instructions say:

Your submission must be an app playground (.swiftpm) in a ZIP file.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

@DTS Engineer Yes, this is still possible, even with this constraint. If you intend on creating your .swiftpm project via Xcode, you can add local Swift packages. See the below image where I successfully build an Xcode App Playground project with a local package:

However, this will not work if you use the Swift Playgrounds app, so users should be aware of this limitation:

Also keep in mind that the package must only contain Swift code. If there is any non-Swift code, the project will refuse to build.

Usage of External Packages for the challenge
 
 
Q