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,就會成功了。
相關文章
- CocoaPods報錯:The dependency `AFNetworking ` is not used in any concrete target
- Error in invoking targetError
- RMAN-05517: temporary file conflicts with file used by target database(zt)Database
- ERROR: failed to establish dependency between database db_name and diskgroupErrorAIDatabase
- Error in invoking target 'agent nmhs' of makefileError
- error in invoking target install of makefileError
- Error in invoking target 'irman ioracle' of makefileErrorOracle
- [Oracle] Error in invoking target 'agent nmhs' of makefileOracleError
- FATAL - Fatal error: Target Interaction Manager failed at StartupErrorAI
- Exception String: Error in invoking target of makefileExceptionError
- Error creating bean with name ‘dataSource‘: Unsatisfied dependency expressed through fieldErrorBeanExpress
- Error:Cannot build artifact xxx:war exploded‘ because it is included into a circular dependencyErrorUI
- CMake Error: add_executable cannot create target ““ because another target with the same name已解決Error
- Exception String: Error in invoking target install of makefileExceptionError
- Error:Conflict with dependency 'com.android.support:support-annotations' in projErrorAndroid
- error: pathspec ‘myupstream‘ did not match any file(s) known to gitErrorGit
- Identify If A Disk/Part Is Still Used By ASM,Used by ASM Or Used by ASM_603210.1IDEASM
- Error in invoking target “install” of makefile 'ins_ctx.mk'Error
- Error in invoking target agent nmhs of makefile ins_emagent.mkError
- 如何理解 new (...args: any[]) => any
- ERROR 1577 (HY000): Cannot proceed because system tables used by Event ScheduleError
- Dynamics CRM 2016 404 error before any report runsError
- git push origin master 時出現報錯 error: src refspec master does not match any error: failed to push someGitASTErrorAI
- 記錄GitHub使用過程中的 error: src refspec master does not match anyGithubErrorAST
- 解決Error (1133): Can’t find any matching row in the user tableError
- [Javascript] Circular dependencyJavaScript
- How to find dependency
- 釋出android apk,Error running app: No target device found.AndroidAPKErrorAPPdev
- 安裝12c遇到 Error in invoking target 'irman ioracle' of makefileErrorOracle
- k8s kubectl top pod報錯error Metrics API not availableK8SErrorAPIAI
- suse oracle 11.2.0.4 Error in invoking target 'agent nmhs' ins_emagent.mkOracleError
- Error in invoking target 'client_sharedlib' of makefile ins_rdbms.mkErrorclient
- Error in invoking target install of makefile plsql/lib/ins_plsql.mkErrorSQL
- Script form where usedORM
- Signals used by the JVMJVM
- How Views Are Used (176)View
- any和anyObjectObject
- ld: -pie can only be used when targeting iOS 4.2 or later clang: error: linker command failed with eiOSErrorAI