Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bundle exec ./bin/build_frameworks.rb not creating output directory #36

Open
syedabdulsamad opened this issue Aug 7, 2017 · 2 comments

Comments

@syedabdulsamad
Copy link

Hi,

I want to use ALPR for my iOS app. I am trying to follow the instruction in github page. When i run bundle exec ./bin/build_frameworks.rb the command fails with the following errors.


bundler: failed to load command: ./bin/build_frameworks.rb (./bin/build_frameworks.rb)
RuntimeError: Child returned: pid 25248 exit 1
  /Users/abdulsamad/Documents/ALPR/lib/alpr/utils.rb:44:in `execute'
  /Users/abdulsamad/Documents/ALPR/lib/alpr/utils.rb:50:in `qexec'
  /Users/abdulsamad/Documents/ALPR/lib/alpr/package/automake.rb:37:in `<class:Automake>'
  /Users/abdulsamad/Documents/ALPR/lib/alpr/package/automake.rb:27:in `<module:Package>'
  /Users/abdulsamad/Documents/ALPR/lib/alpr/package/automake.rb:26:in `<top (required)>'
  /Users/abdulsamad/Documents/ALPR/lib/alpr/package.rb:2:in `require_relative'
  /Users/abdulsamad/Documents/ALPR/lib/alpr/package.rb:2:in `<top (required)>'
  /Users/abdulsamad/Documents/ALPR/bin/build_frameworks.rb:30:in `require_relative'
  /Users/abdulsamad/Documents/ALPR/bin/build_frameworks.rb:30:in `<top (required)>'

Does anybody have an idea what is wrong here. Can someone guide me to the right direction please.

Thanks
Abdul

@Ross-Gibson
Copy link

@syedabdulsamad take a look here: #30 (comment)

@yurinativo
Copy link

I got this error too.
Tracing the log, the problem occurred on automaker.rb:37 when it tries to execute the line below:
xcrun --sdk iphoneos --show-sdk-path.

Running this line on terminal, I got an error:
SDK “iphoneos” cannot be located

This is because the command line tools was not set correctly.

To solve this:

  1. Open the Xcode
  2. Open the Preferences
  3. Go to the Locations tab
  4. Select the Xcode Version on Command Line Tools field. (Mine was blank)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants