akemin-dayo / simject

simject is a command-line tool and iOS dynamic library that allows developers to easily test their tweaks on the iOS Simulator.
BSD 2-Clause "Simplified" License
486 stars 55 forks source link

Permission denied when trying compile any tweak. #61

Closed ArielGavrielov closed 3 years ago

ArielGavrielov commented 4 years ago

i got this error: ` hMBPslAriel2:simjectExampleTweak gavrielov$ make setup ==> Cleaning…

Making all for tweak simjectExampleTweak… ==> Preprocessing simjectExampleTweak.xm… ==> Compiling simjectExampleTweak.xm (x86_64)… ==> Linking tweak simjectExampleTweak (x86_64)… ==> Generating debug symbols for simjectExampleTweak… ==> Stripping simjectExampleTweak (x86_64)… rm /Users/gavrielov/simject/simjectExampleTweak/.theos/obj/iphone_simulator/x86_64/simjectExampleTweak.xm.mm ==> Preprocessing simjectExampleTweak.xm… ==> Compiling simjectExampleTweak.xm (i386)… ==> Linking tweak simjectExampleTweak (i386)… ==> Generating debug symbols for simjectExampleTweak… ==> Stripping simjectExampleTweak (i386)… rm /Users/gavrielov/simject/simjectExampleTweak/.theos/obj/iphone_simulator/i386/simjectExampleTweak.xm.mm ==> Merging tweak simjectExampleTweak… ==> Signing simjectExampleTweak… rm: /opt/simject/simjectExampleTweak.dylib: Permission denied make: *** [setup] Error 1 `

and if i try with sudo: hMBPslAriel2:simjectExampleTweak gavrielov$ sudo make setup Makefile:10: /makefiles/common.mk: No such file or directory Makefile:16: /tweak.mk: No such file or directory make: *** No rule to make target /tweak.mk. Stop.

any solves?

ArielGavrielov commented 4 years ago

@angelXwind @PoomSmart

PoomSmart commented 4 years ago

Declare THEOS variable property as per the documentation: https://github.com/theos/theos/wiki/Installation-macOS

ArielGavrielov commented 4 years ago

`hMBPslAriel2:grabbi2 gavrielov$ echo $theos

/Users/gavrielov/theos` its declared.. @PoomSmart

PoomSmart commented 4 years ago

Isn’t it case-sensitive? Try declaring THEOS instead.