无法上传我的pod使用CocoaPods V1.0.0.beta.2

时间:2016-01-21 13:09:45

标签: frameworks cocoapods

我的podspec文件如下所示

Pod::Spec.new do |s| 


s.name = "LTFramework1" 


s.version = "0.0.1" 


s.summary = "CocoaPods 测试." 


s.homepage = "https://github.com/limaofuyuanzhang/LTFramework1" 


s.license = "MIT" 


s.author = { "limaofuyuanzhang" => "397524331@qq.com" } 


s.social_media_url ="http://limaofuyuanzhang.gitcafe.io" 


s.ios.deployment_target = '8.0'


s.source = { :git => "https://github.com/limaofuyuanzhang/LTFramework1.git", :tag => "0.0.1" } 

s.vendored_framework = "**/LTFramework1.framework"

s.requires_arc = true  
end

我可以使用它将我的框架帐户上传到CocoaPods 0.39.0,但是当我将CocoaPods更新为1.0.0.beta.2时,podsepc无效。下面的错误

/var/folders/d3/vxynt1496_34x3mt_576n4mm0000gn/T/CocoaPods/Lint/App/main.m:3:9: fatal error: module 'LTFramework1' not found
@import LTFramework1;
 ~~~~~~~^~~~~~~~~~~~
1 error generated.

** BUILD FAILED **


The following build commands failed:
    CompileC /Users/lintao/Library/Developer/Xcode/DerivedData/App-extnutajzsresacludgticynatpq/Build/Intermediates/App.build/Release-iphonesimulator/App.build/Objects-normal/i386/main.o App/main.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    CompileC /Users/lintao/Library/Developer/Xcode/DerivedData/App-extnutajzsresacludgticynatpq/Build/Intermediates/App.build/Release-iphonesimulator/App.build/Objects-normal/x86_64/main.o App/main.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)
 -> LTFramework1 (0.0.1)
    - ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code.
    - NOTE  | xcodebuild:  /var/folders/d3/vxynt1496_34x3mt_576n4mm0000gn/T/CocoaPods/Lint/App/main.m:3:9: fatal error: module 'LTFramework1' not found

Analyzed 1 pods

我认为我的podspec缺少一些东西,但我在官方网站上找不到它。

1 个答案:

答案 0 :(得分:0)

问题已经解决了。我犯了一个错误。我只是想学习推送我的框架,所以我只是将一个旧框架重命名为LTFramework1而不是创建一个新框架。这个框架不能使用{ {1}}在项目中,但可以是用户@import LTFramework1。我认为当用户@import <LTFramework1/xxx.h>时,某处在CocoaPods 0.39.0中使用pod lib lint但在CocoaPods 1.0中使用@import <LTFramework1/xxx.h>。 0.beta.2。

我仍在研究@import LTFramework1@import module之间的区别。我尝试将标题重命名为@import <>,但它不起作用。

无论如何,非常感谢你的观点。我的英语很差,请原谅我。