当试图使用Xcode的前端向SPM添加或解析某些ObjC包(例如,TZImagePickerController(时,会发生如下编译错误:
target ‘PACKAGENAME’ has invalid header layout: umbrella header found at '/Users/USERNAME/Library/Developer/Xcode/DerivedData/PROJECT-fpcffpkaycriklgbcfxqlgkqjolr/SourcePackages/checkouts/PACKAGENAME/PACKAGENAME/PACKAGENAME.h', but directories exist next to it: /Users/USERNAME/Library/Developer/Xcode/DerivedData/PROJECT-fpcffpkaycriklgbcfxqlgkqjolr/SourcePackages/checkouts/PACKAGENAME/PACKAGENAME/PACKAGENAME.bundle; consider removing them
有人知道变通办法吗?
我发现的一个解决方法是安装Xcode 12.4并使用它而不是12.5。
不知道为什么会发生这种情况,但我确实提交了一份反馈:FB9097550。