John Bridge
John Bridge

Reputation: 572

Undefined symbols for architecture i386: "_AudioServicesCreateSystemSoundID"

I am trying to make a soundboard app and i get this error

Undefined symbols for architecture i386:
      "_AudioServicesCreateSystemSoundID", referenced from:
          -[S0undFXViewController sound1] in S0undFXViewController.o
          -[S0undFXViewController sound2] in S0undFXViewController.o
          -[S0undFXViewController sound3] in S0undFXViewController.o
          -[S0undFXViewController sound4] in S0undFXViewController.o
          -[S0undFXViewController sound5] in S0undFXViewController.o
          -[S0undFXViewController sound6] in S0undFXViewController.o

Upvotes: 1

Views: 5193

Answers (1)

Abizern
Abizern

Reputation: 150715

That sort of error is usually caused by a missing framework.

Have you added the AudioServices framework to your project? It isn't enough to just import the header files.

Edit

Actually, if you turn on module support in Xcode, it is enough to just @import the Framework.

Upvotes: 9

Related Questions