我刚尝试将firebase添加到我的项目中并导致错误:
Ld /Users/Michael/Library/Developer/Xcode/DerivedData/Naked_Mole-apueexlqjkdhwcfgdmwnzzwlyyuv/Build/Products/Debug-iphonesimulator/Naked\ MoleTests.xctest/Naked\ MoleTests normal x86_64
cd "/Users/Michael/Desktop/1twenty/Naked Mole"
export IPHONEOS_DEPLOYMENT_TARGET=8.2
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk -L/Users/Michael/Library/Developer/Xcode/DerivedData/Naked_Mole-apueexlqjkdhwcfgdmwnzzwlyyuv/Build/Products/Debug-iphonesimulator -F/Users/Michael/Library/Developer/Xcode/DerivedData/Naked_Mole-apueexlqjkdhwcfgdmwnzzwlyyuv/Build/Products/Debug-iphonesimulator -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk/Developer/Library/Frameworks -F/Users/Michael/Desktop/1twenty/Naked\ Mole -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk/Developer/Library/Frameworks -filelist /Users/Michael/Library/Developer/Xcode/DerivedData/Naked_Mole-apueexlqjkdhwcfgdmwnzzwlyyuv/Build/Intermediates/Naked\ Mole.build/Debug-iphonesimulator/Naked\ MoleTests.build/Objects-normal/x86_64/Naked\ MoleTests.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -bundle_loader /Users/Michael/Library/Developer/Xcode/DerivedData/Naked_Mole-apueexlqjkdhwcfgdmwnzzwlyyuv/Build/Products/Debug-iphonesimulator/Naked\ Mole.app/Naked\ Mole -Xlinker -objc_abi_version -Xlinker 2 -framework XCTest -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/Michael/Library/Developer/Xcode/DerivedData/Naked_Mole-apueexlqjkdhwcfgdmwnzzwlyyuv/Build/Intermediates/Naked\ Mole.build/Debug-iphonesimulator/Naked\ MoleTests.build/Objects-normal/x86_64/Naked_MoleTests.swiftmodule -mios-simulator-version-min=8.2 -framework Firebase\ 3 -framework FacebookSDK -framework Parse -framework ParseFacebookUtils -framework Bolts -Xlinker -dependency_info -Xlinker /Users/Michael/Library/Developer/Xcode/DerivedData/Naked_Mole-apueexlqjkdhwcfgdmwnzzwlyyuv/Build/Intermediates/Naked\ Mole.build/Debug-iphonesimulator/Naked\ MoleTests.build/Objects-normal/x86_64/Naked\ MoleTests_dependency_info.dat -o /Users/Michael/Library/Developer/Xcode/DerivedData/Naked_Mole-apueexlqjkdhwcfgdmwnzzwlyyuv/Build/Products/Debug-iphonesimulator/Naked\ MoleTests.xctest/Naked\ MoleTests
ld: framework not found Firebase 3
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我完全按照说明添加了所有需要的框架,并将-ObjC
添加到我的"其他链接器标记"中。我也试过开始一个新项目并将其全部添加到那里我仍然回到同样的问题。
虽然我已经将firebase 3添加到我的项目中,但它没有找到firebase 3框架?