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

iOS is rebuilding OF library repeatedly on each example #5895

Closed
ofZach opened this issue Feb 12, 2018 · 5 comments
Closed

iOS is rebuilding OF library repeatedly on each example #5895

ofZach opened this issue Feb 12, 2018 · 5 comments

Comments

@ofZach
Copy link
Contributor

ofZach commented Feb 12, 2018

on xcode 9+ I'm seeing iOS have to rebuild OF on each new example you launch :(

taking a closer look at the build commands that are compiling OF, it seems that one of the commands in the build has the derived data (unique to each OF app) folder name in it:

"-index-store-path /Users/Zach/Library/Developer/Xcode/DerivedData/...."
which is why the rebuild seems to happen....

If I disable this feature on both OF library and projects this issue goes away, but I'm not 100% sure what this is feature is doing.

Uploading Screen Shot 2018-02-12 at 6.54.07 AM.png…

fixing this would significantly help iOS build times and developer sanity.

cc @ofTheo @danoli3

@ofZach
Copy link
Contributor Author

ofZach commented Feb 12, 2018

not sure why the image didn't work trying again screen shot 2018-02-12 at 6 54 07 am

this is set to default on openframeworks and apps but I need to set it to no to get good (normal) behavior...

@danoli3
Copy link
Member

danoli3 commented Feb 15, 2018

Oh wow super weird. Yeah lets turn that off.

@ofZach ofZach mentioned this issue Apr 1, 2018
27 tasks
@ofTheo
Copy link
Member

ofTheo commented Apr 4, 2018

@ofZach I have no idea what is causing the rebuild. It looks like it was a big issue in Xcode 8 and something Apple was dealing with with Swift.

Things I have tried:

  • Editing the scheme build and unchecking Find Implicit Dependencies
  • Adding the Macro HEADERMAP_USES_VFS = YES
  • Changing the OF project and the Example to build only active archs
  • Changing the OF project and the Example deployment target to iOS 9 ( it was set to 7.0 which doesn't come up as an option in Xcode 9 )

The only thing that comes close is to remove the OF project from the project dependency build phase and to uncheck Find Implicit Dependencies - but then it won't build the OF project if it needs to.

I am going to double check that this doesn't happen with the macOS nightly.
If it doesn't there could be some sort of setting difference that might give us a clue but I am not optimistic.

@ofTheo
Copy link
Member

ofTheo commented Apr 4, 2018

oh @ofZach I see that you actually have a solution in the body of your issue - haha :)
so it just that setting to be made default for the projects? I think that could be an easy change.

Happy to take a stab

ofTheo added a commit that referenced this issue Apr 4, 2018
…xing while building which means ios projects get rebuild every time.
@ofTheo
Copy link
Member

ofTheo commented Apr 4, 2018

Okay - once this PR is merged, it should be good to close this issue.

ofTheo added a commit that referenced this issue Apr 5, 2018
Bugfix. iOS Rebuiling.  Closes #5895  Added build flags to prevent in…
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