iphone - iOS jailbreak: simple alert is not getting displayed in `applicationDidFinishLaunching` -


i newbie jailbreak tweak development.now want alert dialog when springboard loaded first time.

tweak.mx

%hook springboard  -(void)applicationdidfinishlaunching:(id)application {     %orig;      uialertview *alert = [[uialertview alloc] initwithtitle:@"welcome" message:@"hello akash " delegate:nil cancelbuttontitle:@"thanx" otherbuttontitles:nil];     [alert show];     [alert release]   }  %end 

makefile

include theos/makefiles/common.mk  archs = armv7 armv7s arm64  test_frameworks= uikit  tweak_name = test test_files = tweak.xm  include $(theos_make_path)/tweak.mk  after-install::     install.exec "killall -9 springboard" 

so here compile tweak properly,and iphone getting respring.so @ point should alert,but not getting on screen.what step missing

i using iphone 5s ios 7.1.2

edit

i see console output logs below error

<error>: ms:error: dlopen(/library/mobilesubstrate/dynamiclibraries/test.dylib, 9): no suitable image found.  did find:         /library/mobilesubstrate/dynamiclibraries/test.dylib: no matching architecture in universal wrapper 

and see filetype using file test.dylib

test.dylib: mach-o universal binary 2 architectures test.dylib (for architecture armv7):    mach-o dynamically linked shared library arm test.dylib (for architecture armv7s):   mach-o dynamically linked shared library arm 

that means,i not getting arm64 architecture thats why failing on iphone 5s because 64bit,can point out how ?

finally found solution,

just need put archs = armv7 armv7s arm64 before include theos/makefiles/common.mk


so makefile as

archs = armv7 armv7s arm64   include theos/makefiles/common.mk   test_frameworks= uikit  tweak_name = test test_files = tweak.xm  include $(theos_make_path)/tweak.mk  after-install::     install.exec "killall -9 springboard" 

Comments

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -