Comments (7)
I think this should be a high priority. The code simply does not compile with
Xcode 4.2 - iOS 5 GM.
Original comment by [email protected]
on 6 Oct 2011 at 4:46
from metasyntactic.
If you can figure out what's up, i'm happy to try to fix things. As it is, my
macbook is currently broken and needs to be repaired, so it will be a while
before i can get around to this. Cheers!
Original comment by [email protected]
on 6 Oct 2011 at 7:50
from metasyntactic.
Xcode 4.2 uses LLVM 3.0 as the default compiler. And it seems that the default
configuration treats some issues detected by the static analyzer as
compile-time errors instead of warnings.
Here is a diff to fix the semantic issues:
Index: objectivec/Classes/ConcreteExtensionField.m
===================================================================
--- objectivec/Classes/ConcreteExtensionField.m (revision 4426)
+++ objectivec/Classes/ConcreteExtensionField.m (working copy)
@@ -15,14 +15,14 @@
#import "ConcreteExtensionField.h"
@interface PBConcreteExtensionField()
-@property PBExtensionType type;
-@property Class extendedClass;
-@property int32_t fieldNumber;
+@property (assign) PBExtensionType type;
+@property (assign) Class extendedClass;
+@property (assign) int32_t fieldNumber;
@property (retain) id defaultValue;
-@property Class messageOrGroupClass;
-@property BOOL isRepeated;
-@property BOOL isPacked;
-@property BOOL isMessageSetWireFormat;
+@property (assign) Class messageOrGroupClass;
+@property (assign) BOOL isRepeated;
+@property (assign) BOOL isPacked;
+@property (assign) BOOL isMessageSetWireFormat;
@end
@implementation PBConcreteExtensionField
@@ -149,6 +149,8 @@
case PBExtensionTypeSFixed64:
case PBExtensionTypeDouble:
return 8;
+ default:
+ break;
}
@throw [NSException exceptionWithName:@"InternalError" reason:@"" userInfo:nil];
@@ -490,14 +492,14 @@
case PBExtensionTypeEnum: return [NSNumber numberWithInt:[input readEnum]];
case PBExtensionTypeGroup:
{
- id<PBMessage_Builder> builder = [messageOrGroupClass builder];
+ id<PBMessage_Builder> builder =
(id<PBMessage_Builder>)[messageOrGroupClass builder];
[input readGroup:fieldNumber builder:builder extensionRegistry:extensionRegistry];
return [builder build];
}
case PBExtensionTypeMessage:
{
- id<PBMessage_Builder> builder = [messageOrGroupClass builder];
+ id<PBMessage_Builder> builder =
(id<PBMessage_Builder>)[messageOrGroupClass builder];
[input readMessage:builder extensionRegistry:extensionRegistry];
return [builder build];
}
Original comment by [email protected]
on 10 Oct 2011 at 5:56
from metasyntactic.
I had the same issue. I found that it was caused by the "Treat Warnings as
Errors" flag being set. I don't like switching it, but there was no other way
around it for me yet.
Original comment by [email protected]
on 21 Nov 2011 at 11:24
from metasyntactic.
Just to follow up, I have fixed this without needing my previous solution
(changing warnings as errors).
What it was the default compiler was set to Apple LLVM GCC 4.2. Switching it to
LLVM GCC 4.2 cleared up my errors I was getting.
Original comment by [email protected]
on 25 Nov 2011 at 11:49
from metasyntactic.
I had the same issues, I did what you said but I keep getting two erros:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_AreaRequest_Builder", referenced from:
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
and:
error: unable to open executable
'/Users/fmota/Library/Developer/Xcode/DerivedData/PB_final-ehnvnttzdrnixobwoovtt
uyvwdby/Build/Products/Debug-iphonesimulator/PB_final.app/PB_final'
Any ideas or tips you can give me?
Original comment by [email protected]
on 6 Jan 2012 at 3:22
from metasyntactic.
i get the same error at the end.
could it be a problem with arc? because it is not compiled for arc?
Original comment by [email protected]
on 21 Feb 2012 at 7:21
from metasyntactic.
Related Issues (20)
- NowPlaying not in Android Market
- Missing Theater
- Freeze/Crash When Minimizing a Finished Full-Screen Trailer
- fixed64 is mapped to 'int64_t', should it be 'uint64_t'? HOT 3
- Upcoming section = no data??
- New feature Request : delimited writeTo and parseFrom HOT 1
- 2.3.0 version of Protocol Buffers HOT 4
- App has no data since moving to iPhone 4, and will not update, even with force refresh HOT 2
- UninitializedMessage HOT 3
- Setting a class_prefix option in my proto file generates dummy dependancies HOT 1
- Underscores in "builder" classes HOT 1
- [ProtocolBuffers] Obj-C classes produced from proto definitions that have a field named "result" fail to compile
- Code review request HOT 1
- Can't compile anything! HOT 1
- Crash xcode 4.3 HOT 2
- MetasyntacticShared still alive? HOT 1
- the code that I clone using versions( svn software in mac) is different with that i view the code using the safar? why?? HOT 3
- ./autogen.sh returns an error HOT 4
- libprotobuf.la' is not a valid lib tool archive HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from metasyntactic.