首页 文章

Alamofire - 不进行代码签名,因为其设置未在Xcode 8中指定开发团队

提问于
浏览
4

我在Xcode 8上点击了下面的错误,每个人都可以帮忙解决它 . 我的应用程序需要支持iOS 8及更高版本 .

Alamofire不会进行代码签名,因为其设置未指定开发团队 . 对于使用Swift的目标,需要正确配置“使用Legacy Swift语言版本”(SWIFT_VERSION) . 使用[Edit> Convert> To Current Swift Syntax ...]菜单选择Swift版本或使用Build Settings编辑器直接配置构建设置 .

谢谢

2 回答

  • 6

    更新后的Alamofire和Xcode 8对我的影响如下:

    1)通过 <yourproject>.xcworkspace 文件打开您的项目

    2)转到Pods - > Targets - > Alamofire - > Build Settings并设置以下属性:

    enter image description here

    我认为这与新的Alamofire 4.0由于Swift 3 / Xcode 8是一个非常大的更新这一事实有关 . 我在更新之前没有出现过错误 .

    PS你的错误信息的第一部分"Alamofire will not be code signed because its settings don't specify a development team."在我的情况下似乎是一个单独的东西,要么得到解决,因为我做了几次直到Alamofire实际更新或由于我上面提到的设置 . 无论哪种方式,两件事都清除了我 .

  • 9

    将其添加到Podfile的末尾,以设置每个pod的构建配置以使用最新版本的Swift:

    post_install do |installer|
      installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
          config.build_settings['SWIFT_VERSION'] = '3.0'
        end
      end
    end
    

相关问题