ld:在XCode中找不到-lPods的库

时间:2017-06-21 10:15:35

标签: ios cocoapods

我正在尝试构建一个在2015年9月左右开发的项目。在设备上运行时出现以下错误,

ld: library not found for -lPods
clang: error: linker command failed with exit code 1

我有Podfile.lock,当时正在使用libs的版本。但我正在使用最新的Cocoapods(v 1.21.1)。假设这可能是问题,我安装了当时版本的Cocoapods(v 0.39.0)。但是有以下错误,

[!] Unable to load a specification for plugin `/Library/Ruby/Gems/2.0.0/gems/cocoapods-deintegrate-1.0.1`
Updating local specs repositories 
[!] The `master` repo requires CocoaPods 1.0.0 - (currently using 0.39.0)
Update CocoaPods, or checkout the appropriate tag in the repo.

所以我安装了CocoaPods(v 1.0.0)但得到了同样的错误,

ld: library not found for -lPods
clang: error: linker command failed with exit code 1

感谢任何帮助。谢谢!

更新 这是podfile内容,

platform :ios, '7.0'
# source 'git@bitbucket.org:****dev/****-ios-spec-pod.git'
source 'https://github.com/CocoaPods/Specs.git'
#source 'https://bitbucket.org/****dev/****-ios-spec-pod.git'

# to test Pod :path => '~/Documents/...'

xcodeproj '****/****.xcodeproj'

# ignore all warnings from all pods
inhibit_all_warnings!

target "****" do 
pod 'SVProgressHUD'
pod 'AFNetworkActivityLogger'
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'FBSDKShareKit'
pod 'APAvatarImageView'
pod '****-iOS-SDK-API', :path => '~/Documents/****_dev/****-ios-sdk-api-pod'
pod 'PSAlertView'
pod 'UITextField+Shake'
pod 'HexColors', '~> 2.2.1'
pod 'TSMessages'
pod 'TPKeyboardAvoiding'
pod 'DateTools'
pod 'SDWebImage'
pod 'PureLayout'
pod 'SZTextView'
pod 'ALAssetsLibrary-CustomPhotoAlbum', '~> 1.3'
pod 'UIActionSheet-Blocks', '~> 1.0'
pod 'DTPickerPresenter', '~> 0.2.0'
pod 'CCMPopup'
pod 'FranklySDK'
pod 'Instabug'
pod 'MZTimerLabel'
pod 'Google/Analytics'
end 

这里,**** =我的项目名称

0 个答案:

没有答案