I'm building iSpeechSDK Beta 3 (released on 2012-05-18) for my sample/test project (iOS Universal app) I just created. I'm getting build time errors.
.....iSpeechSDK/Headers/ISSpeechSynthesis.h:58: error: expected a property attribute before 'unsafe_unretained'
When I double click on the error, it points to the SDK header class: ISSpeechSynthesis.h
..
#property (nonatomic, unsafe_unretained) id delegate;
..
PS: I have added the documented linker flag in other linker flags of Build: -fobjc-arc
I tried building for simulator/device/debug/release but all build targets produce same above error.
Please help me resolve this build error.
System/Development configuration-
Mac OS: 10.6.8
XCode: 3.2.5
iOS SDK: 4.2
You are using wrong complier. LLVM GCC does not supports Strong and other ARC keywords. Please set your complier as LLVM compiler 4.2
I don't believe ARC is supported in Xcode 3.2.5. I believe it was introduced in Xcode 4.2, but you can try changing your Compiler setting to LLVM GCC 4.2 in 'Build Settings'
Related
In Xcode 4.4 I am getting error when I try to build iOS project that has methods written in assembly. I am getting error "Inline Assembly Issue - invalid operand for instruction" for this line vqrdmulh.s16 q2, q13.
I tried to compile with LLVM 4.0 and LLVM GCC 4.2 but I am getting the same error.
Project was compiling fine in previous version of Xcode.
Does someone know how to solve this error? Thanks.
I'm using json-framework to parse json, but when I compile I get the following errors:
xxx/SBJsonStreamParser.h
xxx/SBJsonStreamParser.h:105: error: expected a property attribute before 'unsafe_unretained'
xxx.h:106: error: expected a property attribute before 'strong'
etc....
Developer Information:
Version: 4.2 (4D199)
Location: /Developer
Applications:
Xcode: 4.2 (828)
Instruments: 4.2 (4233)
Dashcode: 3.0.2 (336)
SDKs:
Mac OS X:
10.6: (10K549)
10.7: (11C63)
iPhone OS:
5.0: (9A334)
iPhone Simulator:
4.3: (8H7)
5.0: (9A334)
Check in your Build Settings/Build Options the compiler: Use the default Apple LLVM compiler 3.0 instead of LLVM GCC 4.2.
Use JSONKit instead, it's faster, has less memory leaks, and it might be easier to switch than debugging this issue.
https://github.com/johnezang/JSONKit
I just upgraded my Mac to Lion and then Xcode 4.1. My iPhone project which worked well with Xcode 4.0 had 401 errors in Xcode 4.1.
I googled the solution and got two useful ways.
changed the complier from GCC 4.2 to LLVM 2.1.
changed #import "/usr/include/sqlite3.h" to #import <sqlite3.h>
Now the number of errors reduced to 15, saying
Expected function body after function declarator
on OBJC_ARC_UNAVAILABLE in file Runtime.h, which is a built-in source file.
I tried to change iOS Deployment Target from iOS 3.0 to iOS 4.1 and set Other C Flags as
-D__IPHONE_OS_VERSION_MIN_REQUIRED=040100
But neither of them worked.
Any help will be appreciated. Thank you.
I had the same issue, and was able to resolve it by changing this
#import "/usr/include/objc/runtime.h"
to this
#import <objc/runtime.h>
where ever I included this file. This change appears backward compatible with 4.0.2 running under Snow Leopard as well.
I am using XCODE 3.2.5 and getting following error while compiling the code
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang failed with exit code 1
Here are my settings:
C/C++ compiler version -- LLVM compiler 1.6
Base SDK - 4.2
IOS deployment target - 4.2
What could be wrong here?
The issue was with compiler. It should by GCC for IOS and LLVM for MAC.
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?
I've traced this problem to be the compiler version being used. From what I can tell, [REDACTED] requires GCC 4.2 while iPhone SDK 2.x only works with GCC 4.0.
Here's a way to fix this.
In your Target Info, select Build separator and look for the section Compiler Version. Then:
Select the C/C++ Compiler Version row
Set the default to GCC 4.0
At the bottom-left control, hit Add Build Setting Condition
On the left, choose Device - iPhone OS 3.0
On the right, chose GCC 4.2
Repeat steps 3 to 5, now with Simulator - iPhone OS 3.0 on step 4.
Apple’s engineer had confirmed that they had a bug in UIKit framework:
We do have a simple workaround for this UIKit bug. In UILocalizedIndexedCollation.h change this:
UIKIT_EXTERN #interface UILocalizedIndexedCollation : NSObject
to
UIKIT_EXTERN_CLASS #interface UILocalizedIndexedCollation : NSObject
Denis2342
Firstly you should discuss beta products here.
However, this is not connected with the beta. You have an error in one of your own header filesprobably a missing '#end' statment.
BTW, google could have solved this for you rather than asking here.