Re: [SOLVED] xCode 2.2. broke my test target
Re: [SOLVED] xCode 2.2. broke my test target
- Subject: Re: [SOLVED] xCode 2.2. broke my test target
- From: Eric Albert <email@hidden>
- Date: Fri, 11 Nov 2005 20:31:41 -0800
You were including Objective-C headers in your precompiled header,
which was getting compiled for C. The C compiler doesn't speak
Objective-C, so you got an error.
The standard fix for this is to change the line(s) in your precompiled
header which are including Objective-C headers to only be included for
Objective-C. For example, change
#import <Foundation/Foundation.h>
to
#if __OBJC__
#import <Foundation/Foundation.h>
#endif
Hope this helps,
Eric
On Nov 11, 2005, at 4:52 PM, Miguel Arroz wrote:
Hi!
Ok, I had a .c file that, when changed to .m, fixed the problem...
why? I have no idea. But it works now!
Yours
Miguel Arroz
On 2005/11/11, at 23:47, Miguel Arroz wrote:
Hi!
When I try to build my tests target, I get the following errors.
The main target builds OK...
On xCode 2.1 I have made a link to the SenTestingFramework on the
10.3.9 SDK, and it worked fine. I created a new project on xCode 2.2,
targeted 10.3.9SDK, and created a new test target, and it built fine,
so I suppose the problem is something related to my project.
Here goes...
Building target “xSort tests” of project “CardSorting”
Checking Dependencies
PBXCp "build/Development/xSort tests.octest/Contents/Info.plist"
"build/CardSorting.build/Development/xSort tests.build/Info.plist"
mkdir
"/Users/arroz/Documents/CS/CardSorting/xSort/build/Development/xSort
tests.octest/Contents"
cd /Users/arroz/Documents/CS/CardSorting/xSort
/System/Library/PrivateFrameworks/DevToolsCore.framework/Resources/
pbxcp -exclude .DS_Store -exclude CVS -exclude .svn
-resolve-src-symlinks
/Users/arroz/Documents/CS/CardSorting/xSort/build/CardSorting.build/
Development/xSort\ tests.build/Info.plist
/Users/arroz/Documents/CS/CardSorting/xSort/build/Development/xSort\
tests.octest/Contents
ProcessPCH
/Library/Caches/com.apple.Xcode.502/SharedPrecompiledHeaders/Cocoa-
bgnymjgjzwvhabfgutlbhkkaoxtn/Cocoa.h.gch
/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/
Cocoa.framework/Headers/Cocoa.h normal ppc objective-c
com.apple.compilers.gcc.4_0
cd /Users/arroz/Documents/CS/CardSorting/xSort
/usr/bin/gcc-4.0 -x objective-c-header -arch ppc -pipe
-Wno-trigraphs -fobjc-exceptions -fpascal-strings -fasm-blocks -g -Os
-fmessage-length=0 -mtune=G5 -mmacosx-version-min=10.3
-I/Users/arroz/Documents/CS/CardSorting/xSort/build/
CardSorting.build/Development/xSort\ tests.build/xSort\ tests.hmap
-Wmost -Wno-four-char-constants -Wno-unknown-pragmas -O0
-F/Users/arroz/Documents/CS/CardSorting/xSort/build/Development
-F/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks
-I/Users/arroz/Documents/CS/CardSorting/xSort/build/Development/
include -I/Users/arroz/Documents/CS/CardSorting/xSort
-I/Users/arroz/Documents/CS/CardSorting/xSort/build/
CardSorting.build/Development/xSort\ tests.build/DerivedSources
-isysroot /Developer/SDKs/MacOSX10.3.9.sdk -c
/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/
Cocoa.framework/Headers/Cocoa.h -o
/Library/Caches/com.apple.Xcode.502/SharedPrecompiledHeaders/Cocoa-
bgnymjgjzwvhabfgutlbhkkaoxtn/Cocoa.h.gch
ProcessPCH
/Library/Caches/com.apple.Xcode.502/SharedPrecompiledHeaders/Cocoa-
gdxcpcnsteraobasvjngbbsafkdw/Cocoa.h.gch
/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/
Cocoa.framework/Headers/Cocoa.h normal ppc c
com.apple.compilers.gcc.4_0
cd /Users/arroz/Documents/CS/CardSorting/xSort
/usr/bin/gcc-4.0 -x c-header -arch ppc -pipe -Wno-trigraphs
-fpascal-strings -fasm-blocks -g -Os -fmessage-length=0 -mtune=G5
-mmacosx-version-min=10.3
-I/Users/arroz/Documents/CS/CardSorting/xSort/build/
CardSorting.build/Development/xSort\ tests.build/xSort\ tests.hmap
-Wmost -Wno-four-char-constants -Wno-unknown-pragmas -O0
-F/Users/arroz/Documents/CS/CardSorting/xSort/build/Development
-F/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks
-I/Users/arroz/Documents/CS/CardSorting/xSort/build/Development/
include -I/Users/arroz/Documents/CS/CardSorting/xSort
-I/Users/arroz/Documents/CS/CardSorting/xSort/build/
CardSorting.build/Development/xSort\ tests.build/DerivedSources
-isysroot /Developer/SDKs/MacOSX10.3.9.sdk -c
/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/
Cocoa.framework/Headers/Cocoa.h -o
/Library/Caches/com.apple.Xcode.502/SharedPrecompiledHeaders/Cocoa-
gdxcpcnsteraobasvjngbbsafkdw/Cocoa.h.gch
In file included from
/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/
Foundation.framework/Headers/Foundation.h:9,
from
/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/
Cocoa.framework/Headers/Cocoa.h:12:
/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/
Foundation.framework/Headers/NSObjCRuntime.h:56: error: parse error
before '@' token
/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/
Foundation.framework/Headers/NSObjCRuntime.h:58: error: parse error
before '*' token
/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/
Foundation.framework/Headers/NSObjCRuntime.h:59: error: parse error
before '*' token
/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/
Foundation.framework/Headers/NSObjCRuntime.h:60: error: parse error
before '*' token
/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/
Foundation.framework/Headers/NSObjCRuntime.h:61: error: parse error
before '*' token
/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/
Foundation.framework/Headers/NSObjCRuntime.h:64: error: parse error
before '*' token
/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/
Foundation.framework/Headers/NSObjCRuntime.h:65: error: parse error
before '*' token
In file included from
/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/
Foundation.framework/Headers/NSObject.h:6,
from
/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/
Foundation.framework/Headers/NSCoder.h:5,
from
/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/
Foundation.framework/Headers/NSArchiver.h:5,
from
/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/
Foundation.framework/Headers/Foundation.h:10,
from
/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/
Cocoa.framework/Headers/Cocoa.h:12:
/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/
Foundation.framework/Headers/NSZone.h:7: error: parse error before
'@' token
/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/
Foundation.framework/Headers/NSZone.h:14: error: parse error before
'NSString'
/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/
Foundation.framework/Headers/NSZone.h:15: error: parse error before
'*' token
(and some 1500 lines more...)
Any ideas of what could be wrong?
Yours
Miguel Arroz
"We have no sympathy for the lost souls
We've chosen the path of disgrace
We give this life to our children
And teach them to hate this place" -- Apocalyptica, Life Burns!
Miguel Arroz
http://www.ipragma.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
"I felt like putting a bullet between
the eyes of every Panda that wouldn't
scr*w to save its species." -- Fight Club
Miguel Arroz
http://www.ipragma.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
--
Eric Albert email@hidden
http://outofcheese.org/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden