dmsurti / AssimpKit

A library (macOS, iOS) that converts the files supported by Assimp to Scene Kit scenes.
http://assimpkit.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
477 stars 54 forks source link

Xcode project won't build RE: ld: library not found for -lassimp-fat #114

Open bhartsb1 opened 5 years ago

bhartsb1 commented 5 years ago

I load the workspace in Xcode 10.2.1 and attempt to build:

Yields Error: ld: library not found for -lassimp-fat

Noted that there seems to be the following missing static libs:

libIrrXML.a libIrrXML-fat.a libassimp-fat.a libassimp.a

I cloned and built assimp at the terminal. It produced:

libassimp.a libIrrXML.a

but didn't produce the multi-architecture -fat versions.

If I remove the others and add the non fat versions I get:

ld: library not found for -lassimp

anton-plebanovich commented 5 years ago

Check that you have 7z installed https://github.com/dmsurti/AssimpKit#installation-with-carthage-ios-100-macos-1011

and that you have the latest master because otherwise you might have the issue with spaces in a path to a project https://github.com/dmsurti/AssimpKit/pull/100.

vgruiz commented 4 years ago

I got "ld: library not found for -lassimp". Not sure if my solution is relevant at all but my issue was having a space in one of the directory names. Once I corrected that it built correctly.