Jump to content

[Tutorial] How to update your Tweak/Hack to support iOS 9!


Rook

48 posts in this topic

Recommended Posts

Updated

With the release of iOS 9, many hacks/tweaks will cause the app to crash or will not affect it at all. This is because iOS 9 changed the 32-bit pagesize on 64-bit CPUs from 4096 bytes to 16384 - said Saurik on Twitter.
 
To fix this, you will need to add this line in your Makefile:

ProjectName_LDFLAGS += -Wl,-segalign,4000

And compile your project.
 
 
Example Makefile:

ARCHS = armv7 arm64
TARGET = iphone:clang:latest:latest


include theos/makefiles/common.mk
 
TWEAK_NAME = ProjectName
ProjectName_FILES = Tweak.xm
ProjectName_FRAMEWORKS = UIKit
ProjectName_LDFLAGS += -Wl,-segalign,4000
 
include $(THEOS_MAKE_PATH)/tweak.mk
 
 
SUBPROJECTS += ProjectName
include $(THEOS_MAKE_PATH)/aggregate.mk

 
The pinned templates in tools section have already been updated.

Sources:
https://twitter.com/saurik/status/654198997024796672

http://iphonedevwiki.net/index.php/Updating_extensions_for_iOS_9

  • Replies 47
  • Created
  • Last Reply

Archived

This topic is now archived and is closed to further replies.

×
  • 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