Open sepw opened 1 year ago
Hm, that's very strange. It looks like some kind of cache. Indeed, there is no reference to aaplus-2.08
in the code itself. The swift package manager provide some commands like swift package purge-clean
or swift package reset
. Maybe that's worth trying (I don't have much experience with it).
@onekiloparsec Many thanks for the suggestions.
I tried resetting the package caches using both the command line and Xcode (using File > Packages > Reset Package Caches) but I got the same errors after cleaning the build folder and rebuilding.
So I followed the instructions from this Stack Overflow article and completely deleted the SPM cache and configuration folders (having first closed Xcode):
rm -rf ~/Library/Caches/org.swift.swiftpm
rm -rf ~/Library/org.swift.swiftpm
I then re-opened my project in Xcode, reset the project's package caches (File > Packages > Reset Package Caches), cleaned the build folder and rebuilt. At this point SwiftAA finally built correctly.
I hope this information helps anyone else with this issue.
I reopened my project today, made some changes and suddenly started receiving the same build errors, despite the project building fine the day before. Very strange.
I have reverting to 2.3.2 as a workaround.
That's really weird!
I reopened my project today, made some changes and suddenly started receiving the same build errors, despite the project building fine the day before. Very strange.
I have reverting to 2.3.2 as a workaround.
Try to download the whole package, unzip it to a folder nearby and reference to the package as a local package
(instead of using Swift Package Manager
and the GitHub URL).
Will it compile then?
No news or new info, over here ?
I use SwiftAA as a dependency in my Swift package. Today I updated my dependencies and SwiftAA was updated to 2.4.0 (it was previously 2.3.2).
I now cannot build my project (2.3.2 compiled fine), with the compilation of SwiftAA failing with the following errors:
The errors appear to occur when building AA+. The checkout directory indeed doesn't contain
aaplus-v2.08
files. Instead, it contains a checkout foraaplus-v2.44
:The complete build output is:
(
<project>
in the above refers to/Users/<user>/Library/Developer/Xcode/DerivedData/<package>
).It appears SwiftAA is checking out AA+ v2.44 but the build scripts are referencing v2.08 for some reason.
ObjCAA.podspec
that is checked out references AA+ 2.44 as expected:I have searched the files in my checkout for references to
2.08
but cannot find any, yet the paths passed toCompileC
clearly referenceaaplus-v2.08
:(A number of lines were omitted from the above in the interest of brevity).
I have no idea where these references to
aaplus-v2.08
come from, but presume they're generated at some point during checkout/build?I will implement a workaround to fix my SwiftAA dependency at v2.3.2, but I would prefer to use v2.4 and newer if possible at some point in the future. Any help would be appreciated.