执行命令pod安装时,出现以下错误。无法通过'pod install'命令安装库
gsirn-021308:ApplePaySwag-Starter chandeln$ pod install
Analyzing dependencies
[!] Unable to find a target named `ApplePaySwag`, did find ` ` and `ApplePaySwagTests`.
这里是我的目录结构:
gsirn-021308:ApplePaySwag-Starter chandeln$ ls -l
total 16
[email protected] 16 chandeln staff 544 Oct 3 16:56 ApplePaySwag
[email protected] 5 chandeln staff 170 Oct 3 16:56 ApplePaySwag.xcodeproj
drwxr-xr-x 4 chandeln staff 136 Sep 15 15:38 ApplePaySwag.xcworkspace
[email protected] 4 chandeln staff 136 Sep 15 14:21 ApplePaySwagTests
[email protected] 1 chandeln staff 455 Oct 3 17:44 Podfile
-rw-r--r-- 1 chandeln staff 209 Sep 19 11:12 Podfile.lock
drwxr-xr-x 8 chandeln staff 272 Oct 3 17:44 Pods
gsirn-021308:ApplePaySwag-Starter chandeln$ pod --version
1.0.1
Podfile
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
target 'ApplePaySwag' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for ApplePaySwag
pod 'SwiftyJSON'
pod 'SwiftyXMLParser', :git => 'https://github.com/yahoojapan/SwiftyXMLParser.git'
target 'ApplePaySwagTests' do
inherit! :search_paths
# Pods for testing
end
end
不知道我是什么在这里失踪。请指导。
'xcodebuild -list'的输出是什么? –
这里的一个目标不是一个文件,它是一个在你的xcodeproj中描述的构建目标。打开xcworkspace,选择你的ApplePaySwag.xcodeproj,并在“General”,“Build settings”等栏里面,一直到左边,点击蓝色的xcodeproj图标,选择重命名看起来被命名为“ ”。 –
你可以发布你的Podfile代码吗? – Aaron