xmartlabs / Bender

Easily craft fast Neural Networks on iOS! Use TensorFlow models. Metal under the hood.
https://xmartlabs.github.io/Bender/
MIT License
1.79k stars 90 forks source link

Example does not compile #82

Open tirrorex opened 6 years ago

tirrorex commented 6 years ago

Cloning the repo with checkout on tag 0.4.0 Example has seven errors after pod installation (0.4.0) Seems to be removed at compile but all three frameworks installed by cocoapods are not found at compil time

"PBXCp /Users/thibautnoah/Library/Developer/Xcode/DerivedData/Example-fheatxxixelckdgltxeulpnuyhru/Build/Products/Debug-iphoneos/MetalBender.framework /Users/thibautnoah/Library/Developer/Xcode/DerivedData/Example-fheatxxixelckdgltxeulpnuyhru/Build/Products/Debug-iphoneos/Example.app/Frameworks/MetalBender.framework cd /Users/thibautnoah/testing/Bender/Example export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -exclude Headers -exclude PrivateHeaders -exclude Modules -exclude *.tbd -bitcode-strip replace-with-marker -bitcode-strip-tool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip -resolve-src-symlinks /Users/thibautnoah/Library/Developer/Xcode/DerivedData/Example-fheatxxixelckdgltxeulpnuyhru/Build/Products/Debug-iphoneos/MetalBender.framework /Users/thibautnoah/Library/Developer/Xcode/DerivedData/Example-fheatxxixelckdgltxeulpnuyhru/Build/Products/Debug-iphoneos/Example.app/Frameworks"

"error: /Users/thibautnoah/Library/Developer/Xcode/DerivedData/Example-fheatxxixelckdgltxeulpnuyhru/Build/Products/Debug-iphoneos/MetalBender.framework: No such file or directory"

tirrorex commented 6 years ago

The two others seems to be carthage related even though i don't use it and remove carthage path from search path. Someting fishy is going on here.

bryant1410 commented 6 years ago

Are you using Xcode 9 right? The example is meant to be used with Carthage.

tirrorex commented 6 years ago

Yes i am using xcode 9. Damn, why?

bryant1410 commented 6 years ago

I was asking since if you're not using Xcode 9 it won't work.

So, it isn't working with Carthage?

tirrorex commented 6 years ago

Nope, MetalBender module is missing. It is not included in the cartfile it seems. Including it does not solve the issue, i might miss something. Never had to use carthage before so i don't know where to go from there.

Adding a cartfile with bender to the Example project does not work either

bryant1410 commented 6 years ago

@tirrorex can you try now? It should work fine with Carthage.

nhatlee commented 6 years ago

@tirrorex cd to Bender-master then run carthage update.

tirrorex commented 6 years ago

This will have to wait the next version of our app, since i couldn't get bender to work i switched to coreml for now. we had to ship quickly. Will get back to you once i get the time to try the fix.