Skip to content
Guest Big Announcement

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

Featured Replies

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
  • Views 11.9k
  • Created
  • Last Reply

Archived

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

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.