1

I am using ios 5.1.1 jailbroken iphone. I read through Nate's solution how to get the message when receiving the "kCTMessageReceivedNotification" notification on IOS5 and successfully build ipa. But how could I install it into /Applications/? I tried to use iFunbox, or some other tools, they all install it in sandbox (/private/....) folder and it failed to open sms.db.

Could anyone guide?

Community
  • 1
  • 1
levin
  • 13
  • 3
  • 1
    You don't need ipa. Build your app and copy *.app folder into /Applications/ on your device. Then respring. – creker Nov 18 '13 at 06:35
  • Actually a respring won't show the icon; you need to force the icon cache to be reloaded with `uicache` (you must run this as the `mobile` user) – kirb Nov 18 '13 at 09:10
  • hi kirb, it didn't give me chance to verify. I have extract xx.app folder and directly put into /Applications. When i install "respring", my device was dead. So I did restart, the icon is there. However, clicking my app icon, it quickly flashed once, as if it displayed alreayed but quit straight away. Please note if I install the ipa in normal, it worked. – levin Nov 18 '13 at 10:39
  • by the way, I have used ifile to verify the permission of xx.app folder in /Applications/ is 777 – levin Nov 18 '13 at 10:45
  • 1
    You need to set permissions for the app binary, not xx.app folder. That's why it quits right away. – creker Nov 18 '13 at 14:22

1 Answers1

0

Take Your .ipa file and extract it with something like 7zip. There should be a folder called "Payload." Drop the ".app" folder in there into /Applications/. Then SSH into your iPhone and run chmod -R 777 /Applications/<yourappname>.app/

Taconut
  • 951
  • 4
  • 10
  • 29
  • This approach worked! I also proved creker's solution. Thank you all. Sorry, taconut, I can't vote your solution as i don't have sufficient permission but your approach (also creker's) worked. – levin Nov 20 '13 at 06:55
  • Actually, this is close, but not quite correct. You don't rename the `Payload` folder. You would simply copy the .app folder, that is *inside* the Payload folder. There's also no need to set everything to `777` permissions. Only the app binary needs to be executable, and it probably should have permissions 775 or 755. – Nate Nov 21 '13 at 03:55
  • Sorry about that. Its just easier to chmod -R rather that give the user 10-step instructions or make them execute a really long shell script. I'll edit my post and make it better. – Taconut Nov 21 '13 at 14:52
  • Also, I'm thinking the shell script would be something like: `$name = ;chmod -R 775 /Applications/$name.app/;chmod 777 /Applications/$name.app/$name` I'm not the best with bash, so that may not be 100% accurate – Taconut Nov 21 '13 at 14:55