Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old May 25, 2011, 03:55 PM   #1
hssky97
macrumors regular
 
Join Date: Jan 2010
Xcode 7235 errors!!!!! HELP!

Hey everyone, I have been programming in Xcode for a couple months now. I have been making a few apps to test out, I started one today and it told me that their was 7235 errors! I looked over my code their was no errors on my part, then I clicked the error log and it looked like the ENTIRE foundation.framework was messed up! Here's an example; FOUNDATION_EXPORT NSUInteger NSRoundUpToMultipleOfPageSize(NSUInteger bytes); Expected '=' ,' . ' ' ; ' ,' 'asm' or '_attribute_' before 'NSUInteger'. So, basically it's that times 7235. So what should I do.....re-install foundation.framework or what?
__________________
"Be the change you wish to see in the world" -Gandhi
hssky97 is offline   0 Reply With Quote
Old May 26, 2011, 12:17 AM   #2
xStep
macrumors 68000
 
Join Date: Jan 2003
Location: Indianapolis, for an unknown time
I would first confirm if this affects your past apps. If not, then trying to reinstall the framework doesn't make sense. It would also confirm your source just an an issue.

I don't even know if there is a way to reinstall just a framework. Perhaps you'd have to reinstall all of Xcode.
xStep is offline   0 Reply With Quote
Old May 26, 2011, 02:46 AM   #3
jnoxx
macrumors 65816
 
jnoxx's Avatar
 
Join Date: Dec 2010
Location: Aartselaar // Antwerp // Belgium
Have u tried readding the framework to your build phases? or just create a new project and see what's wrong?
jnoxx is offline   0 Reply With Quote
Old May 26, 2011, 01:22 PM   #4
RonC
macrumors regular
 
Join Date: Oct 2007
Location: Chicago-area
Are all of these errors in one file?
Are all of these errors in files that share a header file that you created?

It smells like there's an extraneous character in one of your files, hiding in front of a #import statement, that's causing the preprocessor to barf on the foundation header file.

Before you go about reinstalling Xcode only to find that the problem is still there, post a little bit of the code here and let some fresh eyes take a quick peek.

Ron
RonC is offline   0 Reply With Quote
Old May 26, 2011, 04:27 PM   #5
hssky97
Thread Starter
macrumors regular
 
Join Date: Jan 2010
Quote:
Originally Posted by xStep View Post
I would first confirm if this affects your past apps. If not, then trying to reinstall the framework doesn't make sense. It would also confirm your source just an an issue.

I don't even know if there is a way to reinstall just a framework. Perhaps you'd have to reinstall all of Xcode.
It doesn't affect my previous apps....hmmm. So I don't think I would need to re-install anything.
__________________
"Be the change you wish to see in the world" -Gandhi
hssky97 is offline   0 Reply With Quote
Old May 26, 2011, 04:30 PM   #6
hssky97
Thread Starter
macrumors regular
 
Join Date: Jan 2010
Quote:
Originally Posted by RonC View Post
Are all of these errors in one file?
Are all of these errors in files that share a header file that you created?

It smells like there's an extraneous character in one of your files, hiding in front of a #import statement, that's causing the preprocessor to barf on the foundation header file.

Before you go about reinstalling Xcode only to find that the problem is still there, post a little bit of the code here and let some fresh eyes take a quick peek.

Ron
I have no idea what is going on! All of my previous apps work... it the pch. file that I think is creating the problem....I just don't know how to solve it??
I'll take some screenshots then post them here afterwords.
__________________
"Be the change you wish to see in the world" -Gandhi
hssky97 is offline   0 Reply With Quote
Old May 26, 2011, 04:41 PM   #7
hssky97
Thread Starter
macrumors regular
 
Join Date: Jan 2010
Photos

.pch file



Errors






__________________
"Be the change you wish to see in the world" -Gandhi
hssky97 is offline   0 Reply With Quote
Old May 26, 2011, 05:32 PM   #8
chown33
macrumors 601
 
Join Date: Aug 2009
Look at the error right before one of the Expected '='... errors, in the 3rd screenshot, I think.
It says Invalid preprocessing directive #indef.

Fix your spelling. I can't tell whether it should be #ifdef or #ifndef, but definitely not #indef.
chown33 is offline   0 Reply With Quote
Old May 26, 2011, 05:58 PM   #9
xStep
macrumors 68000
 
Join Date: Jan 2003
Location: Indianapolis, for an unknown time
Quote:
Originally Posted by hssky97 View Post
.pch file
If your other apps are not having this problem, then the problem is specific to your new apps source code. Now that you've shown us how the errors report on Apples include files, show us your source and any errors report on it. I think specifically the includes, imports, and @interface & @implementation lines. More broadly, the interface .h files and the source of the implementation file from the top down to and include the @implementation line.

My suspicion (wild guess) is that you have some rouge character between the top of a source file and down to a @interface & @implementation line. Maybe even you @interface & @implementation lines are not correctly formatted.

EDIT: I see chown33 has a very sharp eye.
xStep is offline   0 Reply With Quote
Old May 26, 2011, 06:18 PM   #10
hssky97
Thread Starter
macrumors regular
 
Join Date: Jan 2010
Quote:
Originally Posted by chown33 View Post
Look at the error right before one of the Expected '='... errors, in the 3rd screenshot, I think.
It says Invalid preprocessing directive #indef.

Fix your spelling. I can't tell whether it should be #ifdef or #ifndef, but definitely not #indef.

Not Workin'
__________________
"Be the change you wish to see in the world" -Gandhi
hssky97 is offline   0 Reply With Quote
Old May 26, 2011, 06:33 PM   #11
hssky97
Thread Starter
macrumors regular
 
Join Date: Jan 2010
Good news.....and bad news

As I have said previously it was the .pch file that was causing the problem.... so I deleted it from the project to see what would happen.
The Good News the +7,000 errors went away! The code for the .pch file matches the code from previous apps line-by-line so why would it not work on new projects I'm starting? The Bad News I need that file for the app to function and I received only one error that looked like this;

Command/Volumes/Developer/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1

Soooo....how do I fix?????
__________________
"Be the change you wish to see in the world" -Gandhi
hssky97 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Xcode 4.1 'Run' won't work.. DoodlyDoo Mac Applications and Mac App Store 0 Sep 26, 2011 09:49 AM
changing Base SDK in xcode started giving errors hrishidev Mac Programming 4 Apr 21, 2011 01:29 AM
PLease, Please HELP! I Have an error that I cannot Fix!!! Patoma16 iPhone/iPad Programming 5 Feb 16, 2011 09:03 PM
Need Help....New Project Xcode internal error NSG10 Mac Programming 4 Aug 28, 2010 08:23 PM
Xcode exited error 5... help me! ŠApple Mac Programming 3 Jan 13, 2010 01:59 PM


All times are GMT -5. The time now is 03:04 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC