joeldev/ADNKit

building for iOS Simulator, but linking against dylib built for MacOSX file

winzig opened this issue · 2 comments

I've built ADNKit using the make_release.sh script, but when trying to build my iOS app in Xcode 5.1 beta (build 5B90f), I am receiving this error:

ld: building for iOS Simulator, but linking against dylib built for MacOSX file '/Users/me/Dropbox/Repositories/ADNKit/Release/ADNKit.framework/ADNKit' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Any ideas what's going on?

Just to be clear, when I try building my app with Xcode 5.0.2 (release version), it works fine. The issue only occurs in the Xcode 5.1 beta. Not sure if it's a bug that I should report to Apple, or something that can be worked around within ADNKit?

I tried this and it worked for me:
Ensure you have these 3 lines in your Framework Search Path

$(SDKROOT)/Developer/Library/Frameworks
$(DEVELOPER_LIBRARY_DIR)/Frameworks
$(DEVELOPER_FRAMEWORKS_DIR)

screen shot 2014-06-24 at 2 23 50 pm

Also ensure there are no trailing slashes.