有一个本机反应项目,因为我已经设置了
cocoapods并且从那时起使用了xcworkspace文件(反应本机 – firebase的firebase集成所需),所以它不会构建在目标“Staging”之上.当尝试为taget“staging”构建时,我会收到此错误:
ld: library not found for -lPods-[app] clang: error: linker command Failed with exit code 1 (use -v to see invocation)
当我归档项目时,它适用于调试,并且(至少它不会抛出错误).
由于代码推送,我有一个“临时”目标.在版本0.48.4和Xcode 9上使用react-native(在this guide之后创建它,但在使用cocoapods之前)
我的podfile:
platform :ios,'9.0' target 'xx' do #use_frameworks! # Pods pod 'Firebase/Core' pod 'Firebase/Analytics' pod 'Firebase/Database' pod 'Firebase/Messaging' pod 'Firebase/Auth' pod 'Firebase/Storage' end
尝试使用和不使用use_frameworks !,清理项目,删除DerivedData,解体并重新集成pod.
什么可能导致这个? (如果您需要更多信息,请告诉我)