为什么CocoaPods 用不了 显示找不到这个库 项目还可以就是集成困难 集成头大
运行环境
- [x] iOS 设备:
iPhone/iPad/模拟器 - [x] 系统版本:
iOS 10.x - [x] Xcode 版本:
8.x - [x] QMUI iOS 版本:
1.x.x
具体问题描述
问题截图
https://github.com/QMUI/QMUI_iOS/issues/21
@batmanWeng 请问解决吗?解决的话我就 close 掉这个 issue 了
没有解决啊
请贴具体的报错信息,不然没有任何帮助。
Last login: Tue Jul 4 08:52:49 on console Weng:~ zs$ cd /Users/zs/Desktop/QMUIDemo Weng:QMUIDemo zs$ touch Podfile Weng:QMUIDemo zs$ pod install
[!] Invalid Podfile file: syntax error, unexpected ':', expecting end-of-input
platform: ios, '7.0'
^.
from /Users/zs/Desktop/QMUIDemo/Podfile:1
-------------------------------------------
platform: ios, '7.0'
pod 'QMUIKit'
-------------------------------------------
Weng:QMUIDemo zs$ pod install
Analyzing dependencies
[!] The dependency QMUIKit is not used in any concrete target.
Weng:QMUIDemo zs$
@batmanWeng 看你的信息好像是 Podfile 文件的语法写错了,麻烦确认一下?
[!] Invalid Podfile file: syntax error, unexpected ':', expecting end-of-input platform: ios, '7.0' ^.
看下面 显示搜不到这个框架
[!] The dependency QMUIKit is not used in any concrete target. Weng:QMUIDemo zs$
尝试 pod repo update 后再试试。
另外注意cocoapods 1.x的语法
platform :ios,'8.0' inhibit_all_warnings! use_frameworks!
target 'YourTarget' do pod 'QMUIKit', '1.7.2' end
问题已经解决了谢谢你