Augustyniak / RATreeView

Library providing easy-to-use interface for displaying tree structures on iOS and tvOS.
MIT License
2.49k stars 466 forks source link

Using Carthage with XCode8 results in a Linker Error #192

Open Xorcist77 opened 7 years ago

Xorcist77 commented 7 years ago

Using Carthage, after the framework is built and added to the project, building results in:

Apple Mach-O Linker Error

Ld /Users/maxeta/Library/Developer/Xcode/DerivedData/RATreeViewDemo-glemxmlsilliakfiwapssioficej/Build/Products/Debug-iphonesimulator/RATreeViewDemo.app/RATreeViewDemo normal x86_64
    cd /Users/maxeta/Projects/XCode/RATreeViewDemo/RATreeViewDemo
    export IPHONEOS_DEPLOYMENT_TARGET=9.0
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.0.sdk -L/Users/maxeta/Library/Developer/Xcode/DerivedData/RATreeViewDemo-glemxmlsilliakfiwapssioficej/Build/Products/Debug-iphonesimulator -F/Users/maxeta/Library/Developer/Xcode/DerivedData/RATreeViewDemo-glemxmlsilliakfiwapssioficej/Build/Products/Debug-iphonesimulator -filelist /Users/maxeta/Library/Developer/Xcode/DerivedData/RATreeViewDemo-glemxmlsilliakfiwapssioficej/Build/Intermediates/RATreeViewDemo.build/Debug-iphonesimulator/RATreeViewDemo.build/Objects-normal/x86_64/RATreeViewDemo.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=9.0 -Xlinker -object_path_lto -Xlinker /Users/maxeta/Library/Developer/Xcode/DerivedData/RATreeViewDemo-glemxmlsilliakfiwapssioficej/Build/Intermediates/RATreeViewDemo.build/Debug-iphonesimulator/RATreeViewDemo.build/Objects-normal/x86_64/RATreeViewDemo_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/maxeta/Library/Developer/Xcode/DerivedData/RATreeViewDemo-glemxmlsilliakfiwapssioficej/Build/Intermediates/RATreeViewDemo.build/Debug-iphonesimulator/RATreeViewDemo.build/Objects-normal/x86_64/RATreeViewDemo.swiftmodule -framework RATreeView -Xlinker -dependency_info -Xlinker /Users/maxeta/Library/Developer/Xcode/DerivedData/RATreeViewDemo-glemxmlsilliakfiwapssioficej/Build/Intermediates/RATreeViewDemo.build/Debug-iphonesimulator/RATreeViewDemo.build/Objects-normal/x86_64/RATreeViewDemo_dependency_info.dat -o /Users/maxeta/Library/Developer/Xcode/DerivedData/RATreeViewDemo-glemxmlsilliakfiwapssioficej/Build/Products/Debug-iphonesimulator/RATreeViewDemo.app/RATreeViewDemo

ld: framework not found RATreeView
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Augustyniak commented 7 years ago

Hi,

Thanks for the info. I'm going to look into this till the end of the week. Can you specify the versions of Carthage and RATreeView you use?

Xorcist77 commented 7 years ago

My Carthage version is 0.18, and I was trying to use version 2.1.1 of the RATreeView.

jfsagasti commented 7 years ago

Same here. Using Pods for now