问题描述
我为此苦苦挣扎了近2个星期。这是错误:
ld: warning: directory not found for option '-L-L/Users/carrabre/Library/Developer/Xcode/DerivedData/imbue-dvxkstblumxsdqhbfwsepkllnggv/Build/Products/Debug-iphonesimulator/AppAuth'
ld: library not found for -lAppAuth
clang: error: linker command Failed with exit code 1 (use -v to see invocation)
在xcode和VSCode的命令行中构建时会发生这种情况。我已经尝试删除派生数据,重新集成Pod,更新Pod,将计算机恢复出厂设置,确保设置了我的链接器文件,将活动体系结构设置为yes。我将不胜感激任何帮助!这是error logs
运行xcode版本12.0.1(12A7300)和Mac OS Catalina 10.15.7
解决方法
这看起来像我在其他地方见过的“双 -L”问题。此解决方案似乎适用于很多人:https://github.com/react-native-community/upgrade-support/issues/36#issuecomment-611516268,即
转到项目“Build Settings”,找到“Library Search Paths”,并确保有 $(inherited)
。根据上述 GitHub,您可能需要将其移至列表顶部。