在我的作品中构建它时有一些错误:
架构 i386 的未定义符号:`
“computeDataSize(int, NSData*)”,引用自:`
- [OuterMessage serializedSize] 在 Polo.pb.o 中
- Polo.pb.o 中的 [Secret serializedSize]
-Polo.pb.o 中的[SecretAck serializedSize]`
"computeEnumSize(int, int)", referenced from:
-[OuterMessage serializedSize] in Polo.pb.o
- [选项 serializedSize] 在 Polo.pb.o`
- [Options_Encoding serializedSize] 在 Polo.pb.o`
-[Configuration serializedSize] in Polo.pb.o
-[KeyEvent serializedSize] in Remote.pb.o
-[FlingResult serializedSize] in Remote.pb.o
"computeInt32Size(int, int)", referenced from:
-[MouseEvent serializedSize] in Remote.pb.o
-[MouseWheel serializedSize] in Remote.pb.o
-[Connect serializedSize] in Remote.pb.o
"computeStringSize(int, NSString*)", referenced from:
-[PairingRequest serializedSize] in Polo.pb.o
-[PairingRequestAck serializedSize] in Polo.pb.o
-[Connect serializedSize] in Remote.pb.o
-[Fling serializedSize] in Remote.pb.o
-[Data serializedSize] in Remote.pb.o
"computeUInt32Size(int, int)", referenced from:
-[OuterMessage serializedSize] in Polo.pb.o
-[Options_Encoding serializedSize] in Polo.pb.o
-[RemoteMessage serializedSize] in Remote.pb.o
"computeMessageSize(int, objc_object*)", referenced from:
-[Options serializedSize] in Polo.pb.o
-[Configuration serializedSize] in Polo.pb.o
-[RemoteMessage serializedSize] in Remote.pb.o
-[RequestMessage serializedSize] in Remote.pb.o
-[ResponseMessage serializedSize] in Remote.pb.o
"google::protobuf::io::CodedOutputStream::VarintSize32Fallback(unsigned int)", referenced from:
google::protobuf::io::CodedOutputStream::VarintSize32(unsigned int) in
CommandSender.o
"google::protobuf::io::CodedOutputStream::WriteVarint32FallbackToArray(unsigned int, unsigned char*)", referenced from:
google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(unsigned int, unsigned char*) in CommandSender.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我
Remote.pb.h
用 Object-C 制作和“Remote.pb.m”构建它。
关于 Xcode 4.6.1