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

Missing iOS tvOS Frameworks via Homebrew #65

Closed
grrussel opened this issue Aug 13, 2017 · 4 comments
Closed

Missing iOS tvOS Frameworks via Homebrew #65

grrussel opened this issue Aug 13, 2017 · 4 comments

Comments

@grrussel
Copy link
Contributor

Following the instructions seems to not result in the required frameworks

Family-iMac:Documents grrussel$ brew tap simple2d/tap
==> Tapping simple2d/tap
Cloning into '/usr/local/Homebrew/Library/Taps/simple2d/homebrew-tap'...
remote: Counting objects: 4, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 4 (delta 0), reused 3 (delta 0), pack-reused 0
Unpacking objects: 100% (4/4), done.
Tapped 1 formula (28 files, 21.2KB)
Family-iMac:Documents grrussel$ brew install simple2d --HEAD
==> Installing simple2d from simple2d/tap
==> Cloning https://github.com/simple2d/simple2d.git
Updating /Users/grrussel/Library/Caches/Homebrew/simple2d--git
==> Checking out branch master
==> make
==> make install PREFIX=/usr/local/Cellar/simple2d/HEAD-c407789
🍺 /usr/local/Cellar/simple2d/HEAD-c407789: 7 files, 107.1KB, built in 8 seconds
Family-iMac:Documents grrussel$ ls -a /usr/local/Frameworks/
. ..
Family-iMac:Documents grrussel$ simple2d build

Use the build command to compile or build Simple 2D apps.

For compiling C/C++ source files, use:
build <c_or_cpp_file>

To build an Xcode project, use:
build <sdk_option> <optional_path_to_xcode_project>

For <sdk_option> above, use one of the following:
--ios iOS simulator SDK
--ios-device iOS device SDK (requires signing)
--tvos tvOS simulator SDK
--tvos-device tvOS device SDK (requires signing)

@blacktm
Copy link
Member

blacktm commented Aug 13, 2017

Yea, sorry, haven't updated the formula yet, which requires a new release to be cut, which takes a bit of time but hope to have done soon. In the meantime, you could:

  1. git clone --recursive https://github.com/simple2d/simple2d.git, cd simple2d/
  2. make release — to make the frameworks
  3. make install-frameworks — to install them
  4. (optionally) Run make ios and make tvos to build and launch the test triangle for iOS and tvOS, respectively.

@grrussel
Copy link
Contributor Author

grrussel commented Aug 13, 2017

Yup, I built from source in the end; one issue I stumbled on is that the Xcode projects were not looking for the Frameworks in the /usr/local/Frameworks directory

(I have seen the triangle in an iPhone sim ;-) ) + HW

@blacktm
Copy link
Member

blacktm commented Aug 21, 2017

I just pushed some updates in 9833860 so that the example Xcode projects look for the Simple2D.framework in /usr/local/Frameworks/Simple2D, instead of the source root as before. Hope that makes things a bit easier and more consistent with building desktop apps. Still have to publish a new release and update the Homebrew formula, but wanted to give an update in the meantime. Thanks!

@blacktm
Copy link
Member

blacktm commented Sep 19, 2017

Just released 0.7.0 and updated the Homebrew tap. Frameworks will now get installed to /usr/local/Frameworks

@blacktm blacktm closed this as completed Sep 19, 2017
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

2 participants