Den*_*eny 7 frameworks static-libraries ios cocoapods swift
我的项目中有这个Podfile:
platform :ios, '8.0'
use_frameworks!
target 'FunnyApp' do
pod 'Alamofire', '~> 1.2'
pod 'SWXMLHash', '~> 1.0'
pod 'VaultKit', :path => './Frameworks/VaultKit'
pod 'SessionKit', :path => './Frameworks/SessionKit'
end
Run Code Online (Sandbox Code Playgroud)
只有VaultKit是用Objective-C编写的静态库.它有这个podspec:
Pod::Spec.new do |s|
s.name = 'VaultKit'
s.version = '0.1'
s.license = 'MIT'
s.summary = 'Encryption library'
s.homepage = 'https://someurl.com'
s.social_media_url = 'http://twitter.com/greenfish29'
s.authors = { 'Tomas Sliz' => 'greenfish29@email.com' }
s.source = { :git => 'git@github.org:greenfish29/vaultkit.git' }
s.ios.deployment_target = '8.0'
s.public_header_files = 'VaultKit/VaultKit.h'
s.source_files = "VaultKit/*.{h,m}" "VaultKit/Models/*.{h,m}"
s.requires_arc = true
end
Run Code Online (Sandbox Code Playgroud)
我的项目中也有这个记录的桥头:
#import <VaultKit/VaultKit.h>
Run Code Online (Sandbox Code Playgroud)
但是当我尝试构建项目时,我收到此错误:
FunnyApp-Bridging-Header.h:5:9:找不到'VaultKit.h'文件
有什么不对?
| 归档时间: |
|
| 查看次数: |
1513 次 |
| 最近记录: |