1

我已经为 tvOS ( https://github.com/Ponf/FPScrollingBanner )创建了自定义控件,并且正在尝试将其发布到 cocoapods 存储库中。当我使用pod lib lint它检查 podspec 时,下一个日志会失败:

Integrating target `Pods` (`../../../../var/folders/9w/9v94b0_j4l1b_802_my5vlc00000gn/T/CocoaPods/Lint/App.xcodeproj` project)
  Adding Build Phase 'Embed Pods Frameworks' to project.
  Adding Build Phase 'Copy Pods Resources' to project.
  Adding Build Phase 'Check Pods Manifest.lock' to project.
  - Running post install hooks
  Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.
   Building with xcodebuild.
xcodebuild clean build -workspace App.xcworkspace -scheme App -configuration Release CODE_SIGN_IDENTITY=- -sdk appletvsimulator
Build settings from command line:
    CODE_SIGN_IDENTITY = -
    SDKROOT = appletvsimulator9.1

=== CLEAN TARGET FPScrollingBanner OF PROJECT Pods WITH CONFIGURATION Release ===

Check dependencies
target 'FPScrollingBanner' has bitcode disabled (ENABLE_BITCODE = NO), but it is required for the 'appletvos' platform

** CLEAN FAILED **


The following build commands failed:
    Check dependencies
(1 failure)
=== BUILD TARGET FPScrollingBanner OF PROJECT Pods WITH CONFIGURATION Release ===

Check dependencies
target 'FPScrollingBanner' has bitcode disabled (ENABLE_BITCODE = NO), but it is required for the 'appletvos' platform

** BUILD FAILED **


The following build commands failed:
    Check dependencies
(1 failure)
 -> FPScrollingBanner (1.0.0)
    - ERROR | [tvOS] xcodebuild: Returned an unsuccessful exit code.

Pods workspace available at `/var/folders/9w/9v94b0_j4l1b_802_my5vlc00000gn/T/CocoaPods/Lint/App.xcworkspace` for inspection.

[!] FPScrollingBanner did not pass validation, due to 1 error.

/Users/filipp/projects/CocoaPods/lib/cocoapods/command/lib.rb:181:in `block in run'
/Users/filipp/projects/CocoaPods/lib/cocoapods/command/lib.rb:153:in `each'
/Users/filipp/projects/CocoaPods/lib/cocoapods/command/lib.rb:153:in `run'
/Users/filipp/.rvm/gems/ruby-2.0.0-p643/bundler/gems/CLAide-4ded02e52c34/lib/claide/command.rb:312:in `run'
/Users/filipp/projects/CocoaPods/lib/cocoapods/command.rb:48:in `run'
/Users/filipp/projects/CocoaPods/bin/pod:44:in `<main>'

所以我可以看到,问题是target 'FPScrollingBanner' has bitcode disabled (ENABLE_BITCODE = NO), but it is required for the 'appletvos' platform。当我App.workspace用 Xcode 打开时,它根本没有bitcode选择。

Xcode 版本: 7.2

Cocoapods从最新的 master 分支构建,并指定了最新的 CocoaPods Core。

4

2 回答 2

0

也许你可以设置 *.podspec 文件:

s.xcconfig = {
   'ENABLE_BITCODE' => 'NO'
}

在我的 *.podspec 中,添加这将设置框架 BITCODE 禁用。

于 2018-12-19T09:39:08.827 回答
0

我已经回退到 cocoapods 版本0.39.0,并且错误不再重现。看起来当前主分支中的某些内容已损坏。

于 2015-12-18T13:35:09.497 回答