Results 1 to 4 of 4
Discuss App not displaying in Spring at the iPhone Developer Exchange - Hackint0sh.org; hi all, i'm new on iphone app development. i've developed a little app and wanted ...
  1. #1
    Newbie Array

    Join Date
    Jun 2009
    Posts
    3
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    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.



  2. #2
    Rookie Array

    Join Date
    May 2008
    Posts
    15
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    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..

  3. #3
    Newbie Array

    Join Date
    Jun 2009
    Posts
    3
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    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.

  4. #4
    Newbie Array

    Join Date
    Jun 2009
    Posts
    3
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

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

    thx brew

 

 

Similar Threads

  1. Replies: 1
    Last Post: 03-08-2010, 09:30 AM
  2. Displaying MPEG-4 frames
    By stroumpf in forum iPhone Developer Exchange
    Replies: 1
    Last Post: 04-03-2009, 10:29 PM
  3. [Req] Displaying HTML files
    By Tonyd in forum Free Toolchain Software (Cydia App's)
    Replies: 2
    Last Post: 06-09-2008, 04:49 PM
  4. [MobileSafari] Displaying a live webcam ?
    By apple2e in forum Free Toolchain Software (Cydia App's)
    Replies: 5
    Last Post: 05-24-2008, 04:05 AM
  5. Itunes Displaying update to 1.1.3???!!!
    By Iphonejcd in forum iPhone "2G" (Rev. 1)
    Replies: 9
    Last Post: 12-15-2007, 07:52 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 09:45 AM.
twitter, follow us!