错误一:'boost/iterator/iterator_adaptor.hpp' file not found
解决方法:去https://sourceforge.net/projects/boost/files/boost/1.63.0/ 下载boost_1_63_0.tar.gz,解压后将文件夹内的boost文件夹复制替换node_modules/react-native/third-party/boost_1_63_0内的boost。
错误二:运行后报错
解决方法:RCTMultipartStreamReader.m第79行将
NSUInteger headersContentLength = headers[@"Content-Length"] != nil ? [headers[@"Content-Length"] unsignedIntValue] : 0;
替换为
NSUInteger headersContentLength = headers[@"Content-Length"] != nil ? [headers[@"Content-Length"] integerValue] : 0;