Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Build issue due to bazel changes #67

Closed
arubdesu opened this issue May 16, 2019 · 1 comment
Closed

Build issue due to bazel changes #67

arubdesu opened this issue May 16, 2019 · 1 comment

Comments

@arubdesu
Copy link
Contributor

As reported in Slack #restor, I was building from source and hitting errors that seem to have been introduced recently in bazel, bazelbuild/bazel#7594

ERROR: /Users/allister/Documents/restor-master/Restor/BUILD:45:22: in asset_catalogs attribute of objc_library rule //Restor:restor_lib: objc_library resource attributes are not allowed. Please use the 'data' attribute instead.
ERROR: Analysis of target '//Restor:Restor' failed; build aborted: Analysis of target '//Restor:restor_lib' failed; build aborted
INFO: Elapsed time: 65.470s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (38 packages loaded, 654 targets configured)

I was able to figure out through the naming of the feature flip that the additional build flag I could use in the meantime is --incompatible_disable_objc_library_resources=false
I tried to manually fix it in the BUILD file and it seemed to work for assets but not storyboards, if it had done fixed it you know me brudda, I'dve sent the PR 😉

@russellhancox
Copy link
Contributor

Thanks for fixing this (#68)!

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

No branches or pull requests

2 participants