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

Surmagic init - Illegal hardware instruction surmagic init #8

Closed
miroslavkovac opened this issue Jan 13, 2021 · 5 comments
Closed

Surmagic init - Illegal hardware instruction surmagic init #8

miroslavkovac opened this issue Jan 13, 2021 · 5 comments
Labels
help wanted Extra attention is needed

Comments

@miroslavkovac
Copy link

miroslavkovac commented Jan 13, 2021

Describe the bug
Calling surmagic init while being in the Xcode project folder is throwing an error:

 📂 Created a directory: ./Surmagic 

Fatal error: could not load resource bundle: from /usr/local/bin/surmagic_surmagic.bundle or /Users/mgy/Developer/surmagic/surmagic/.build/x86_64-apple-macosx/release/surmagic_surmagic.bundle: file surmagic/resource_bundle_accessor.swift, line 11
[1]    82586 illegal hardware instruction  surmagic init

To Reproduce
Steps to reproduce the behavior:

  1. cd to Xcode project directory
  2. run surmagic init
  3. See error

Expected behavior
The Surfile is generated and no error thrown.

Screenshots
...

macOS (please complete the following information):
ℹ️ Printing the information:


1.2.2


Xcode 12.3
Build version 12C33


ProductName: macOS
ProductVersion: 11.1
BuildVersion: 20C69


Additional context
...

@gurhub
Copy link
Owner

gurhub commented Jan 15, 2021

Hi miroslavkovac, thank you for the issue,

might be related to this issue:

https://forums.swift.org/t/swift-5-3-spm-resources-in-tests-uses-wrong-bundle-path/37051/16

...even if they're talking about the test targets. Our issue is related to the bundle path.

I'll watch that issue. Kindly, let me know If you'll find something useful about the case.

Till that time, stay healthy.

Best

Muhammed Gurhan Yerlikaya

@gurhub gurhub added the help wanted Extra attention is needed label Jan 15, 2021
@stanislas-huma
Copy link

I actually experienced this issue too

1 similar comment
@newstrong
Copy link

I actually experienced this issue too

@gurhub
Copy link
Owner

gurhub commented Jan 25, 2021

Quick Note: init command it's just an easy way to create Surfile in the Surmagic directory. Since I couldn't fix this bug, you can easily create a Surmagic directory and a Surfile from the template:

https://github.com/gurhub/surmagic/wiki/What-is-the-Surfile

and use the library with ease 😊

Please check early comments on this page about the issue on SPM. I'll not wait for them to fix probably, I'm gonna switch the method for creating that file.

Thank you for your support.

Please feel free to contribute.

Best

@gurhub
Copy link
Owner

gurhub commented Apr 25, 2021

Thank you all for your passion 😊
Please check version 1.2.3: https://github.com/gurhub/surmagic/releases/tag/1.2.3.
From now Surmagic will search Surfile under the "SM" directory.✌🏻

@gurhub gurhub closed this as completed Apr 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants