无法安装 pod



我正在尝试安装一个 pod。以下是我的 Podfile(我的项目名称是 NLP(:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
def pod_target
    pod 'Alamofire','~>4.4'
end
target 'NLP' do
    use_frameworks!
    pod_target
    pod 'KFSwiftImageLoader'
    pod 'FMDB'
    pod 'Fabric'
    pod 'Crashlytics'
    pod 'Charts'
    pod 'OpenSSL-Universal'
end
target 'SwaggerRolesAndPolicies' do
    use_frameworks!
    pod_target
end
target 'SwaggerUserProfile' do
    use_frameworks!
    pod_target
end
target 'SwaggerNextStudent' do
    use_frameworks!
    pod_target
end
target 'SwaggerLogin' do
    use_frameworks!
    pod_target
end
target 'SwaggerNextAttendance' do
    use_frameworks!
    pod_target
end
target 'SwaggerNextFee' do
    use_frameworks!
    pod_target
end
target 'SwaggerNextStaff' do
    use_frameworks!
    pod_target
end

当我尝试安装 pod 时,会发生以下情况:

Preparing
Analyzing dependencies
Inspecting targets to integrate
  Using `ARCHS` setting to build architectures of target `Pods-NLP`: (``)
  Using `ARCHS` setting to build architectures of target
  `Pods-SwaggerRolesAndPolicies`: (``)
  Using `ARCHS` setting to build architectures of target
  `Pods-SwaggerUserProfile`: (``)
  Using `ARCHS` setting to build architectures of target
  `Pods-SwaggerNextStudent`: (``)
  Using `ARCHS` setting to build architectures of target `Pods-SwaggerLogin`:
  (``)
  Using `ARCHS` setting to build architectures of target
  `Pods-SwaggerNextAttendance`: (``)
  Using `ARCHS` setting to build architectures of target `Pods-SwaggerNextFee`:
  (``)
  Using `ARCHS` setting to build architectures of target
  `Pods-SwaggerNextStaff`: (``)
Finding Podfile changes
  A OpenSSL-Universal
  - Alamofire
  - Charts
  - Crashlytics
  - FMDB
  - Fabric
  - KFSwiftImageLoader
Resolving dependencies of `Podfile`
Comparing resolved specification to the sandbox manifest
  A OpenSSL-Universal
  - Alamofire
  - Charts
  - Crashlytics
  - FMDB
  - Fabric
  - KFSwiftImageLoader
Downloading dependencies
-> Using Alamofire (4.4.0)
-> Using Charts (3.0.1)
-> Using Crashlytics (3.8.4)
-> Using FMDB (2.6.2)
-> Using Fabric (1.6.11)
-> Using KFSwiftImageLoader (3.0.0)
-> Installing OpenSSL-Universal (1.0.2.10)
 > Git download
 > Git download
     $ /usr/bin/git clone https://github.com/krzyzanowskim/OpenSSL.git
     /var/folders/nz/8hrtwpzd5dj617b_38nqrw940000gn/T/d20170523-2509-vg335k
     --template= --single-branch --depth 1 --branch 1.0.2.10
     Cloning into '/var/folders/nz/8hrtwpzd5dj617b_38nqrw940000gn/T/d20170523-2509-vg335k'...

在这一点上,它正在受到打击。可能是什么错误,我该如何解决?仅当添加 OpenSSL-Universal Pod 时,才会出现此错误。我的 xcode 版本是 8.3.2。

在 podfile 的末尾添加以下代码。它可能会解决问题。

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

谢谢。。

最新更新