Skip to content
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.

Commit

Permalink
unable to compile a working preference bundle fat binary, arm64 remov…
Browse files Browse the repository at this point in the history
…ed from pref bundle
  • Loading branch information
k3a committed Mar 17, 2014
1 parent 26af78d commit a5edd35
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ SUBPROJECTS = SEPrefs speakevent setoggle speakeventssupport #DV

# use latest SDK (7.0) but use iOS 5.0 as deployment target (5.1 SDK)
export TARGET=iphone:latest:5.0
export ARCHS = armv6 arm64
export ARCHS = armv7 arm64

CLD_SOURCES=cld/encodings/compact_lang_det/cldutil.cc \
cld/encodings/compact_lang_det/cldutil_dbg_empty.cc \
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ In order to complile it, set the correct theos symlink to your theos installatio
There is also 'make test' makefile rule but it won't work without modifying theos. I used it to automate package creation, installing the packge on the device and respringing the device. This is not needed though as you can install the package standard theos way or via 'dpkg -i path to deb' on the device.

If you have trouble compiling it, you can contact me at 'se (at) k3a . me' and I will try to help you and/or update this readme.

For some reason I was unable to compile fat armv7/arm64 preference bundle.
When loading such a bundle in the Preferences, this was shown in the syslog:
Preferences[1514]: Error loading /Library/PreferenceBundles/SEPrefs.bundle/SEPrefs: dlopen(/Library/PreferenceBundles/SEPrefs.bundle/SEPrefs, 265): bad rebase opcode 222 in /Library/PreferenceBundles/SEPrefs.bundle/SEPrefs
4 changes: 2 additions & 2 deletions SEPrefs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ DEBUG = 1
include theos/makefiles/common.mk

# use latest SDK but use iOS 5.0 as deployment target (5.1 SDK)
export TARGET=iphone:5.1:5.0
export ARCHS = armv6 # arm64
export TARGET=iphone:latest:5.0
export ARCHS = armv7

BUNDLE_NAME = SEPrefs
SEPrefs_FILES = SEPrefs.mm SEPrefsAppToggleController.mm SEHourController.mm SELangPrefs.mm
Expand Down
2 changes: 1 addition & 1 deletion layout/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: me.k3a.speakevents
Name: SpeakEvents
Version: 1.2.0
Version: 1.3.0
Homepage: http://k3a.me
Priority: standard
Architecture: iphoneos-arm
Expand Down
3 changes: 3 additions & 0 deletions setoggle/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ LIBRARY_NAME = Toggle
Toggle_FILES = Toggle.mm
Toggle_INSTALL_PATH = /var/mobile/Library/SBSettings/Toggles/SE

export TARGET=iphone:latest:5.0
export ARCHS = armv7 arm64

include $(THEOS_MAKE_PATH)/library.mk

test: distclean package install
Expand Down
3 changes: 3 additions & 0 deletions speakevent/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ TOOL_NAME = speakevent
speakevent_FILES = main.mm
speakevent_PRIVATE_FRAMEWORKS = AppSupport

export TARGET=iphone:latest:5.0
export ARCHS = armv7 arm64

include $(THEOS_MAKE_PATH)/tool.mk
3 changes: 3 additions & 0 deletions speakeventssupport/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ GO_EASY_ON_ME = 1

include theos/makefiles/common.mk

export TARGET=iphone:latest:5.0
export ARCHS = armv7 arm64

TWEAK_NAME = SpeakEventsSupport
SpeakEventsSupport_FILES = Tweak.xm
SpeakEventsSupport_FRAMEWORKS = MapKit
Expand Down

0 comments on commit a5edd35

Please sign in to comment.