-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Choosing root directory as output directory causes incorrect zipping behavior #20
Comments
After digging in a little bit it seems like |
After even more experimentation, it seems like the from(outputDirectory) {
include("${configuration.packageName.value}.xcframework/**")
} Since we're already opening the child The second change is using the I tested this using both the default outputDirectory and using the project root and it works in both situations. |
…Fixes luca992#20 The wildcard that was used in the include was too permissive and would cause too many things to be zipped when the output directory was set to be the project root.
When using the default output directory and when specifying the output directory and providing a path and folder name,
outputDirectory(File(rootDir, "folderName"))
the resulting zip file has the correct structure and format:However, if you pass in only a path as the output directory, for example:
outputDirectory(rootDir)
oroutputDirectory(File(rootDir, "/"))
the resulting zip file will contain the entire project, not just the xcframework.This zip file is unusable by SPM and this issue makes it difficult to have the plugin generate the
Package.swift
file at the root of the repository (which is standard practice for swift packages).The text was updated successfully, but these errors were encountered: