安装pod后,项目不工作

时间:2016-05-21 13:16:14

标签: ios xcode swift firebase cocoapods

我正在创建一个IOS应用程序(https://github.com/felipeuntill/WeddingPlanner),我目前正在尝试使用Firebase实现登录视图,我的应用程序正常工作但是当我使用安装命令时,我的应用程序崩溃了这条消息:

ld: framework not found Pods_WeddingPlanner
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我在做什么:

$ git clone https://github.com/felipeuntill/WeddingPlanner.git
$ cd WeddingPlanner
// The App sucessfull build.
$ pod init
// Edit podfile and add reference to 'Firebase' and 'Firebase/Auth'.
$ pod install 
// The app build crashes.

整个错误消息:

Ld /Users/felipeassuncao/Library/Developer/Xcode/DerivedData/WeddingPlanner-dozgfwtyrufjmheoacfbfkuseaar/Build/Products/Debug-iphonesimulator/WeddingPlanner.app/WeddingPlanner normal x86_64
    cd /Users/felipeassuncao/Development/Projects/WeddingPlanner/IOS
    export IPHONEOS_DEPLOYMENT_TARGET=9.3
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk -L/Users/felipeassuncao/Library/Developer/Xcode/DerivedData/WeddingPlanner-dozgfwtyrufjmheoacfbfkuseaar/Build/Products/Debug-iphonesimulator -F/Users/felipeassuncao/Library/Developer/Xcode/DerivedData/WeddingPlanner-dozgfwtyrufjmheoacfbfkuseaar/Build/Products/Debug-iphonesimulator -F/Users/felipeassuncao/Development/Projects/WeddingPlanner/IOS/Pods/FirebaseAnalytics/Frameworks -F/Users/felipeassuncao/Development/Projects/WeddingPlanner/IOS/Pods/FirebaseAuth/Frameworks -F/Users/felipeassuncao/Development/Projects/WeddingPlanner/IOS/Pods/FirebaseInstanceID/Frameworks -F/Users/felipeassuncao/Development/Projects/WeddingPlanner/IOS/Pods/GoogleInterchangeUtilities/Frameworks -F/Users/felipeassuncao/Development/Projects/WeddingPlanner/IOS/Pods/GoogleNetworkingUtilities/Frameworks -F/Users/felipeassuncao/Development/Projects/WeddingPlanner/IOS/Pods/GoogleSymbolUtilities/Frameworks -F/Users/felipeassuncao/Development/Projects/WeddingPlanner/IOS/Pods/GoogleUtilities/Frameworks -filelist /Users/felipeassuncao/Library/Developer/Xcode/DerivedData/WeddingPlanner-dozgfwtyrufjmheoacfbfkuseaar/Build/Intermediates/WeddingPlanner.build/Debug-iphonesimulator/WeddingPlanner.build/Objects-normal/x86_64/WeddingPlanner.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=9.3 -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -ObjC -lc++ -lsqlite3 -lz -framework AdSupport -framework AddressBook -framework CoreGraphics -framework FirebaseAnalytics -framework FirebaseAuth -framework FirebaseInstanceID -framework GoogleInterchangeUtilities -framework GoogleNetworkingUtilities -framework GoogleSymbolUtilities -framework GoogleUtilities -framework SafariServices -framework Security -framework StoreKit -framework SystemConfiguration -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/felipeassuncao/Library/Developer/Xcode/DerivedData/WeddingPlanner-dozgfwtyrufjmheoacfbfkuseaar/Build/Intermediates/WeddingPlanner.build/Debug-iphonesimulator/WeddingPlanner.build/Objects-normal/x86_64/WeddingPlanner.swiftmodule -framework Pods_WeddingPlanner -Xlinker -dependency_info -Xlinker /Users/felipeassuncao/Library/Developer/Xcode/DerivedData/WeddingPlanner-dozgfwtyrufjmheoacfbfkuseaar/Build/Intermediates/WeddingPlanner.build/Debug-iphonesimulator/WeddingPlanner.build/Objects-normal/x86_64/WeddingPlanner_dependency_info.dat -o /Users/felipeassuncao/Library/Developer/Xcode/DerivedData/WeddingPlanner-dozgfwtyrufjmheoacfbfkuseaar/Build/Products/Debug-iphonesimulator/WeddingPlanner.app/WeddingPlanner

ld: framework not found Pods_WeddingPlanner
clang: error: linker command failed with exit code 1 (use -v to see invocation)

2 个答案:

答案 0 :(得分:1)

执行pod安装后,您应该使用WeddingPlanner.xcworkspace打开项目,永远不要使用WeddingPlanner.xcodeproj

答案 1 :(得分:1)

打开您的.xcworkspace文件而不是xcodeproj并清理您的项目并重新构建