iphone - : libtool: -dynamic not specified the following flags are invalid: -ObjC 是什么意思

标签 iphone linker static-libraries

我继承了一个依赖静态库的项目(幸运的是我!)。尝试构建静态库时,我收到此错误:

/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/

相关文章:

ios - UiView setFrame 对象

xcode - 构建错误重复符号 arclite.o

iphone - iPhone-XCode 4链接器错误,没有方法调用或对象使用

android - .so 文件和 .jar android 之间的主要区别是什么

c++ - 什么时候使用静态库需要头文件?

iphone - 当我们执行 presentViewController 时,幕后会发生什么?

iPhone - 来自本地文件 URL 的 NSData

iphone - 如何在 uitextfield 委托(delegate)方法中获取单元格索引路径?

c++ - QT CREATOR - 我把/NODEFAULTLIB 放在哪里 :library?

c++ - 我能以某种方式将 HLSL 放入 .lib 中吗?