Closed smawpaw closed 3 years ago
Hi @smawpaw,
Thanks for filing this! We've been able to repro on our end and are working on a fix.
@hokstuff Thanks!
Some new info that may help: we have some reservations about the scheme-based run script. We have a multi-scheme project, so that alone was several copy-pastas, and overall it just felt a little unusual. We would much prefer a Build Phase script (or no script at all 😇).
But, just poking around I was able to get the same scheme script to work as a Build Phase script by ticking the For install builds only
box. Unfortunately, this was more of a "let's see what happens" moment than a "ah, this oughta do it!".
But, not only does it appear to work, it also fixed this reported issue. I do not need to clean build for each successive run with the script in Build Phases as described.
Hi @smawpaw,
Glad that you were able to find a workaround. We have released 4.0.0 that should fix the issue. We encourage you still to upgrade as the previous version of appboy-spm-cleanup.sh
would delete cache files which Xcode relies on for incremental build.
We've heard reports that this cleanup step might no longer be needed in the last Xcode 12.5 beta and we'll make sure to update our integration documentation when the next Golden Master is released.
Report
Describe your environment.
What did you do?
Tried to build/run the app a second time after an initial run
What did you expect to happen?
The app to build & run without error and without needing to clean build each time
What happened instead?
We get the error
library not found for -lAppboyKitLibrary
.What I believe is happening:
The run script hits a bash script (one for iOS, one for macOS) called
appboy-spm-cleanup.sh
The script removes
libAppboyKitLibrary.a
which seems very related to thelibrary not found for -lAppboyKitLibrary
error above. Perhaps because it can't remove a file that's already been removed.Steps to reproduce
Code Snippet
Project that demonstrates the issue
BrazeTest 2.zip
Thanks! 🙏