On 25 May 2021, at 16:28, Roberto Avanzi wrote:
So, to summarize:
- The /opt/homebrew is the new location for APple Silicon based macs
- On macos 11.00 the default behaviour of ibtool seem to have changed,
since I made no specific change to default configuration myself
- For two nib's the directory is still created, and there seems to be
a big sur special version inside
It turns out the issue is with xib files that contain a custom view (no window), a table view, and which has a deployment target (presumably less than macOS 11), for those, ibtool will create a directory.
Hard to believe this is anything but a bug in latest Xcode, but as a workaround, I have now removed deployment target from all xib files.
Regarding `/opt/homebrew`: If you run `./configure` then it now creates a default `local.rave` containing:
add FLAGS "-I/usr/local/include" add LN_FLAGS "-L/usr/local/lib"
Then it complains that it cannot find dependencies.
Edit `local.ninja` with your M1 homebrew paths and then re-run `./configure`, and it should hopefully work.
Personally I get build dependencies from nixpkgs, there are people who use MacPorts, and then there is non-M1 homebrew, so I think it is fair that if dependencies are not in `/usr/local` then the user will have to manually edit the file, because `./configure` can quickly become a mess if it has to try everything.
On Wed, May 26, 2021 at 2:41 PM Allan Odgaard via TextMate textmate@lists.macromates.com wrote:
It turns out the issue is with xib files that contain a custom view (no window), a table view, and which has a deployment target (presumably less than macOS 11), for those, ibtool will create a directory.
Wow, that's weird.
Hard to believe this is anything but a bug in latest Xcode, but as a workaround, I have now removed deployment target from all xib files.
Regarding /opt/homebrew: If you run ./configure then it now creates a default local.rave containing:
add FLAGS "-I/usr/local/include" add LN_FLAGS "-L/usr/local/lib"
Then it complains that it cannot find dependencies.
Edit local.ninja with your M1 homebrew paths and then re-run ./configure, and it should hopefully work.
Did that, added add FLAGS "-I/opt/homebrew/include" add LN_FLAGS "-L/opt/homebrew/lib" to local.rave and... it build without a single hiccup.
Personally I get build dependencies from nixpkgs, there are people who use MacPorts, and then there is non-M1 homebrew, so I think it is fair that if dependencies are not in /usr/local then the user will have to manually edit the file, because ./configure can quickly become a mess if it has to try everything.
I understand this. I am sure that /opt/homebrew will become a "new standard" but i understand the rationale for not polluting it too much.
Roberto