react-native-track-player: XCode 13 IOS build breaks because of React Native Track Player
Describe the bug React Native Track Player in XCode 13 causes our IOS build to fail. Iโm seeing reproducible results to this thread and am able to change the react-native-track-player deployment target to make my build work again.
Also had the same problem (xCode 13.0 beta 5 (13A5212g) ) only with types that are available from iOS13. Managed to workaround it by increasing the iOS deployment target to 13 of submodule, which in turn asked to increase the project iOS version, which gave a lot of warnings but no errors, so I was able to build my App and test it.
This works for me now, but definitely not a right solution, just a temporary. Lets hope for the fix in the next release.
Posted 1 month ago by Randja
(change this from 10.0 to 13.0 and the app builds again)

To Reproduce Run current project with release v2.0.1 with XCode 13 build. The project is proprietary, but I am willing to chat to help resolve the issue! Can be easily persuaded to help fix if its an easy fix ๐
Environment (please complete the following information):
Run react-native info in your project and share the content.
System:
OS: macOS 11.5.2
CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
Memory: 1.83 GB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 14.17.1 - /usr/local/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 7.18.1 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.10.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 15.0, DriverKit 20.4, macOS 11.3, tvOS 15.0, watchOS 8.0
Android SDK:
API Levels: 25, 28, 29, 30
Build Tools: 28.0.3, 29.0.2, 29.0.3, 30.0.2, 30.0.3
System Images: android-29 | Google Play Intel x86 Atom, android-30 | Google APIs Intel x86 Atom, android-30 | Google Play Intel x86 Atom
Android NDK: Not Found
IDEs:
Android Studio: 4.1 AI-201.8743.12.41.6953283
Xcode: 13.0/13A233 - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_272 - /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/bin/javac
npmPackages:
@react-native-community/cli: ^5.0.1 => 5.0.1
react: 17.0.1 => 17.0.1
react-native: 0.64.2 => 0.64.2
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
What react-native-track-player version are you using?
โ mobile git:(development) โ yarn list react-native-track-player
yarn list v1.22.10
warning ../package.json: No license field
warning Filtering by arguments is deprecated. Please use the pattern option instead.
โโ react-native-track-player@2.0.1
Are you testing on a real device or in the simulator? Which OS version are you running? iPhone 11 Simulator (iOS 15.0)
Code Installation correctly followed and deployed into our production environment. Has been working until today!
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 3
- Comments: 17 (2 by maintainers)
I fixed this error by upgrading from v2.0.3 to 2.1.0, and then upgrading my pod file target and deployment target to 11.0 (from 10.0).
Finally, I fixed this issue. To solve this issue, please do these step.
Hi folks ๐ Support for Xcode 13 has landed in
v2.1.0. Thereโs also been been other improvements and fixes for iOS 15 so we really recommend that you move to the latest2.X.Xversion.I will close this issue as there has been a fix shipped.
My project started failing as well after the upgrade. Iโm currently not 100% certain it is this package, but came across this issue when investigating the root cause.