iPhone应用程序开发的新手,在将S7FTPRequest包含到类库中之后,我在编译(或“构建并运行”)应用程序时遇到问题;在我将其包括在任何特定脚本中之前。我收到以下错误:
Undefined symbols:
"_kCFStreamPropertyFTPPassword", referenced from:
_kCFStreamPropertyFTPPassword$non_lazy_ptr in S7FTPRequest.o
(maybe you meant: _kCFStreamPropertyFTPPassword$non_lazy_ptr)
"_CFWriteStreamCreateWithFTPURL", referenced from:
-[S7FTPRequest startUploadRequest] in S7FTPRequest.o
-[S7FTPRequest startCreateDirectoryRequest] in S7FTPRequest.o
"_kCFStreamPropertyFTPUserName", referenced from:
_kCFStreamPropertyFTPUserName$non_lazy_ptr in S7FTPRequest.o
(maybe you meant: _kCFStreamPropertyFTPUserName$non_lazy_ptr)
"_kCFStreamErrorDomainFTP", referenced from:
_kCFStreamErrorDomainFTP$non_lazy_ptr in S7FTPRequest.o
(maybe you meant: _kCFStreamErrorDomainFTP$non_lazy_ptr)
ld: symbol(s) not found
collect2: ld returned 1 exit status
谢谢!
最佳答案
你有点不对劲。由于缺少所需的框架而导致出现链接问题,但是所需的框架是CFNetwork.framework
而不是libz.1.2.3.dylib
libz动态库用于压缩/解压缩操作。