The latest version of R.swift 5.0.3 when built on Xcode 10.2 under tvOS falls on:
:-1: Cycle inside _target_; building could produce unreliable results. This usually can be resolved by moving the target's Headers build phase before Compile Sources.
Cycle details:
→ Target '_target_' has compile command with input '/path/to/CollectionViewCell.xib'
○ Target '_target_': Ditto /Users/_user_/Library/Developer/Xcode/DerivedData/Project/Build/Intermediates.noindex/Project.build/Debug-appletvos/_target_.build/DerivedSources/_target_-Swift.h /Users/_user_/Library/Developer/Xcode/DerivedData/Project/Build/Intermediates.noindex/Project.build/Debug-appletvos/_target_.build/Objects-normal/arm64/_target_-Swift.h
○ Target '_target_' has compile command for Swift source files
○ That command depends on command in Target '_target_': script phase “R.swift”
○ Target '_target_' has compile command with input '/path/to/CollectionViewCell.xib'
Fixed by moving Phase up the list in Build Phases.
Most helpful comment
Fixed by moving Phase up the list in Build Phases.