Closed RockerHX closed 2 years ago
Hey RockerHX, it's saying Build Succeeded but is not running the app! Could you please tell me what i'm doing wrong?
@shmiftari I can't run success, xcode show error like:
Swift Compiler Error
/PandoraPlayer/Pods/PandoraPlayer/Player/Classes/Controllers/PandoraPlayer.swift:10:8: Module compiled with Swift 4.0.2 cannot be imported in Swift 4.1.2: /PandoraPlayer/Pods/AudioKit/iOS/AudioKit.framework/Modules/AudioKit.swiftmodule/x86_64.swiftmodule
I guess is version issue. so I try update version.
I guess your problem is run library sucess, not run the application target.
@RockerHX i just fixed this problem (Module compiled with Swift 4.0.2 cannot be imported in Swift 4.1.2:) but is not installing the app. I'm trying to create in other xcode project but it showing just blank view with play button. I don't know why is not playing music and from where are calling music.
@shmiftari I know, I guess you should add play list. And how to fixed(Module compiled with Swift 4.0.2 cannot be imported in Swift 4.1.2) ?
@RockerHX you should go to Xcode->Preferences-Components and there you should add Swift 4.0.2 Let me know if it works..
I don't see your screenshot in Xcode->Preferences-Components. This is mine.
@RockerHX https://swift.org/download/ in thins link you should go and download only Toolchains not xcode
@shmiftari Perfect, build success.
Run crash, code:
let playerVC = PandoraPlayer.configure(withAVItems: [AVPlayerItem]())
navigationController?.present(playerVC, animated: true, completion: nil)
But what the fuck:
dyld: Library not loaded: @rpath/libswiftAVFoundation.dylib
Referenced from: /xx/xxx/Library/Developer/CoreSimulator/Devices/CF0BE840-3027-4B01-B724-BD6AE727FC17/data/Containers/Bundle/Application/3ED06A2A-91CB-41E9-BC39-0811E7E555AB/PandoraPlayerDemo.app/Frameworks/AudioKit.framework/AudioKit
Reason: Incompatible library version: AudioKit requires version 1.0.0 or later, but libswiftAVFoundation.dylib provides version 0.0.0
Yes i had the same issue but i add all of pandora class manually and with pods i did just pod 'AudioKit' . Are you trying with other project or with project from Github bc from here for me is just build success not installed?
@RockerHX did you find any solution ?
@shmiftari No, I guess use swift 4.0.3 is't package libswiftAVFoundation.dylib to ipa...
@shmiftari success!!!
Demo: PandoraPlayerDemo.zip
@RockerHX Great! Which version of Xcode are you using?
@shmiftari Xcode Version 9.4.1 (9F2000): Swift 4.1.2
@RockerHX Thanks man! Is working..
@shmiftari 😊
Guys can you explane to me exactly what you have done to run this? I really need it i installed toolchain and error goes away but how did you exactly handle run crash error?
hello, could you please let me know the steps I need to do to able to run this the app? I download the demo zip file and added in the pod 'PandoraPlayer' in pod file, when I run it, I have the error as screenshots. I download the toolchain Swift 4.1.2 and Swift 4.0.2 toolchain, when I run with 4.1.2 it has the error: "Module compiled with Swift 4.0.2 cannot be imported in Swift 4.1.2" when I run with 4.0.2 it appear for this error: "Command CompileSwiftSources failed with a nonzero exit code" - (screenshot)
I also included a screenshot of my podfile.
Please help thanks a ton, I currently use Xcode Version 10.0 (10A255). I not sure which configuration that I'm missing
Update PandoraPlayer.podspec for run success. and remove error: Module compiled with Swift 4.0.2 cannot be imported in Swift 4.1.2