把PB
文件夹拖动到项目文件内,
图中1
,2
,3
,4
拖入工程中,
Linked Frameworks and Libraries
:导入libProtocolBuffers.a
Build Phases
-> Compile Sources
->PlayMessage.pbobjc.m
-> 添加 -fno-objc-arc
Build Settings
-> Headers Search Paths
-> 添加protocolbuf
文件的路径(直接把protocolbuf
拖到Headers Search Paths
的添加框内)