title: error: Segmentation fault: 11 (in target 'RxSwift' from project 'RxSwift')
body: <p>I have just created my first project in <code>RxSwift</code>. The sample project named is <code>RxSwift</code> and added below pods in <code>Podfile</code> following the <a href="https://github.com/ReactiveX/RxSwift" rel="nofollow noreferrer">guidelines here</a>.</p>
  <h3>Podfile:</h3>
  <pre><code># Podfile
  use_frameworks!
  
  target 'RxSwift' do
      pod 'RxSwift', '~&gt; 5'
      pod 'RxCocoa', '~&gt; 5'
  end
  
  # RxTest and RxBlocking make the most sense in the context of unit/integration tests
  target 'RxSwiftTests' do
      pod 'RxBlocking', '~&gt; 5'
      pod 'RxTest', '~&gt; 5'
  end
  </code></pre>
  <h3>RxSwift - Host App:</h3>
  <p>I have just added <code>import RxCocoa</code> in my <code>ViewController</code> (of default sample template) and tried to build. Result is a build error. <strong>What am I missing?</strong></p>
  <h3>Build Error:</h3>
  <blockquote>
  <p>error: Segmentation fault: 11 (in target 'RxSwift' from project 'RxSwift')</p>
  </blockquote>
  <p><strong>Details</strong>:</p>
  <pre><code>0  swift                    0x0000000104e4eeb3 PrintStackTraceSignalHandler(void*) + 51
  1  swift                    0x0000000104e4e686 SignalHandler(int) + 358
  2  libsystem_platform.dylib 0x00007fff75877b5d _sigtramp + 29
  3  libsystem_platform.dylib 000000000000000000 _sigtramp + 2323154112
  4  swift                    0x00000001017645ff swift::SerializedModuleLoaderBase::loadModule(swift::SourceLoc, llvm::ArrayRef&lt;std::__1::pair&lt;swift::Identifier, swift::SourceLoc&gt; &gt;) + 463
  5  swift                    0x000000010158a340 swift::performNameBinding(swift::SourceFile&amp;, unsigned int) + 3136
  6  swift                    0x0000000100da7c08 swift::CompilerInstance::performSemaUpTo(swift::SourceFile::ASTStage_t) + 3608
  7  swift                    0x0000000100a9db6f performCompile(swift::CompilerInstance&amp;, swift::CompilerInvocation&amp;, llvm::ArrayRef&lt;char const*&gt;, int&amp;, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 815
  8  swift                    0x0000000100a9a034 swift::performFrontend(llvm::ArrayRef&lt;char const*&gt;, char const*, void*, swift::FrontendObserver*) + 6820
  9  swift                    0x0000000100a275a3 main + 1219
  10 libdyld.dylib            0x00007fff7568c3d5 start + 1
  11 libdyld.dylib            0x000000000000005d start + 2325167241
  error: Segmentation fault: 11 (in target 'RxSwift' from project 'RxSwift')
  </code></pre>
  <hr />
  <p><strong>Note:</strong> I have not modified anything in host app side. I just imported <code>RxCocoa</code> in my <code>ViewController</code>. Also when I delete the import statement from the ViewController class, build is succeeding.</p>