0

在我的作品中构建它时有一些错误:

架构 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

4

1 回答 1

1

架构 i386 的未定义符号:

尝试在实际设备 - iphone/ipad 上运行代码。我早些时候在模拟器上遇到过类似的问题,但它在实际设备上工作

于 2013-04-19T07:41:52.930 回答