Jump to content

I try to compile package and get errors


Go to solution Solved by Taylor Meyer,

6 posts in this topic

Recommended Posts

Posted

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

 

 

Posted

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

  • Like 1
Posted

where do i get it at 

15 minutes ago, DiDA said:

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

 

Posted
2 minutes ago, Taylor Meyer said:

where do i get it at 

 

Message me!

Posted (edited)
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
  • Solution
Posted
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

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines