Discussion Forums  >  Xcode, Errors, Installing, Configuring

Replies: 3    Views: 1262

mjhtx
Lost but trying
Profile
Posts: 7
Reg: Mar 02, 2012
Bridgeport, TX
70
04/13/12 11:39 AM (13 years ago)

XCode error Extra tokens at end of #import directive

I have 13 of these extra token errors in my app. When I double click the error, I get a message: Issue Extra tokens at end of #import directive Fix-it Insert "//" If that is an instruction, it sure doesn't help with the problem! Can anyone clarify this for me?
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
04/13/12 01:47 PM (13 years ago)
This thread my help, you'll see at the bottom the source code should be fixed...what bt version app you building and which version of Xcode? :) http://www.buzztouch.com/forum/thread.php?tid=5BA8CDB2F78D88E8E181400&status=&searchInput=search...&sortColumn=FT.id&sortUpDown=DESC&currentPage=2&doViews=1
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
04/14/12 03:08 AM (13 years ago)
I've heard of the download process screwing up some syntax (rare ocossion but has happened). Most "extra token" errors are errors the compiler finds when a line of code includes a ; (semi colon) after an #import directive. Like... #import "BT_item.h"; instead of... #import "BT_item.h" (no semi colon). Semi colons should not appear after import directives but again, the packager has inserted these on occasion. Click the error / warning in Xcode. If it leads you to an "#import line" I'll be you'll see a random ; where it should not be. Remove it, should fix it.
 
mjhtx
Lost but trying
Profile
Posts: 7
Reg: Mar 02, 2012
Bridgeport, TX
70
like
04/16/12 10:01 AM (13 years ago)
Thanks! Some were semicolons, others...I never figured out what they were...something invisible. However, if deleted the line of code that was there and then re-typed the same code, it cleaned it up. Moving on now to sematic issues. Wish me luck! mjhtx I love my students, or I wouldn't be building this app for them....
 

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.