github暗码: 就是登岸github的的暗码
Password for 'https://git用户名@github.com': github暗码 如果出现:
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.fatal: Authentication failed for 'https://github.com/xiaYingwudi/testProject.git/'意思就是你原先的暗码根据从2021年8月13日开始就不能用了,必须利用个人访问令牌(personal access token),就是把你的暗码更换成token!
去github账号设置内里:
pod spec lint testProject.podspec这步调,大概会堕落,详细百度下。
nil versions are discouraged and will be deprecated in Rubygems 4 -> demoPodProject (0.0.1) `WARN | summary: The summary is not meaningful.` - ERROR | file patterns: The `source_files` pattern did not match any file. - NOTE | xcodebuild: note: Using new build system - NOTE | xcodebuild: note: Planning build - NOTE | xcodebuild: note: Constructing build description - NOTE | xcodebuild: note: Execution policy exception registration failed and was skipped: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted" (in target 'Pods-App' from project 'Pods') - NOTE | xcodebuild: note: Execution policy exception registration failed and was skipped: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted" (in target 'App' from project 'App') - NOTE | xcodebuild: warning: Capabilities for Signing & Capabilities may not function correctly because its entitlements use a placeholder team ID. To resolve this, select a development team in the App editor. (in target 'App' from project 'App')Analyzed 1 podspec.[!] The spec did not pass validation, due to 1 error.WARN | summary: The summary is not meaningful.
这个是告诫,意思是说你的summary是系统给天生的形貌,你应该改成你本身的。
ERROR | file patterns: The source_files pattern did not match any file.
spec内里
spec.source_files = 'Classes/*.{h,m}'再实行
// demoPodProject 你的工程堆栈名pod spec lint demoPodProject.podspec报错:
nil versions are discouraged and will be deprecated in Rubygems 4 -> demoPodProject (0.0.1) - ERROR | xcodebuild: Returned an unsuccessful exit code. You can use `--verbose` for more information. - NOTE | xcodebuild: note: Using new build system - NOTE | xcodebuild: note: Planning build - NOTE | xcodebuild: note: Constructing build description - NOTE | xcodebuild: demoPodProject/Classes/DLCDiscoverVC.h:9:9: fatal error: 'DLCBaseViewController.h' file not found - NOTE | xcodebuild: warning: Capabilities for Signing & Capabilities may not function correctly because its entitlements use a placeholder team ID. To resolve this, select a development team in the App editor. (in target 'App' from project 'App') - NOTE | [watchOS] xcodebuild: fatal error: 'DLCBaseViewController.h' file not foundAnalyzed 1 podspec.[!] The spec did not pass validation, due to 1 error.这个是实行 pod spec lint指令的时间产生的错误:代码逻辑不能有错,好比你import一个不存在的文件,就会报错,检查下代码,导入的.h的头文件都存在就行,run起来,能乐成就行。
九、 如果是第一次提交,需要先实行这个下令
pod trunk register 这里写邮箱 '这里起个名字' --description=' 这里写形貌'好比:
pod trunk register '2442285459@qq.com' --description=' xxxx形貌'
实行完成之后,会给你的邮箱里发一封邮件,去邮箱点击链接,就行
然后提交到CocoaPods
(留意:由于我验证podspec文件时利用了--allow-warnings 所以这里反面也加上--allow-warnings)
pod trunk push demoPodProject.podspec --allow-warnings再实行乐成了。
十、 提交完成后,就可以通过cocopods查找demoPodProject了
末了
pod setup 现在验证是否乐成:
pod search demoPodProject如果能搜到,恭喜你乐成了。
如果用pod search 下令会搜不到,由于本地的索引没有更新,利用下面下令进入文件目次,删除索引文件
search_index.json