Advertise Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

sdkIQ for iPhone
($4.99)

Your First iPhone App
($1.99)

iPhone Code Generator
($9.99)

Dual Matches
($0.99)

Calcuccino Programmers' Calculator
($2.99)

SDKtoday
(free)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Tools & Utilities

Reply
 
LinkBack Thread Tools Display Modes
Old 05-28-2009, 08:00 AM   #1 (permalink)
New Member
 
Join Date: Mar 2009
Posts: 20
Default UI Kit error in SDK 3.0

Hi
I am using iphone_sdk_3.0_beta_5__9m2735 SDK.
When I try to compile my code using simulator 3.0 option I get following error. The code compiles for rest all simulator option ie 2.0, 2.1, 2.2, 2.2.1
While compiling my code I get following error
from /Users/videomac/manish/EXPLab/2009-05-27-11-20 myApp_LL_2/myApp_Prefix.pch:7:
In file included from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:30,
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILocalizedIndexedCollation.h:11: error: syntax error before 'AT_NAME' token
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILocalizedIndexedCollation.h:19: error: syntax error before '}' token
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILocalizedIndexedCollation.h:21: fatal error: method definition not in @implementation context

The errors are located in file UILocalizedIndexedCollation.h which is SDK file.I am using UIKit Framework of SDK 3.0. Can anyone tell me what should I do to remove this error?
manish.kesarkar is offline   Reply With Quote
Old 06-04-2009, 01:58 PM   #2 (permalink)
New Member
 
Join Date: Jun 2009
Posts: 8
Default

I had a problem with that header also, when using Clang Static Code Analyzer, so I just removed the #include from UIKit.h..

Also, I think it's against NDA to post about the 3.0 classes here. Just a warning.
John Heaton is offline   Reply With Quote
Old 06-05-2009, 06:34 PM   #3 (permalink)
New Member
 
Join Date: Feb 2009
Posts: 86
Smile

Just wanted to mention that the Clang Static Analyzer is amazingly handy at finding nitpicky little bugs a coder (and the compiler) might miss. I was blown away by the 22 it found in my project (after submission!).

LLVM/Clang Static Analyzer
seanrice is offline   Reply With Quote
Old 07-08-2009, 10:00 AM   #4 (permalink)
New Member
 
Join Date: Jan 2009
Posts: 2
Default

I also had this error while linking my 2.2.1 app with the 3.0 SDK. This is due to XCode not compiling with the correct GCC version. To add the correct version control click your target and select get info then in your Target Info, select Build and look for Compiler Version section. There:

1. Select the C/C++ Compiler Version
2. Set the default to GCC 4.0
3. At the bottom-left control, hit Add Build Setting Condition
4. On the left, choose 'Device - iPhone OS 3.0'
5. On the right, chose GCC 4.2
6. Repeat steps 3 to 5, now with 'Simulator - iPhone OS 3.0' on step 4.

These steps were taken from this post: Apple - Support - Discussions - Iphone SDK 3.0 UIKit Error ...



Quote:
Originally Posted by manish.kesarkar View Post
Hi
I am using iphone_sdk_3.0_beta_5__9m2735 SDK.
When I try to compile my code using simulator 3.0 option I get following error. The code compiles for rest all simulator option ie 2.0, 2.1, 2.2, 2.2.1
While compiling my code I get following error
from /Users/videomac/manish/EXPLab/2009-05-27-11-20 myApp_LL_2/myApp_Prefix.pch:7:
In file included from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:30,
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILocalizedIndexedCollation.h:11: error: syntax error before 'AT_NAME' token
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILocalizedIndexedCollation.h:19: error: syntax error before '}' token
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILocalizedIndexedCollation.h:21: fatal error: method definition not in @implementation context

The errors are located in file UILocalizedIndexedCollation.h which is SDK file.I am using UIKit Framework of SDK 3.0. Can anyone tell me what should I do to remove this error?
egomezb is offline   Reply With Quote
Old 07-08-2009, 10:37 PM   #5 (permalink)
New Member
 
Join Date: Mar 2009
Posts: 20
Smile

Thanx egomezb

Following the process mentioned by you removed the compiling error.
Regards,
Manish
manish.kesarkar is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are On


» Advertisements
» Stats
Members: 41,860
Threads: 49,768
Posts: 213,054
Top Poster: BrianSlick (3,138)
Welcome to our newest member, gustavo7sexton
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:56 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0