La bla bla
La bla bla

Reputation: 8718

Can't find AppDelegate.m

I'm having a weird issue with my xcode project.

I renamed my AppDelegate.m file to .mm, thinking I should implement c++ methods there, and changed my mind, moved the C++ calls to the view controller, and renamed AppDelegate to .m But now when I try to build (it built just fine when it was named .mm and before changing the names at all) it says that it can't find AppDelegate.m and won't launch.

I've verified that the AppDelegate.m is in the Compile Sources in the settings.. If you need any more details, please let me know, I doubt if there's a code I can post to help you guys..

A few things that I already tried:

All failed

Any ideas?

Thanks!

Upvotes: 0

Views: 1297

Answers (2)

Rio Moura
Rio Moura

Reputation: 1

In order to fix this, open the project in XCode, then navigate to Build Phases, in Compile Sources remove the AppDelegate.m file and add AppDelegate.mm instead.

Upvotes: 0

skytz
skytz

Reputation: 2201

Delete derived data. That usually does the trick with linking problems .

Upvotes: 2

Related Questions