Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/94.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用C++;XCode8 IOS应用程序中的Protobuf 我试图在XCODE8中构建一个iOS应用程序,其中一些现有的C++代码使用谷歌原型Bufff,但是不能让它工作。_C++_Ios_Xcode_Protocol Buffers - Fatal编程技术网

使用C++;XCode8 IOS应用程序中的Protobuf 我试图在XCODE8中构建一个iOS应用程序,其中一些现有的C++代码使用谷歌原型Bufff,但是不能让它工作。

使用C++;XCode8 IOS应用程序中的Protobuf 我试图在XCODE8中构建一个iOS应用程序,其中一些现有的C++代码使用谷歌原型Bufff,但是不能让它工作。,c++,ios,xcode,protocol-buffers,C++,Ios,Xcode,Protocol Buffers,我试着在其他地方使用Cocoapod 还尝试了一些构建脚本: 在所有的尝试中,我最终得到: Undefined symbols for architecture arm64: "google_public::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::a

我试着在其他地方使用Cocoapod

还尝试了一些构建脚本:

在所有的尝试中,我最终得到:

Undefined symbols for architecture arm64: 
  "google_public::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, google_public::protobuf::io::CodedOutputStream*)", 
  "google_public::protobuf::internal::WireFormat::VerifyUTF8StringFallback(char const*, int, google_public::protobuf::internal::WireFormat::Operation, char const*)",
  "google_public::protobuf::io::CodedOutputStream::WriteStringWithSizeToArray(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned char*)",
架构arm64的未定义符号: “google_public::protobuf::internal::WireFormattLite::WriteStringMaybeAliased(int,std::u 1::basic_string const&,google_public::protobuf::io::CodeDoutStream*)”, “google_public::protobuf::internal::WireFormat::VerifyUTF8StringFallback(字符常量*,int,google_public::protobuf::internal::WireFormat::Operation,字符常量*)”, “google_public::protobuf::io::CodedOutputStream::WriteStringWithSizeToArray(std::u 1::basic_字符串常量&,无符号字符*)”, 还有一些缺少的protobuf实现函数的列表


<> P>是否有其他方法来编译/使用iBooFrpBootoXCODE用于iOS APP.< /P> < P>。如果你想集成C++代码,你必须将C++代码的文件从.CPP改为.mm。你这样做了吗

解决:我在我的系统中尝试了多个protobuf版本,我意外地将include、lib和protoc生成的文件的不同版本混合在一起。

当然。C++代码编译和运行良好,直到原BUBF使用。因为问题中的函数都是使用<代码> STD::String < /C> >的,我想知道这是否与: