onevcat / XUPorter

Add files and frameworks to your Xcode project after it is generated by Unity 3D.
http://onevcat.com/2012/12/xuporter/
MIT License
596 stars 241 forks source link

XUporter doesn't add native libc++.1.dylib library #34

Closed GrayedFox closed 10 years ago

GrayedFox commented 10 years ago

I might be doing something wrong in the projmod file... here it is:

{ "group": "Twitch", "libs": ["libc++.1.dylib"], "frameworks": ["Accelerate.framework"], "headerpaths": [], "files": [], "folders": [],
"excludes": ["^..meta$", "^..mdown$", "^.*.pdf$"], "linker_flags": [] }

The Accerlerate.framework is added, however the libc++.1.dylib file is not. Xcode has a native one (I'm not sure if it pulls it from usr/lib/ or from system/library/ somwhere) .... if I try copying the libc++.1.dylib file from the mac OS into a new folder, and specifying that in the projmod file, the library will be added however the build will fail (xcode doesn't seem to like using different versions of libraries it already has natively bundled with the os). although it's not even a different version... anywho.

any help is appreciated! keep up the good work!

GrayedFox commented 10 years ago

any news?

GrayedFox commented 10 years ago

Fixed it by adding the directory path to files...

{ "group": "Twitch", "libs": ["libc++.1.dylib"], "frameworks": ["Accelerate.framework"], "headerpaths": [], "files": ["/usr/lib/libc++.1.dylib", "usr/lib/libc++.1.dylib"], "folders": [],
"excludes": ["^..meta$", "^..mdown$", "^.*.pdf$"], "linker_flags": [] }

I don't know why this is required for native libraries and not native frameworks... also added "/usr/lib/someLibrary" path for safety (using just "usr/lib/someLibrary" should work fine)