含义:libtool:-dynamic未指定以下标志无效:-ObjC

时间:2022-09-27 04:49:54

I inherited a project (lucky me!) which relies on a static library. Trying to build the static lib, I get this error:

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

/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/libtool: -dynamic not specified the following flags are invalid: -ObjC 

It is followed by these two lines, which I do understand, but this appears to be a separate problem (missing file.)

接下来是这两行,我理解,但这似乎是一个单独的问题(缺少文件。)

/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

Am I wrong, and it's all related? Will the 1st line error go away if I fix the missing file part?

我错了,这一切都有关系吗?如果我修复丢失的文件部分,第一行错误会消失吗?

Either way, what does the -dynamic not specified part of message mean?

无论哪种方式,消息的动态未指定部分是什么意思?

Thanks!

谢谢!

1 个解决方案

#1


0  

Olie, your original hunch was correct. There is no relationship between the two messages. The first message '-dynamic not specified the following flags are invalid: -ObjC' is just a warning. The -objC option is not needed for building a static library.

奥莉,你原来的预感是正确的。这两条消息之间没有关系。第一条消息'-dynamic未指定以下标志无效:-ObjC'只是一个警告。构建静态库不需要-objC选项。

#1


0  

Olie, your original hunch was correct. There is no relationship between the two messages. The first message '-dynamic not specified the following flags are invalid: -ObjC' is just a warning. The -objC option is not needed for building a static library.

奥莉,你原来的预感是正确的。这两条消息之间没有关系。第一条消息'-dynamic未指定以下标志无效:-ObjC'只是一个警告。构建静态库不需要-objC选项。