xCode Cocoapods无法构建项目ios(9.3)



我尝试在我的项目中安装cocoapods框架。我安装了pod,当尝试构建时,我会返回:

Ld /Users/chris/Library/Developer/Xcode/DerivedData/TestSplitView-fcrizpyzqhsxswdwurudpiyebywu/Build/Products/Debug-iphonesimulator/TestSplitView.app/TestSplitView normal x86_64
cd /Users/chris/Desktop/xCodeTrainningProjects/TestSplitView
export IPHONEOS_DEPLOYMENT_TARGET=8.0
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/chris/Library/Developer/Xcode/DerivedData/TestSplitView-fcrizpyzqhsxswdwurudpiyebywu/Build/Products/Debug-iphonesimulator -F/Users/chris/Library/Developer/Xcode/DerivedData/TestSplitView-fcrizpyzqhsxswdwurudpiyebywu/Build/Products/Debug-iphonesimulator -filelist /Users/chris/Library/Developer/Xcode/DerivedData/TestSplitView-fcrizpyzqhsxswdwurudpiyebywu/Build/Intermediates/TestSplitView.build/Debug-iphonesimulator/TestSplitView.build/Objects-normal/x86_64/TestSplitView.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=8.0 -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -framework SwiftyJSON -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/chris/Library/Developer/Xcode/DerivedData/TestSplitView-fcrizpyzqhsxswdwurudpiyebywu/Build/Intermediates/TestSplitView.build/Debug-iphonesimulator/TestSplitView.build/Objects-normal/x86_64/TestSplitView.swiftmodule -framework Pods_TestSplitView -Xlinker -dependency_info -Xlinker /Users/chris/Library/Developer/Xcode/DerivedData/TestSplitView-fcrizpyzqhsxswdwurudpiyebywu/Build/Intermediates/TestSplitView.build/Debug-iphonesimulator/TestSplitView.build/Objects-normal/x86_64/TestSplitView_dependency_info.dat -o /Users/chris/Library/Developer/Xcode/DerivedData/TestSplitView-fcrizpyzqhsxswdwurudpiyebywu/Build/Products/Debug-iphonesimulator/TestSplitView.app/TestSplitView
ld: framework not found SwiftyJSON
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我有时会遇到这个问题。

确保你在你的工作区,而不是你的项目。先做一个项目清理。在不使用库导入语句的情况下构建项目(但仍然安装了SwiftyJSON pod),然后使用导入语句重新构建。

相关内容

  • 没有找到相关文章

最新更新