ApplikeySolutions / PandoraPlayer

🅿️ PandoraPlayer is a lightweight music player for iOS, based on AudioKit and completely written in Swift.
https://applikeysolutions.com/
MIT License
1.19k stars 179 forks source link

Update Version. #21

Closed RockerHX closed 2 years ago

RockerHX commented 6 years ago

Update PandoraPlayer.podspec for run success. and remove error: Module compiled with Swift 4.0.2 cannot be imported in Swift 4.1.2

shmiftari commented 6 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?

RockerHX commented 6 years ago

@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.

shmiftari commented 6 years ago

@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.

RockerHX commented 6 years ago

@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) ?

shmiftari commented 6 years ago

@RockerHX you should go to Xcode->Preferences-Components and there you should add Swift 4.0.2 Let me know if it works.. screen shot 2018-07-10 at 11 14 54

RockerHX commented 6 years ago

I don't see your screenshot in Xcode->Preferences-Components. This is mine. image

shmiftari commented 6 years ago

@RockerHX https://swift.org/download/ in thins link you should go and download only Toolchains not xcode screen shot 2018-07-10 at 11 37 56

RockerHX commented 6 years ago

@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
shmiftari commented 6 years ago

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?

shmiftari commented 6 years ago

@RockerHX did you find any solution ?

RockerHX commented 6 years ago

@shmiftari No, I guess use swift 4.0.3 is't package libswiftAVFoundation.dylib to ipa...

RockerHX commented 6 years ago

@shmiftari success!!!

image

Demo: PandoraPlayerDemo.zip

shmiftari commented 6 years ago

@RockerHX Great! Which version of Xcode are you using?

RockerHX commented 6 years ago

@shmiftari Xcode Version 9.4.1 (9F2000): Swift 4.1.2

shmiftari commented 6 years ago

@RockerHX Thanks man! Is working..

RockerHX commented 6 years ago

@shmiftari 😊

mahadshahib commented 6 years ago

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?

RockerHX commented 6 years ago

@mahadshahib use this demo

letam245 commented 6 years ago

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.

screen shot 2018-10-16 at 10 20 19 am screen shot 2018-10-16 at 10 23 10 am screen shot 2018-10-16 at 10 51 26 am

Please help thanks a ton, I currently use Xcode Version 10.0 (10A255). I not sure which configuration that I'm missing