Home User CP Donate Chat Register Today!  
  Get New posts Faq / Help?
   


Go Back   Hackint0sh > Projects and Hacks > iPhone > Applications & Development > iPhone Developer Exchange

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-21-2009, 11:38 AM
littlep13
Status: Offline
Junior Member
 
Join Date: Jun 2009
Posts: 3
Rep Power: 0
littlep13 is on a distinguished road
Default App not displaying in Spring

hi all,

i'm new on iphone app development. i've developed a little app and wanted to test it on my iphone 3g (os 2.2.1). after sending the app to my iphone with SSH and respring by BossPrefs, i couldn't find my app in the springboard.

before this little app, i did deploy some sample apps which i downloaded from the net successfully.

can anyone give me some idea about what went wrong?

thx

Last edited by littlep13; 06-21-2009 at 11:48 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 06-28-2009, 01:13 PM
TheBrew
Status: Offline
Junior Member
 
Join Date: May 2008
Posts: 15
Rep Power: 0
TheBrew is on a distinguished road
Default

Quote:
Originally Posted by littlep13 View Post
hi all,

i'm new on iphone app development. i've developed a little app and wanted to test it on my iphone 3g (os 2.2.1). after sending the app to my iphone with SSH and respring by BossPrefs, i couldn't find my app in the springboard.

before this little app, i did deploy some sample apps which i downloaded from the net successfully.

can anyone give me some idea about what went wrong?

thx
You have to notify the SB that something has changed.

If you have Cydia installed, try installing any App that would end up with an icon in the SpringBoard and Cydia should update the app-database with yours too.

You can get the same result by compiling and running this little program from a root SSH terminalsession on the phone:

Code:
#import <UIKit/UIKit.h>
#include <notify.h>

BOOL updateCache()
{
	#define Cache_ "/private/var/mobile/Library/Caches/com.apple.mobile.installation.plist"
	NSMutableDictionary *cache = [[NSMutableDictionary alloc] initWithContentsOfFile:@ Cache_];
	if (cache != nil)
	{
        NSFileManager *manager = [NSFileManager defaultManager];
        NSError *error = nil;
        id sys = [cache objectForKey:@"System"];
        if (sys != nil)
		{
			[sys removeAllObjects];
			NSArray *apps = [manager contentsOfDirectoryAtPath:@"/Applications" error:&error];
			if (apps != nil) {
				for (NSString *app in apps)
					if ([app hasSuffix:@".app"]) {
						NSString *path = [@"/Applications" stringByAppendingPathComponent:app];
						NSString *plist = [path stringByAppendingPathComponent:@"Info.plist"];
						NSMutableDictionary *info = [[NSMutableDictionary alloc] initWithContentsOfFile:plist];
						if (info != nil) {
							if ([info objectForKey:@"CFBundleIdentifier"] != nil) {
								[info setObject:path forKey:@"Path"];
								[info setObject:@"System" forKey:@"ApplicationType"];
								[sys setObject:info forKey:[info objectForKey:@"CFBundleIdentifier"]];
							}
							[info release];
						}
					}
			}
			[cache writeToFile:@ Cache_ atomically:YES];
			system([[NSString stringWithFormat:@"chown root %@",@ Cache_] cString]);
		}
		notify_post("com.apple.mobile.application_installed");
		[cache release];
		return YES;
	}
	return NO;
}

int main(int argc, char *argv[])
{
	NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
	updateCache();
	[pool release];
	return 0;
}
No guarantees and props to Saurik..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 06-29-2009, 02:05 AM
littlep13
Status: Offline
Junior Member
 
Join Date: Jun 2009
Posts: 3
Rep Power: 0
littlep13 is on a distinguished road
Default

thx for your reply.

the respring function by BossPrefs should notify SB that there was a new app, shouldn't it? that's what i found online. ppl are recommending BossPrefs on respringing SB.

i will try downloading something from Cydia today and see if it will make any difference.

Last edited by littlep13; 06-29-2009 at 02:20 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #4 (permalink)  
Old 06-29-2009, 09:57 AM
littlep13
Status: Offline
Junior Member
 
Join Date: Jun 2009
Posts: 3
Rep Power: 0
littlep13 is on a distinguished road
Default

it worked! i'm so confused now. the respring function of BossPrefs is not working as expected.........

thx brew
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
AppleInsider: Future MacBook Pro-bound Intel chips due next spring hackint0sh Latest Headlines 0 10-23-2008 07:40 PM
MacNN: Intel plans Montevina CPU update in spring hackint0sh Latest Headlines 0 10-23-2008 03:00 PM
MacNN: Spring Cleaning 10 adds photo, movie finders, more hackint0sh Latest Headlines 0 09-09-2008 03:40 AM
MacNN: US cellphone sales down 13% in spring hackint0sh Latest Headlines 0 08-19-2008 06:20 PM
[Sim Tray] Broken sim tray spring...is there a fix? anthongy817 Hardware 0 02-09-2008 07:14 PM



All times are GMT +2. The time now is 09:59 AM.



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2 Ad Management by RedTyger
follow us on Twitter!

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105