cocoapods-amimono icon indicating copy to clipboard operation
cocoapods-amimono copied to clipboard

Amimono could induce name collision

Open UnsafePointer opened this issue 8 years ago • 5 comments

Adding lebeldb-library to the Podfile produces the following error:

screen shot 2017-04-27 at 22 17 55

Inspecting the leveldb.framework build product:

Renzos-MBP:leveldb.framework ruenzuo$ nm leveldb | grep main
000000000004c160 T _main

This symbol is colliding with the application's main.

You can check the error here.

UnsafePointer avatar Apr 27 '17 20:04 UnsafePointer

@igor-makarov did this ever work for you? I'm asking because you mentioned this library as an example of https://github.com/Ruenzuo/cocoapods-amimono/pull/30.

UnsafePointer avatar Apr 27 '17 20:04 UnsafePointer

It's a problem with the leveldb podspec. I had to rewrite the podspec locally to exclude that source file. It's a util program that isn't actually meant to be compiled as part of the library.

igor-makarov avatar Apr 27 '17 20:04 igor-makarov

Ah okay, nonetheless this means that "namespaces" are lost, which was something I wanted to proof but didn't get myself to do it. I guess for Objective-C is mostly fine because everything is prefixed and for Swift the class mangling probably will prevent this. I'll keep this issue opened in case someone runs into this problem.

UnsafePointer avatar Apr 27 '17 20:04 UnsafePointer

Any news?

dqhieu avatar Nov 30 '17 07:11 dqhieu

I got this problem in issue #39

dqhieu avatar Nov 30 '17 07:11 dqhieu