TuningFork icon indicating copy to clipboard operation
TuningFork copied to clipboard

Not running under 10.11.1

Open ruurd opened this issue 10 years ago • 8 comments

Does not run under OS X 10.11.1 complaining it cannot find CsoundLib.framework. If I check in /System/Library/Frameworks it is not there.

ruurd avatar Oct 23 '15 18:10 ruurd

Are you trying to use it with an OS X target? What platform did you declare in your Podfile?

comyar avatar Oct 24 '15 01:10 comyar

Yes I'm trying to use it with an OSX target. Oh. Aha. I probably have to delve in Podfile semantics right? Do you have a ready made example perhaps?

ruurd avatar Oct 24 '15 14:10 ruurd

Hmm, I hadn't tested it with OS X...I'll play around with it and see if I can get it to work. Off the top of my head, maybe adding this to the top of you Podfile would make it work:

platform :osx, '10.11'

comyar avatar Oct 24 '15 20:10 comyar

Did that as soon as you mentioned the platform thing really. But it keeps insisting that...

dyld: Library not loaded: CsoundLib Referenced from: /Users/ruurd/Library/Developer/Xcode/DerivedData/Pitch-drpialrldipoaweagreggdlgcucp/Build/Products/Debug/AudioKit.framework/Versions/A/AudioKit Reason: image not found

ruurd avatar Oct 24 '15 22:10 ruurd

The basic issue is the path to the Csoundlib.framework doesn't get set correctly when using Cocoa Pods. The AudioKit framework normally runs this script in order to set the correct path, however I haven't been able to get it to work. I've also tried setting the Frameworks Search Path and adding Csoundlib.framework manually from within the Pods directory; neither of these worked either. I don't know enough about Xcode's building/linking process so I'll have to do some reading before we can implement the right solution for this.

comyar avatar Oct 25 '15 00:10 comyar

Can you try updating the pod dependencies? AudioKit guys pushed a new podspec for AudioKit 2.2.

ruurd avatar Oct 25 '15 22:10 ruurd

The podspec should pull in the latest version of AudioKit; if you delete Podfile.lock and the Pods/ directory, and re-run pod install then it should pull in 2.2. However, it looks like 2.2 still has the same issue (and also results in a compiler error within the Tuning Fork code, so that needs updating as well...).

comyar avatar Oct 25 '15 23:10 comyar

I have a PR if you want...

ruurd avatar Oct 26 '15 08:10 ruurd