Skip to content
Guest Big Announcement

I try to compile package and get errors

Featured Replies

When compiling I get this it points to the 0 in 0xoffset also I have @DiDA theos folder 

Tweak.xm:5:11: error: implicit conversion from 'long long' to
      'vm_address_t' (aka 'unsigned int') changes value from
      4301151228 to 6183932 [-Werror,-Wconstant-conversion]
writeData(0<-----------x123456789,  0xE0031D2A);

 

here is my tweak.xm 

#include <substrate.h>
#include "writeData.h"

%ctor {
writeData(0x123456789,  0xE0031D2A);
}

 

here is my makefile 

ARCHS = armv7 arm64
TARGET = iphone:clang:latest:latest
#CFLAGS = -fobjc-arc
#THEOS_PACKAGE_DIR_NAME = debs

include theos/makefiles/common.mk

TWEAK_NAME = twdcheats
twdcheats_FILES = Tweak.xm
twdcheats_FRAMEWORKS = UIKit
twdcheats_LDFLAGS += -Wl,-segalign,4000

include $(THEOS_MAKE_PATH)/tweak.mk

after-install::
    install.exec "killall -9 SpringBoard"
include $(THEOS_MAKE_PATH)/aggregate.mk

 

 

Solved by Taylor Meyer

  • Author
3 hours ago, DiDA said:

The writeData you have does not support ARM64 offsets. You will need to use vm_writeData.h instead. :)

i am pissed i hate theos with a passion nothing can ever be tgfgao* perfect it always has to be freaking errors 

now i get this

Tweak.xm:5:1: error: use of undeclared identifier 'writeData'; did
      you mean 'vm_writeData'?
writeData(0x123456789,  0xE0031D2A);

^~~~~~~~~
vm_writeData
/var/mobile/twdcheats/writeData.h:110:6: note: 'vm_writeData'
      declared here
bool vm_writeData(long long offset,  unsigned int data) 

Updated by Taylor Meyer

  • Author
  • Solution
26 minutes ago, Taylor Meyer said:

i am pissed i hate theos with a passion nothing can ever be tgfgao* perfect it always has to be freaking errors 

now i get this

Tweak.xm:5:1: error: use of undeclared identifier 'writeData'; did
      you mean 'vm_writeData'?
writeData(0x123456789,  0xE0031D2A);

^~~~~~~~~
vm_writeData
/var/mobile/twdcheats/writeData.h:110:6: note: 'vm_writeData'
      declared here
bool vm_writeData(long long offset,  unsigned int data) 

NVM fixed it by changing 

writeData(0x123456789,  0xE0031D2A);

to

vm_writeData(0x123456789,  0xE0031D2A);

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.