-
Notifications
You must be signed in to change notification settings - Fork 46
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
Adding the (skip'ified) Cows SPM package makes the build fail #198
Comments
The device I configured is a "Pixel 6 API 35" in "Android Studio Koala | 2024.1.1 Patch 2", in case that might be problematic. |
Very curious. That works for me – and since you aren't yet using the dependency in your target, it shouldn't be affecting the plugin in any way. Nothing in Does the same error occur if you do |
|
Now when I actually add the dependencies, it still doesn't work though:
|
Did another pkg-reset and rebuild, but still doesn't go through:
|
I have my DerivedData in /tmp could that have sth to do with it? |
It shouldn't matter where But to be on the safe side, can you try deleting your DerivedData and re-starting Xcode? |
Just tried the whole thing at my home machine (Xcode 16b5, installing all the stuff for the first time), template projects builds and runs, but as soon as I do
Things error out. Reset Package Caches fixes that, and it builds. But when I then actually add the dep to the app:
It still fails. Doesn't seem machine specific but a general issue. |
Hmm. Very odd. I am able to add that dependency and run a project that uses it. If you try rebuilding a few times, is the (initial) error the same each time? |
FWIW, adding the dependency works fine on my machine as well |
Yup, I think the question is why your setup is different to mine, making things fail. I just followed the getting started instructions, both w/ the same result 🤷♀️ (both Mac Mini's, M1 and M2, w/ 14.6.1 (23G93) |
Can you send us a failed build log and maybe a zipped version of your project? All of our own libraries use SwiftPM of course, and there's nothing special about them compared to your cows library. And of course our own libraries are working for all our users, and your cow library is also working for us... so it's very odd that this isn't working for you. We'd love to get to the bottom of it. |
Pinging once more about this, @helje5. We'd love to get you up and running. Or, at the very least, figure out what is causing the difference between your experience and ours with adding the external dependency… |
As per the discussion in Slack.
I create the app in Xcode (tried both 15.4 and 16b3):
I can build an run the thing in Xcode and it also shows up in the simulator. I then go to
SkipCows/SkipCows/Package.swift
in Xcode and add the cows dependency. This alone makes the build fail w/ 300+ errors.Package.swift:
The text was updated successfully, but these errors were encountered: