没有这样的模块' MyFramework'

时间:2017-06-15 22:00:36

标签: ios cocoapods

我正在尝试创建可可触摸框架 这是它的podspec:

Pod::Spec.new do |s|
s.platform = :ios
s.ios.deployment_target = '9.0'
s.name = "MyFramework"
s.summary = "My first framework."
s.requires_arc = true
s.version = "1.0.8"
s.license = { :type => "MIT", :file => "LICENSE" }
s.authors = { "....." => '...' }
s.homepage = "https://github.com/......"
s.source = { :git => "https://github.com/.......", :tag => "#{s.version}"}
s.dependency 'AFNetworking', '~> 3.0'
s.source_files = 'MyFramework/**/*.{h,m}'
s.resources = "MyFramework/**/*"

end

但是当我在另一个项目pod文件中使用它时:

 source 'https://github.com/CocoaPods/Specs.git'
 source '[MyFramework URL]'
 target 'new project' do
 use_frameworks!
  pod 'MyFramework'
 end

我得到了那个错误"没有这样的模块' MyFramework' "在尝试导入时

0 个答案:

没有答案