Discussion Forums  >  Xcode, Errors, Installing, Configuring

Replies: 5    Views: 1158

Crown Solutions
Aspiring developer
Profile
Posts: 463
Reg: Nov 11, 2011
MN
13,480
10/08/12 08:57 PM (13 years ago)

Duplicate Interface definition error

I am running a new build of an Ad-Hoc build and it is failing to build with a Semantic Issue. I am getting a Error that says - Duplicate interface definition for class 'BT_rotatingNavController' This is a 1.5 project that I am building in Xcode 4.5. I downloaded the source code again to get the updated layout and app delegate files, I replaced them in the referenced files and tried to build. This is now the error I get. I have tried to replace the listed file again and clean, but no luck. Any ideas?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
10/08/12 09:16 PM (13 years ago)
Not sure if this helps or not? http://stackoverflow.com/questions/5180232/duplicate-interface-declaration-for-class-test-coredataappdelegate Sounds like you have some sort of duplicate file or reference issue. Could it be that you've accidentally added the same file to your project twice?
 
Crown Solutions
Aspiring developer
Profile
Posts: 463
Reg: Nov 11, 2011
MN
13,480
like
10/08/12 09:57 PM (13 years ago)
Thanks David, I must have screwed up something with the reference. I tried removing the layout files again and adding them again to the project, and now I have 7 new errors, Apple Mach-O Linker Error? Tried taking out the files and referencing them again, but no luck. I think it is time for bed, been up since 5. I will look at it with a fresh set of eyes in the morning.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
10/08/12 11:20 PM (13 years ago)
No worries, you'll get it. "Apple Mach-O Linker" is almost always related to Frameworks (built in iOS frameworks) not included in the project. Check to see if any plugins you're using have special requirements and add the frameworks to your project as needed (easy in Xcode). It will be waiting for you tomorrow :-)
 
Crown Solutions
Aspiring developer
Profile
Posts: 463
Reg: Nov 11, 2011
MN
13,480
like
10/09/12 07:53 PM (13 years ago)
Well this turned out to be because I replaced the files above, but Xcode did not add them to the compile sources list when I added them again. I added the files and it run just fine. The problem now is, the reason I replaced the files in the project is to get rotation in iOS6 from my 1.5 app. Even with replacing the files, it will still not rotate?
 
Crown Solutions
Aspiring developer
Profile
Posts: 463
Reg: Nov 11, 2011
MN
13,480
like
10/09/12 07:55 PM (13 years ago)
dup
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.