Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/107.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 由于1个错误,规范未通过验证_Ios_Swift_Cocoapods - Fatal编程技术网

Ios 由于1个错误,规范未通过验证

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

这是我的播客文件:

来源'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' 结束 结束 结束
在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