Xcode sometimes doesn't find my xcframework for incremental builds.
- Error is
ld: framework not found [framework]where[framework]is the name of my xcframework. - Once it fails, repeated incremental builds will also fail.
- A clean build always fixes it.
- The issue started when I switched from normal frameworks to xcframeworks.
- I followed the instructions in this WWDC video to create the xcframework: https://developer.apple.com/videos/play/wwdc2019/416/
I diffed the link commands between and incremental and clean build, and there was no difference. This would seem to be an Xcode bug. I'm using Xcode 11.4.1.