Xcode/Cocoapods Project messed up after adding a TVOS Target and changing Podfile structure
<p>I'm working on a larger project(Swift) with some Pods and everything was fine so far...
Bu now I wanted to add a tvos target and now my project is messed up :(</p>
<p>And there is an easy way to reproduce:</p>
<p>1.) create a new SingleView Application and name it &quot;pod-test&quot; in Xcode</p>
<p>2.) open it an run it</p>
<p>3.) run pod init to create the Podfile</p>
<p>4.) Edit the Podfile with this:
use_frameworks!
platform :ios, '8.0'</p>
<pre><code>pod 'Alamofire'
pod 'ObjectMapper'
pod 'AlamofireObjectMapper'

pod 'Fabric'
pod 'Crashlytics'

pod 'Nuke'
pod 'MGSwipeTableCell'
pod 'GradientCircularProgress', :git =&gt; 'https://github.com/keygx/GradientCircularProgress'

pod 'Reveal-iOS-SDK', :configurations =&gt; ['Debug']
</code></pre>
<p>5.) run pod install</p>
<p>6.) open workspace project file an run the application</p>
<p>7.) now add the twos target and name it &quot;pod-test-tvos&quot;</p>
<p>8.) run iOS and tvos app. Everything still fine</p>
<p>9.) edit the Podfile with this:</p>
<pre><code>source 'https://github.com/CocoaPods/Specs.git'


target 'pod-test' do
    use_frameworks!
    platform :ios, '8.0'

    pod 'Alamofire'
    pod 'ObjectMapper'
    pod 'AlamofireObjectMapper'

    pod 'Fabric'
    pod 'Crashlytics'

    pod 'Nuke'
    pod 'MGSwipeTableCell'
    pod 'GradientCircularProgress', :git =&gt; 'https://github.com/keygx/GradientCircularProgress'

    pod 'Reveal-iOS-SDK', :configurations =&gt; ['Debug']
end

target 'pod-test-tvos' do
    use_frameworks!
    platform :tvos, '9.0'

    pod 'Fabric'
    pod 'Crashlytics'

end
</code></pre>
<p>10.) Edit configuration for pod-test and pod-test-tvos to none</p>
<p>10.) close XCode</p>
<p>11.) run pod install again</p>
<p>12.) Open Xcode again</p>
<p>13.) run iOS and TVOS apps again... Still everything is fine</p>
<p>14.) edit &quot;AppDelegate&quot; for both targets and add just this import:</p>
<pre><code>import Fabric
</code></pre>
<p>15.) run iOS and TVOS apps again... and boom... iOS runs fine TVOS says Fabric is not found :(</p>
<p>This all just happens, because I &quot;changed&quot; the Podfile after adding the TVOS target...</p>
<p>With just this steps everything is fine:</p>
<p>1.) create a new SingleView Application and name it &quot;pod-test&quot; in Xcode</p>
<p>2.) now add the twos target and name it &quot;pod-test-tkos&quot;</p>
<p>3.) run pod init to create the Podfile</p>
<p>4.) edit the Podfile with this:</p>
<pre><code>source 'https://github.com/CocoaPods/Specs.git'


target 'pod-test' do
    use_frameworks!
    platform :ios, '8.0'

    pod 'Alamofire'
    pod 'ObjectMapper'
    pod 'AlamofireObjectMapper'

    pod 'Fabric'
    pod 'Crashlytics'

    pod 'Nuke'
    pod 'MGSwipeTableCell'
    pod 'GradientCircularProgress', :git =&gt; 'https://github.com/keygx/GradientCircularProgress'

    pod 'Reveal-iOS-SDK', :configurations =&gt; ['Debug']
end

target 'pod-test-tvos' do
    use_frameworks!
    platform :tvos, '9.0'

    pod 'Fabric'
    pod 'Crashlytics'

end
</code></pre>
<p>5.) run pod install</p>
<p>6.) open workspace project file an run the application</p>
<p>7.) edit &quot;AppDelegate&quot; for both targets and add just this import:</p>
<pre><code>import Fabric
</code></pre>
<p>8.) run iOS and TVOS apps again... Still everything is fine</p>
<p>So, there seems to be a problem with changing the Podfile in an &quot;older&quot; Project...</p>
<p>I hope somebody can help me out with this :)</p>