github中创建自己的cocoapod私有库_异常问题解决
2017-05-21 23:13
771 查看
https://github.com/potato512/CocoapodSpecDemo/tree/master/Help
1、file patterns: The `source_files` pattern did not match any file.
解决:检查你.podspec文件中s.source_files路径有没有填错。
源文件所在目录名称与xx.podspec文件保持同名,且在同一个层级。
2、file patterns: The `public_header_files` pattern did not match any file.
解决:检查你.podspec文件中public_header_files路径有没有填错
源文件所在目录名称与xx.podspec文件保持同名,且在同一个层级。
3、[!] You need to register a session first.
解决:第一次使用时需要注册
(1)注册命令:
(3)查看命令:
4、[!] The validator for Swift projects uses Swift 3.0 by default, if you are using a different version of swift you can use a `.swift-version` file to set the version for your Pod. For example to use Swift 2.3, run:
`echo "2.3" > .swift-version`.
解决:
5、[!] Unable to find a pod with name, author, summary, or description matching `CocoapodSpecDemo`
解决:
(1)删除缓存:
6、初次创建私有库时,如果没有创建LICENSE文件,则会造成执行"pod trunk push xxxx"命令时出错。
解决:在github的项目中,后续创建LICENSE文件。创建方法:进入github项目-选择<>code-Create new file-Name your file(LICENSE)-choose a license(MIT license)-Commit new file
7、使用pod lib lint ,或pod spec lint 进行校验文件时报错
- ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code. You can use `--verbose` for more information.
- ERROR | xcodebuild: /Users/zhangshaoyu/Library/Developer/Xcode/DerivedData/App-cojazwchykrvonefhcdkwuhxckoo/Build/Products/Release-iphonesimulator/SYImageBrowser/SYImageBrowser.framework/Headers/SYImageBrowseHelper.h:17:9: error: include of non-modular
header inside framework module 'SYImageBrowser.SYImageBrowseHelper' [-Werror,-Wnon-modular-include-in-framework-module]
解决:自建的私有库项目中有第三方依赖库,且在.h文件中做了#import引入,改成在.m文件中#import引用即可。
1、file patterns: The `source_files` pattern did not match any file.
解决:检查你.podspec文件中s.source_files路径有没有填错。
源文件所在目录名称与xx.podspec文件保持同名,且在同一个层级。
2、file patterns: The `public_header_files` pattern did not match any file.
解决:检查你.podspec文件中public_header_files路径有没有填错
源文件所在目录名称与xx.podspec文件保持同名,且在同一个层级。
3、[!] You need to register a session first.
解决:第一次使用时需要注册
(1)注册命令:
pod trunk register xxx@xxx.com 'yourname' --description='iMac' --verbose(2)查看邮箱验证
(3)查看命令:
pod trunk me
4、[!] The validator for Swift projects uses Swift 3.0 by default, if you are using a different version of swift you can use a `.swift-version` file to set the version for your Pod. For example to use Swift 2.3, run:
`echo "2.3" > .swift-version`.
解决:
echo "3.0" > .swift-version
5、[!] Unable to find a pod with name, author, summary, or description matching `CocoapodSpecDemo`
解决:
(1)删除缓存:
rm ~/Library/Caches/CocoaPods/search_index.json(2)再重输入搜索:
pod search xxxx
6、初次创建私有库时,如果没有创建LICENSE文件,则会造成执行"pod trunk push xxxx"命令时出错。
解决:在github的项目中,后续创建LICENSE文件。创建方法:进入github项目-选择<>code-Create new file-Name your file(LICENSE)-choose a license(MIT license)-Commit new file
7、使用pod lib lint ,或pod spec lint 进行校验文件时报错
- ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code. You can use `--verbose` for more information.
- ERROR | xcodebuild: /Users/zhangshaoyu/Library/Developer/Xcode/DerivedData/App-cojazwchykrvonefhcdkwuhxckoo/Build/Products/Release-iphonesimulator/SYImageBrowser/SYImageBrowser.framework/Headers/SYImageBrowseHelper.h:17:9: error: include of non-modular
header inside framework module 'SYImageBrowser.SYImageBrowseHelper' [-Werror,-Wnon-modular-include-in-framework-module]
解决:自建的私有库项目中有第三方依赖库,且在.h文件中做了#import引入,改成在.m文件中#import引用即可。
相关文章推荐
- github中创建自己的cocoapod私有库_xx.podspec文件内容
- github中创建自己的cocoapod私有库_实操
- [CocoaPod]基于私有仓库的pod创建问题
- 解决问题1:怎样创建空白项目后显示自己的故事板(控制板)
- 自己创建的非Activity类引用getResources()方法问题的解决方法
- 升级CocoaPod遇到ERROR: While executing gem ... (TypeError) no implicit conversion of nil into String问题的解决方法
- ios cocoapod安装以及常见问题解决
- EF(Entity Framework)发生错误”正在创建模型,此时不可使用上下文“的解决办法。 正在创建模型,此时不可使用上下文。如果在 OnModelCreating 方法内使用上下文或如果多个线程同时访问同一上下文实例,可能引发此异常。请注意不保证 DbContext 的实例成员和相关类是线程安全的。 临时解决了这个问题,在Context的构造函数中,禁用了自动初始化:
- 安装cocoapod以及问题解决
- mac CocoaPod安装常见问题以及解决方法
- iOS开发第三发库引入--cocoapod的使用及问题解决
- 自己创建的非Activity类引用getResources()方法问题的解决方法
- 使用Cocoapods创建私有podspec
- iOS CocoaPods iOS 'The sandbox is not sync with the Podfile.lock'问题解决
- 初窥Cocos2d-x(解决自己创建Cocos2d解决方案不能编译问题)
- 解决 CocoaPods pod install/pod update 更新慢的问题
- CocoaPods创建私有podspec
- 解决当打开Unity时 提示项目已经打开,而自己之前并没有打开过(可能之前异常关闭)的问题
- 利用Cocoapods创建基于SVN的私有库podspec
- 关于CocoaPod的遇到的一些问题解决方法