Closed witekmikolajczak closed 6 months ago
@witekmikolajczak could you post the full error? I think there's more missing
I am seeing the same error with react-native-track-player@4.0.1
. I'm very new to React Native so I'm not sure how to help further.
I am seeing the same error with
react-native-track-player@4.0.1
. I'm very new to React Native so I'm not sure how to help further.
A full error message would help a lot!
Logs for a command npm run ios
: https://pastebin.com/JZ547efQ. Let me know if I can provide something else :)
Ok looks like the issue is this:
error: unable to infer complex closure return type; add explicit type to disambiguate
let result = try synchronizeThrows {
^
() -> <#Result#> in
This was also reported in here - like this person I see you're (well the original poster) also 2 versions behind on Xcode. My guess is their Swift syntax parser was not as advanced then and is throwing issues.
Is updating Xcode versions an option for you?
It is. I'll report back to you when I've upgraded the Xcode.
EDIT: Actually it requires OS upgrade too. I'm currently in rather slow network so it will take a while. I'll report back as soon as I've upgraded everything.
** BUILD FAILED **
The following build commands failed:
CompileSwift normal arm64 ios/Pods/SwiftAudioEx/Sources/SwiftAudioEx/QueuedAudioPlayer.swift (in target 'SwiftAudioEx' from project 'Pods')
CompileSwift normal arm64 ios/Pods/SwiftAudioEx/Sources/SwiftAudioEx/QueueManager.swift (in target 'SwiftAudioEx' from project 'Pods')
CompileSwift normal arm64 ios/Pods/SwiftAudioEx/Sources/SwiftAudioEx/RemoteCommandController/RemoteCommand.swift (in target 'SwiftAudioEx' from project 'Pods')
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'SwiftAudioEx' from project 'Pods')
(4 failures)
** BUILD FAILED ** The following build commands failed: CompileSwift normal arm64 ios/Pods/SwiftAudioEx/Sources/SwiftAudioEx/QueuedAudioPlayer.swift (in target 'SwiftAudioEx' from project 'Pods') CompileSwift normal arm64 ios/Pods/SwiftAudioEx/Sources/SwiftAudioEx/QueueManager.swift (in target 'SwiftAudioEx' from project 'Pods') CompileSwift normal arm64 ios/Pods/SwiftAudioEx/Sources/SwiftAudioEx/RemoteCommandController/RemoteCommand.swift (in target 'SwiftAudioEx' from project 'Pods') CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'SwiftAudioEx' from project 'Pods') (4 failures)
** BUILD FAILED ** The following build commands failed: CompileSwift normal arm64 ios/Pods/SwiftAudioEx/Sources/SwiftAudioEx/QueuedAudioPlayer.swift (in target 'SwiftAudioEx' from project 'Pods') CompileSwift normal arm64 ios/Pods/SwiftAudioEx/Sources/SwiftAudioEx/QueueManager.swift (in target 'SwiftAudioEx' from project 'Pods') CompileSwift normal arm64 ios/Pods/SwiftAudioEx/Sources/SwiftAudioEx/RemoteCommandController/RemoteCommand.swift (in target 'SwiftAudioEx' from project 'Pods') CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'SwiftAudioEx' from project 'Pods') (4 failures)
Any solution?
Describe the Bug After installing react-native-track-player and creating dummy.swift and creating a bridge, I get the following error:
/ios/Pods/SwiftAudioEx/Sources/SwiftAudioEx/QueueManager.swift (in target 'SwiftAudioEx' from project 'Pods')
Steps To Reproduce
Environment Info:
Solution
react-native-track-player@3.2