Ios 由于1个错误,规范未通过验证
这是我的播客文件: 来源'https://github.com/CocoaPods/Specs.git' 使用你的框架! 目标'BSTableViewReorder_Example',:exclusive=>true do pod“BtableViewReorder”,路径=>“。/” 结束 目标'bTableViewReorder_Tests',:exclusive=>true do pod“BtableViewReorder”,路径=>“。/” 结束 安装后的do安装程序| installer.pods_project.targets.each do| target| target.build|u configurations.each do| config| config.build_设置['SWIFT_VERSION']='2.3' 结束 结束 结束Ios 由于1个错误,规范未通过验证,ios,swift,cocoapods,Ios,Swift,Cocoapods,这是我的播客文件: 来源'https://github.com/CocoaPods/Specs.git' 使用你的框架! 目标'BSTableViewReorder_Example',:exclusive=>true do pod“BtableViewReorder”,路径=>“。/” 结束 目标'bTableViewReorder_Tests',:exclusive=>true do pod“BtableViewReorder”,路径=>“。/” 结束 安装后的do安装程序| installe
在pod文件的末尾,尝试包含以下行: source 'https://github.com/CocoaPods/Specs.git' use_frameworks! target 'BSTableViewReorder_Example', :exclusive => true do pod "BSTableViewReorder", :path => "../" end target 'BSTableViewReorder_Tests', :exclusive => true do pod "BSTableViewReorder", :path => "../" end post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['SWIFT_VERSION'] = '2.3' end end end
并将“Legacy Swift…”设置为“是”尝试alt+command+shift+k,然后重新编译。我这样做了,但它仍然无法工作:(我更新了问题。仍然是相同的问题:
使用Swift 3.0编译的模块无法导入Swift 2.3
是否运行了pod集成和pod安装?我运行了,但我有一个错误。我刚刚添加到问题中的错误。
kuna@Cleverland:~/GIthub/BSTableViewReorder/Example$ pod install
[!] The specification of arguments as a string has been deprecated Pod::Command::Try: `NAME`
[!] Invalid `Podfile` file: [!] Unsupported options `{:exclusive=>true}` for target `BSTableViewReorder_Example`..
# from /Users/kuna/Github/BSTableViewReorder/Example/Podfile:4
# -------------------------------------------
#
> target 'BSTableViewReorder_Example', :exclusive => true do
# pod "BSTableViewReorder", :path => "../"
# -------------------------------------------
source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!
target 'BSTableViewReorder_Example', :exclusive => true do
pod "BSTableViewReorder", :path => "../"
end
target 'BSTableViewReorder_Tests', :exclusive => true do
pod "BSTableViewReorder", :path => "../"
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '2.3'
end
end
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '2.3'
end
end
end