我继承了一个项目(我很幸运!)它依赖于静态库。在构建静态库时,我得到了以下错误:
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/libtool: -dynamic not specified the following flags are invalid: -ObjC
后面是这两行,我确实理解了这一点,但这似乎是一个单独的问题(缺少文件)。
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/libtool: can't locate file for: -lFlurryWithLocation
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/libtool: file: -lFlurryWithLocation is not an object file (not allowed in a library)
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/libtool failed with exit code 1
我错了吗,这一切都是相关的?如果我修复丢失的文件部分,第一行错误会消失吗?
不管怎样,消息的-dynamic not specified
部分意味着什么?
谢谢!
发布于 2011-02-10 01:45:56
奥利,你原来的预感是对的。这两条消息之间没有任何关系。第一条消息'-dynamic指定以下标志无效:-ObjC‘只是一个警告。构建静态库不需要-objC选项。
https://stackoverflow.com/questions/4318144
复制相似问题