it fixes the issue It seems that it's CocoaPod bug. It creates target Pods-AppTests which depends on Pods-AppTests-ProtocolBuffers and Pods-AppTests-PocketSocket as target dependencies. Then AppTests target depends on this target: "Link Binary with Libraries" has libPods-AppTests.a.
I wish this help you @Campbell_Souped’s answer works great for tvOS-only projects, but if you try to also build for OS X, you’ll get an error that Bitcode is not supported. This version checks the platform before enabling Bitcode:
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.platform_name == :tvos || target.platform_name == :watchos then
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'YES'
Why can't Travis-CI find my cocoapod dependencies?
will help you I don't know why the pod install in my example was failing, but reverting back to the auto-generated .travis.yml fixed it. The only thing I had to modify was adding a the instructions under before_install: pod setup without this line - the pod lib lint failed with a specific error:
# * https://www.objc.io/issues/6-build-tools/travis-ci/
# * https://github.com/supermarin/xcpretty#usage
# cache: cocoapods
# podfile: Example/Podfile
- gem install cocoapods # Since Travis is not always on latest version
# Avoid error: Encountered an unknown error (uninitialized constant Concurrent::Promises) during validation
- gem update concurrent-ruby
- pod setup
# - pod install --project-directory=Example
- set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/MUXSDKImaListener.xcworkspace -scheme MUXSDKImaListener-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty
- pod lib lint