pod》error:The dependency `` is not used in any concrete target
內容提要:
podfile升級之後到最新版本,pod裡的內容必須明確指出所用第三方庫的target,否則會出現The dependency `` is not used in any concrete target這樣的錯誤。
以下從三個步驟陳述:
1. Podfile升級
檢視pod版本:
pod --version
pod 升級(此時是升級到1.0.0.beta.2版本):
sudo gem install cocoapods --pre
2. 錯誤內容:
我的Podfile的內容是:
platform :ios, '7.0'
pod 'ReactiveCocoa', '2.1.8'
pod 'objectiveflickr', '2.0.4'
pod 'LinqToObjectiveC', '2.0.0'
pod 'SDWebImage', '3.6'
pod install後出現錯誤The dependency `` is not used in any concrete target
複製程式碼
pod install
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/rbconfig.rb:213: warning: Insecure world writable dir /Applications/Cocos/tools/ant/bin in PATH, mode 040777
Re-creating CocoaPods due to major version update.
Updating local specs repositories
Analyzing dependencies
[!] The dependency `ReactiveCocoa (= 2.1.8)` is not used in any concrete target.
The dependency `objectiveflickr (= 2.0.4)` is not used in any concrete target.
The dependency `LinqToObjectiveC (= 2.0.0)` is not used in any concrete target.
The dependency `SDWebImage (= 3.6)` is not used in any concrete target.
複製程式碼
3. 修改方法:
Podfile內容更改:
複製程式碼
platform :ios, '7.0'
target "RWTFlickrSearch" do
pod 'ReactiveCocoa', '2.1.8'
pod 'objectiveflickr', '2.0.4'
pod 'LinqToObjectiveC', '2.0.0'
pod 'SDWebImage', '3.6'
end
複製程式碼
這樣再執行pod install,就會成功了。
相關文章
- Error in invoking target 'agent nmhs' of makefileError
- FATAL - Fatal error: Target Interaction Manager failed at StartupErrorAI
- Dynamics CRM 2016 404 error before any report runsError
- ERROR: failed to establish dependency between database db_name and diskgroupErrorAIDatabase
- Error creating bean with name ‘dataSource‘: Unsatisfied dependency expressed through fieldErrorBeanExpress
- error: pathspec ‘myupstream‘ did not match any file(s) known to gitErrorGit
- Error in invoking target “install” of makefile 'ins_ctx.mk'Error
- CMake Error: add_executable cannot create target ““ because another target with the same name已解決Error
- Error:Cannot build artifact xxx:war exploded‘ because it is included into a circular dependencyErrorUI
- git push origin master 時出現報錯 error: src refspec master does not match any error: failed to push someGitASTErrorAI
- ld: -pie can only be used when targeting iOS 4.2 or later clang: error: linker command failed with eiOSErrorAI
- CentOS7.6安裝oracle 11.2.0.4 Error in invoking target 'agent nmhs' of makefileCentOSOracleError
- 記錄GitHub使用過程中的 error: src refspec master does not match anyGithubErrorAST
- 如何理解 new (...args: any[]) => any
- dependency injection
- k8s kubectl top pod報錯error Metrics API not availableK8SErrorAPIAI
- Linux7安裝11g 86%報錯:Error in invoking target 'agent nmhs'LinuxError
- [kubernetes]Error from server (BadRequest):container install-cni is not valid for pod kube-dnsErrorServerAIDNS
- mvn dependency:tree
- [Javascript] Circular dependencyJavaScript
- How to find dependency
- Openfiler配置ISCSI Target及FC Target
- Oracle Least Recently Used ChainsOracleASTAI
- Server-side rendering for any React app on any FaaS providerServerIDEReactAPP
- iOS開發 解決pod install報錯 SSL_ERROR_SYSCALL, errno 54iOSError
- 【Oracle】Linux7安裝11g 86%報錯:Error in invoking target 'agent nmhs' of makefileOracleLinuxError
- 安裝as10g3的售後報錯Error in invoking target 'ntcontab.o' of makefileError
- Standard Functions Used in SAP Retail with ArticlesFunctionAI
- pod install 與 pod update
- 23-pod-Pod Preset
- TypeScript Any型別TypeScript型別
- 7.12 ANY_VALUE
- jasmine.any(Function)ASMFunction
- vue 踩坑-This dependency was not foundVue
- CSS E:targetCSS
- currentTarget VS target
- 教育授權certificate used to sign the license
- pgsql 中沒有any()?SQL
- CocoaPods pod install/pod update更新慢