我继承了一个依赖静态库的项目(幸运的是我!)。尝试构建静态库时,我收到此错误:
/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
部分是什么意思?
谢谢!
最佳答案
Olie,你最初的预感是正确的。两条消息之间没有任何关系。第一条消息“-dynamic not specified the following flags are invalid: -ObjC”只是一个警告。构建静态库不需要 -objC 选项。
关于iphone - : libtool: -dynamic not specified the following flags are invalid: -ObjC 是什么意思,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4318144/