IPhone application using openAL works in the simulator, but not on the device

I added the openAL framework to my application and I use the sound engine which is in the CrashLanding demo. It works great on a simulator, but when I create it for my device, I get errors. It looks like no frames have been added. I tried: restart xcode; remove the framework and add it again; target cleaning; restart the computer. It still works on the simulator, but the device settings are not even compiled. Does anyone have any other ideas, or am I doing something wrong?

Here's a more specific error, now 17:

"_ alSourcePlay" referenced by:

SoundEngineEffect :: PlaybackProc (void *) in SoundEngine.o

SoundEngineEffect :: Start () in SoundEngine.o

In addition, CrashLanding works great on my device.

+3
source share
1 answer

Remove the added OpenAL structure.

Go to one of the other frameworks of your project, say, UIKit, right-click and "show in finder".

Drag OpenAL, which you'll find there in the Finder window, into Xcode under the Framework.

Now this will probably work ... sometimes when you say β€œAdd existing frameworks” it seems like he has chosen the wrong directory and you probably add the OpenA OS X infrastructure (which is great for the simulator).

+4
source

Source: https://habr.com/ru/post/1705448/


All Articles