ionic-team / ionic-team/capacitor-assets

Generate resources fail in M1: Segmentation fault

Open
#443 9 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
583
Forks
116
PR merge metrics
No merged PRs in 30d

Description

**Hello! I have a problem with capacitor/assets (and also with cordova-res) that I can't generate the resources for iOS on an apple M1 chip. Always the error: segmentation fault**

flowww@MacBook-Air-de-FLOWww FLOWww.Apps_FLOWwwMe % npm list -g
/opt/homebrew/lib
├── @angular/cli@11.0.5
├── @capacitor/assets@2.0.4
├── @ionic/cli@6.20.4
├── cordova-res@0.15.4
├── ios-deploy@1.11.4
└── npm@9.1.2

npx capacitor-assets generate --ios
Generating assets for ios
zsh: segmentation fault npx capacitor-assets generate --ios

cordova-res ios
WARN: No config.xml file in directory. Skipping config.
zsh: segmentation fault cordova-res ios

**I have installed vips with brew (in arm64 arch) even sharp, but it still doesn't work...**

flowww@MacBook-Air-de-FLOWww FLOWww.Apps_FLOWwwMe % brew info vips
==> vips: stable 8.13.3
Image processing library
https://github.com/libvips/libvips
/opt/homebrew/Cellar/vips/8.13.3 (96 files, 5.6MB) *
Poured from bottle on 2022-11-22 at 19:39:53
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/vips.rb
License: LGPL-2.1-or-later
==> Dependencies
Build: gobject-introspection ✔, meson ✘, ninja ✔, pkg-config ✔
Required: cairo ✔, cfitsio ✔, cgif ✔, fftw ✔, fontconfig ✔, gettext ✔, glib ✔, imagemagick ✔, jpeg-xl ✔, libexif ✔, libgsf ✔, libheif ✔, libimagequant ✔, libmatio ✔, librsvg ✔, libspng ✔, libtiff ✔, little-cms2 ✔, mozjpeg ✔, openexr ✔, openjpeg ✔, openslide ✔, orc ✔, pango ✔, poppler ✔, webp ✔
==> Analytics
install: 13,339 (30 days), 40,128 (90 days), 120,216 (365 days)
install-on-request: 13,000 (30 days), 39,042 (90 days), 116,922 (365 days)
build-error: 0 (30 days)

**Any ideas?**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.