For using a concrete static library (.a file) in my project, I need to change the way in what Xcode Compile the source, from "According to File Type" to "Objective-C++" in build settings.
This change gives me several errors in other libraries (only files .h and .m) downloaded from GitHub such as: NGTabBarController, MWPhotoBrowser or SDWebImage, when I am trying to compile my project.
An example:
[self downloadWithURL:url delegate:delegate options:(retryFailed ? SDWebImageRetryFailed : 0)];
Cannot initialize a parameter of type 'SDWebImageOptions' with an rvalue of type 'int'
I suppose they are derived errors from changing the compile way.
Is there any way to solve this avoiding remove any file?
Thanks in advance.
最后我得解决这个建立编译源为“根据文件类型”和每个使用静态库的文件我必须将它们从“.m”重命名为“.mm”(强制文件编译为“ Objective-C的“)。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.