问题1:
- ERROR | File Patterns: The MiaoPlusConnectSDK (0.0.1) spec is empty (no source files, resources, resource_bundles, preserve paths, vendored_libraries, vendored_frameworks, dependencies, nor subspecs).
解决方法:这个问题是podspec文件中没有sepc.source_files的语句,加上并写上文件路径。
问题2:
- ERROR | xcodebuild: Returned an unsuccessful exit code. You can use `--verbose` for more information.
解决方法:这个可以看终端窗口带有 - NOTE | xcodebuild:的提示,可能是找不到某个文件。
问题3:
- Use the `$(inherited)` flag, or
- Remove the build settings from the targe
解决方法:需要看下面的警告提示
image.png
需要在Target - > building settings中搜索header search path ,other link flags,分别添加$(inherited)
问题4:
zhangpengdeMacBook-Pro:TTProject ***$ pod install
Analyzing dependencies
[!] There may only be up to 1 unique SWIFT_VERSION per target. Found target(s) with multiple Swift versions:
TTProject: Swift
TTProject: Swift 3.0
[!] Smart quotes were detected and ignored in your Podfile. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes in your editor of choice.
解决方法: 工程->Build Settings -> 搜索swift_version ->设置swift_version3.0就好了
如下图
image.png
操作过程中,遇到的问题没有及时记录上,后期遇到继续补充上
网友评论