Open wcwynn opened 1 week ago
Thanks for the detailed report. If you perform a clean rebuild, can you let us know if you get the same error? This has been an intermittent issue with Xcode 15 where the plugins are sometimes executed in the wrong order, and it usually goes away with a clean rebuild.
(For the record, the incorrect directory reference skip-unit.output/SkipUnit/destination/skipstone
versus skip-unit.output/SkipUnit/skipstone
is likely not the issue; the plugin output folders changed in Xcode 16, which means we have to check both – the error message is just referencing the final location checked, but it would have checked both locations and succeeded if either were found)
I tried a clean rebuild a few times but received the same error. I also completely removed the skip-tools-eval
directory and tried again from scratch but unfortunately received the same error.
How about running Xcode's File
/Packages
/Reset Package Caches
and then doing a clean re-build?
Also, did the skip init
command pass? That also tried to build the project, so if it passed and Xcode is failing, then something is amiss. If you open the Terminal and cd
to the package folder and run skip export
, does it pass? If not, can you post the failure log?
How about running Xcode's File/Packages/Reset Package Caches and then doing a clean re-build?
Unfortunately, this did not resolve the problem.
Also, did the skip init command pass?
Yes, it seemed to pass.
If you open the Terminal and cd to the package folder and run skip export, does it pass?
Yes, it seemed to pass.
Here is the output:
~/tree/mc-personal-projects/skip-tools-eval skip export
[✓] Check Swift Package (1.29s)
[✓] Build project skip-tools-eval (12.01s)
[✓] Archive iOS ipa (28.65s)
[✓] Assemble SkipToolsEval-debug.ipa 841 KB
[✓] Archive SkipToolsEval-debug.xcarchive.zip 1.7 MB
[✓] Archive iOS ipa (26.56s)
[✓] Assemble SkipToolsEval-release.ipa 310 KB
[✓] Archive SkipToolsEval-release.xcarchive.zip 2.9 MB
[✓] Assemble Android app SkipToolsEval (283.46s)
[✓] Export SkipToolsEval-debug.apk: 70.3 MB
[✓] Export SkipToolsEval-release.apk: 13.9 MB
[✓] Bundle Android app SkipToolsEval (16.69s)
[✓] Export SkipToolsEval-debug.aab: 19 MB
[✓] Export SkipToolsEval-release.aab: 9 MB
[✓] Export project for SkipToolsEval
[✓] Archive project source SkipToolsEval-project.zip 593 KB
[✓] Skip export skip-tools-eval to ./.build/skip-export (372.37s)
[✓] Skip 1.1.8 export succeeded in 372.37s
~/tree/mc-personal-projects/skip-tools-eval
Hmm. Very odd.
Can you try checking out the default "Hello" sample app from https://github.com/skiptools/skipapp-hello and opening that in Xcode and seeing if that builds? If not, can you post the complete gradle error log?
I received the same build error for the "Hello" sample app.
FAILURE: Build failed with an exception.
* Where:
Settings file '/Users/dev/tree/mc-personal-projects/skipapp-hello/Android/settings.gradle.kts' line: 36
* What went wrong:
Missing expected Skip output folder: /Users/dev/Library/Developer/Xcode/DerivedData/SourcePackages/plugins/skip-unit.output/SkipUnit/destination/skipstone/buildSrc. Run `swift build` in the root folder to create, or specify Xcode environment BUILT_PRODUCTS_DIR.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 1s
I noticed in both projects the plugins is showing in red (see image).
Can you post the complete skip-gradle.log.txt
file from when it fails (either your own project or the Hello sample)? There might be other warnings or errors in there that indicate what went wrong…
Please see the details of my previous message and original issue description for the skip-gradle.log.txt
files. I think they are complete but if there is another file you're expecting just let me know.
I see the excerpt of the skip-gradle.log.txt
file that you posted, but I'd like to see the entire file in order to see if it contains any earlier errors or warnings. Can you attach it to this issue? You should be able to command-click on it and open it in the Finder to get the file reference.
Here are the files using the file reference from Finder (following your instructions). skip-gradle.log.txt skip-gradle.log.txt
Following the getting started guide and creating an app, the created app fails to build. There appears to be a missing Skip output folder (or the folder is located in the wrong location).
Skip Checkup
Creating an App
Build Failure (skip-gradle.log.txt output)
Missing directory and files
It seems the
Android/settings.gradle.kts
is expecting a directory to be located in one location when it is actually present in a different location: