title: How to install react-native-track-player
body: <p>I tried to install the react-native-track-player in a bare (just react-native init) App.</p>
  <p>After</p>
  <pre><code>yarn add react-native-track-player
  yarn add react-native-swift
  cd ios
  pod instal
  </code></pre>
  <p>I got the message:</p>
  <ul>
  <li>[!] CocoaPods could not find compatible versions for pod &quot;react-native-track-player&quot;:
  In Podfile:
  react-native-track-player (from <code>../node_modules/react-native-track-player</code>)
  Specs satisfying the <code>react-native-track-player (from </code>../node_modules/react-native-track-player<code>)</code> dependency were found, but they required a higher minimum deployment target.</li>
  </ul>
  <p>So I changed in the podfile</p>
  <pre><code>platform :ios, '9.0' to: platform :ios, '10.0'
  </code></pre>
  <p>and again</p>
  <pre><code>pod install
  </code></pre>
  <p>This results to the message:</p>
  <ul>
  <li>[!] Unable to determine Swift version for the following pods:
  <code>react-native-track-player</code> does not specify a Swift version and none of the targets (<code>mist</code>) integrating it have the <code>SWIFT_VERSION</code> attribute set. Please contact the author or set the <code>SWIFT_VERSION</code> attribute in at least one of the targets that integrate this pod.</li>
  </ul>
  <p>In the next step I added  s.swift_version = '4.0' to the react-native-track-player.podspec file in the node_modules.</p>
  <p>Now the react-native-track-player pod were generated with the warnings:</p>
  <ul>
  <li>[!] [Xcodeproj] Generated duplicate UUIDs:</li>
  </ul>
  <pre><code>PBXBuildFile -- Pods.xcodeproj/targets/buildConfigurationList:buildConfigurations:baseConfigurationReference:|,buildSettings:|,displayName:|,isa:|,name:|,,baseConfigurationReference:|,buildSettings:|,displayName:|,isa:|,name:|,,defaultConfigurationIsVisible:0,defaultConfigurationName:Release,displayName:ConfigurationList,isa:XCConfigurationList,,buildPhases:buildActionMask:2147483647,displayName:Headers,files:|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,isa:PBXHeadersBuildPhase,runOnlyForDeploymentPostprocessing:0,,buildActionMask:2147483647,displayName:Sources,files:|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,isa:PBXSourcesBuildPhase,runOnlyForDeploymentPostprocessing:0,,buildActionMask:2147483647,displayName:Frameworks,files:,isa:PBXFrameworksBuildPhase,runOnlyForDeploymentPostprocessing:0,,buildActionMask:2147483647,displayName:Copy generated compatibility header,files:,inputFileListPaths:,inputPaths:|,|,|,isa:PBXShellScriptBuildPhase,name:Copy generated compatibility header,outputFileListPaths:,outputPaths:|,|,|,runOnlyForDeploymentPostprocessing:0,shellPath:/bin/sh,shellScript:COMPATIBILITY_HEADER_PATH=&quot;${BUILT_PRODUCTS_DIR}/Swift Compatibility Header/${PRODUCT_MODULE_NAME}-Swift.h&quot;
  MODULE_MAP_PATH=&quot;${BUILT_PRODUCTS_DIR}/${PRODUCT_MODULE_NAME}.modulemap&quot;
  ditto &quot;${DERIVED_SOURCES_DIR}/${PRODUCT_MODULE_NAME}-Swift.h&quot; &quot;${COMPATIBILITY_HEADER_PATH}&quot;
  ditto &quot;${PODS_ROOT}/Headers/Public/react_native_track_player/react-native-track-player.modulemap&quot; &quot;${MODULE_MAP_PATH}&quot;
  ditto &quot;${PODS_ROOT}/Headers/Public/react_native_track_player/react-native-track-player-umbrella.h&quot; &quot;${BUILT_PRODUCTS_DIR}&quot;
  printf &quot;\n\nmodule ${PRODUCT_MODULE_NAME}.Swift {\n  header \&quot;${COMPATIBILITY_HEADER_PATH}\&quot;\n  requires objc\n}\n&quot; &gt;&gt; &quot;${MODULE_MAP_PATH}&quot;
  ,,buildRules:,dependencies:displayName:React,isa:PBXTargetDependency,,displayName:react-native-track-player,isa:PBXNativeTarget,name:react-native-track-player,packageProductDependencies:,productName:react-native-track-player,productReference:displayName:libreact-native-track-player.a,explicitFileType:archive.ar,includeInIndex:0,isa:PBXFileReference,name:libreact-native-track-player.a,path:libreact-native-track-player.a,sourceTree:BUILT_PRODUCTS_DIR,,productType:com.apple.product-type.l  ............
  
  </code></pre>
  <p>So I added &quot;install! 'cocoapods', :deterministic_uuids =&gt; false&quot; to the podfile</p>
  <p>Now pod install runs without warnings, but the build in xcode or react-native run-ios crashes with the error</p>
  <ul>
  <li>Command CompileSwiftSources failed with a nonzero exit code</li>
  </ul>
  <p>This is my configuration:</p>
  <pre><code>System:
  OS: macOS 10.15.3
  CPU: (6) x64 Intel(R) Core(TM) i5-8500B CPU @ 3.00GHz
  Memory: 68.81 MB / 8.00 GB
  Shell: 5.7.1 - /bin/zsh
  Binaries:
  Node: 13.8.0 - /usr/local/bin/node
  Yarn: 1.22.0 - /usr/local/bin/yarn
  npm: 6.13.7 - /usr/local/bin/npm
  Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
  iOS SDK:
  Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
  Android SDK:
  API Levels: 28, 29
  Build Tools: 28.0.3, 29.0.3
  System Images: android-28 | Intel x86 Atom_64, android-29 | Google Play Intel x86 Atom
  IDEs:
  Android Studio: 3.6 AI-192.7142.36.36.6200805
  Xcode: 11.3.1/11C504 - /usr/bin/xcodebuild
  npmPackages:
  react: ^16.12.0 =&gt; 16.12.0
  react-native: 0.61.5 =&gt; 0.61.5
  npmGlobalPackages:
  react-native-cli: 2.0.1
  </code></pre>
  <p>and the packages.json file</p>
  <pre><code>{
    &quot;name&quot;: &quot;first&quot;,
    &quot;version&quot;: &quot;0.0.1&quot;,
    &quot;private&quot;: true,
    &quot;scripts&quot;: {
      &quot;android&quot;: &quot;react-native run-android&quot;,
      &quot;ios&quot;: &quot;react-native run-ios&quot;,
      &quot;start&quot;: &quot;react-native start&quot;,
      &quot;test&quot;: &quot;jest&quot;,
      &quot;lint&quot;: &quot;eslint .&quot;
    },
    &quot;dependencies&quot;: {
      &quot;react&quot;: &quot;16.9.0&quot;,
      &quot;react-native&quot;: &quot;0.61.5&quot;,
      &quot;react-native-swift&quot;: &quot;^1.2.2&quot;,
      &quot;react-native-track-player&quot;: &quot;^1.2.2&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@babel/core&quot;: &quot;^7.8.4&quot;,
      &quot;@babel/runtime&quot;: &quot;^7.8.4&quot;,
      &quot;@react-native-community/eslint-config&quot;: &quot;^0.0.7&quot;,
      &quot;babel-jest&quot;: &quot;^25.1.0&quot;,
      &quot;eslint&quot;: &quot;^6.8.0&quot;,
      &quot;jest&quot;: &quot;^25.1.0&quot;,
      &quot;metro-react-native-babel-preset&quot;: &quot;^0.58.0&quot;,
      &quot;react-test-renderer&quot;: &quot;16.9.0&quot;
    },
    &quot;jest&quot;: {
      &quot;preset&quot;: &quot;react-native&quot;
    }
  }
  
  </code></pre>
  <p>and the ios/podfile</p>
  <pre><code>platform :ios, '10.0'
  require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
  install! 'cocoapods', :deterministic_uuids =&gt; false
  use_frameworks!
  
  target 'neu' do
    # Pods for neu
    pod 'FBLazyVector', :path =&gt; &quot;../node_modules/react-native/Libraries/FBLazyVector&quot;
    pod 'FBReactNativeSpec', :path =&gt; &quot;../node_modules/react-native/Libraries/FBReactNativeSpec&quot;
    pod 'RCTRequired', :path =&gt; &quot;../node_modules/react-native/Libraries/RCTRequired&quot;
    pod 'RCTTypeSafety', :path =&gt; &quot;../node_modules/react-native/Libraries/TypeSafety&quot;
    pod 'React', :path =&gt; '../node_modules/react-native/'
    pod 'React-Core', :path =&gt; '../node_modules/react-native/'
    pod 'React-CoreModules', :path =&gt; '../node_modules/react-native/React/CoreModules'
    pod 'React-Core/DevSupport', :path =&gt; '../node_modules/react-native/'
    pod 'React-RCTActionSheet', :path =&gt; '../node_modules/react-native/Libraries/ActionSheetIOS'
    pod 'React-RCTAnimation', :path =&gt; '../node_modules/react-native/Libraries/NativeAnimation'
    pod 'React-RCTBlob', :path =&gt; '../node_modules/react-native/Libraries/Blob'
    pod 'React-RCTImage', :path =&gt; '../node_modules/react-native/Libraries/Image'
    pod 'React-RCTLinking', :path =&gt; '../node_modules/react-native/Libraries/LinkingIOS'
    pod 'React-RCTNetwork', :path =&gt; '../node_modules/react-native/Libraries/Network'
    pod 'React-RCTSettings', :path =&gt; '../node_modules/react-native/Libraries/Settings'
    pod 'React-RCTText', :path =&gt; '../node_modules/react-native/Libraries/Text'
    pod 'React-RCTVibration', :path =&gt; '../node_modules/react-native/Libraries/Vibration'
    pod 'React-Core/RCTWebSocket', :path =&gt; '../node_modules/react-native/'
  
    pod 'React-cxxreact', :path =&gt; '../node_modules/react-native/ReactCommon/cxxreact'
    pod 'React-jsi', :path =&gt; '../node_modules/react-native/ReactCommon/jsi'
    pod 'React-jsiexecutor', :path =&gt; '../node_modules/react-native/ReactCommon/jsiexecutor'
    pod 'React-jsinspector', :path =&gt; '../node_modules/react-native/ReactCommon/jsinspector'
    pod 'ReactCommon/jscallinvoker', :path =&gt; &quot;../node_modules/react-native/ReactCommon&quot;
    pod 'ReactCommon/turbomodule/core', :path =&gt; &quot;../node_modules/react-native/ReactCommon&quot;
    pod 'Yoga', :path =&gt; '../node_modules/react-native/ReactCommon/yoga'
  
    pod 'DoubleConversion', :podspec =&gt; '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
    pod 'glog', :podspec =&gt; '../node_modules/react-native/third-party-podspecs/glog.podspec'
    pod 'Folly', :podspec =&gt; '../node_modules/react-native/third-party-podspecs/Folly.podspec'
  
    target 'neuTests' do
      inherit! :search_paths
      # Pods for testing
    end
  
    use_native_modules!
  end
  
  target 'neu-tvOS' do
    # Pods for neu-tvOS
  
    target 'neu-tvOSTests' do
      inherit! :search_paths
      # Pods for testing
    end
  
  end
  
  </code></pre>
  <p>I am stranded! Any ideas what's wrong?</p>