当我尝试将自己的本机项目存档时,出现此错误。
我能够在iPhone和模拟器上运行调试/发行版,并且本机运行也可以运行。
我已经阅读了类似的问题并尝试过:
1)确保我打开的是xcworkspace而不是xcodeproj。
2)删除Podfile.lock并运行pod安装和清理项目。
3)将仅将“构建活动”架构设置为“是”
ld: warning: directory not found for option '-L/Users/mans/Library/Developer/Xcode/DerivedData/teacher-gkqevnksdssljsbrniwvxaoxiwhi/Build/Intermediates.noindex/ArchiveIntermediates/teacher/BuildProductsPath/Release-iphoneos/DoubleConversion'
ld: warning: directory not found for option '-L/Users/mans/Library/Developer/Xcode/DerivedData/teacher-gkqevnksdssljsbrniwvxaoxiwhi/Build/Intermediates.noindex/ArchiveIntermediates/teacher/BuildProductsPath/Release-iphoneos/Folly'
ld: warning: directory not found for option '-L/Users/mans/Library/Developer/Xcode/DerivedData/teacher-gkqevnksdssljsbrniwvxaoxiwhi/Build/Intermediates.noindex/ArchiveIntermediates/teacher/BuildProductsPath/Release-iphoneos/Google-Maps-iOS-Utils'
ld: warning: directory not found for option '-L/Users/mans/Library/Developer/Xcode/DerivedData/teacher-gkqevnksdssljsbrniwvxaoxiwhi/Build/Intermediates.noindex/ArchiveIntermediates/teacher/BuildProductsPath/Release-iphoneos/React'
ld: warning: directory not found for option '-L/Users/mans/Library/Developer/Xcode/DerivedData/teacher-gkqevnksdssljsbrniwvxaoxiwhi/Build/Intermediates.noindex/ArchiveIntermediates/teacher/BuildProductsPath/Release-iphoneos/glog'
ld: warning: directory not found for option '-L/Users/mans/Library/Developer/Xcode/DerivedData/teacher-gkqevnksdssljsbrniwvxaoxiwhi/Build/Intermediates.noindex/ArchiveIntermediates/teacher/BuildProductsPath/Release-iphoneos/react-native-google-maps'
ld: warning: directory not found for option '-L/Users/mans/Library/Developer/Xcode/DerivedData/teacher-gkqevnksdssljsbrniwvxaoxiwhi/Build/Intermediates.noindex/ArchiveIntermediates/teacher/BuildProductsPath/Release-iphoneos/react-native-maps'
ld: warning: directory not found for option '-L/Users/mans/Library/Developer/Xcode/DerivedData/teacher-gkqevnksdssljsbrniwvxaoxiwhi/Build/Intermediates.noindex/ArchiveIntermediates/teacher/BuildProductsPath/Release-iphoneos/react-native-video'
ld: warning: directory not found for option '-L/Users/mans/Library/Developer/Xcode/DerivedData/teacher-gkqevnksdssljsbrniwvxaoxiwhi/Build/Intermediates.noindex/ArchiveIntermediates/teacher/BuildProductsPath/Release-iphoneos/yoga'
ld: library not found for -lDoubleConversion
clang: error: linker command failed with exit code 1 (use -v to see invocation)
答案 0 :(得分:1)
您是否尝试将其关闭然后再次打开?尝试重新启动Mac,通常这些问题就会消失。
如果您遇到这种情况,请尝试删除DerivedData的全部内容:
rm -rf /Users/mans/Library/Developer/Xcode/DerivedData/*
它可以与您从GitHub获得的一些新项目一起工作吗?