Installing iOS apps from local plist (null) would like to install

I am trying to install an iOS application from plist in the device file system.

NSString *launchNewPlistURL = [NSString stringWithFormat:@"itms-services://?action=download-manifest&url=file://%@",[self saveFilePath]];
[[UIApplication sharedApplication]openURL:[NSURL URLWithString:launchNewPlistURL]];

And they will tell me: "(null) would like to install {myappname}". Usually (null) is the domain name that plist comes from, but in this case it is null, like a local file.

Is it possible to specify a name in plist or pass a fake domain name in the URL?

Thanks Dan

+5
source share
2 answers

You can use the MongooseDaemon project to create a local HTTP server.

With a domain like: http://192.168.xxx.xxx/yourplist.plist to install it.

, , IPA. IPA 15 , , , .

+3

Mongoose, CocoaHttpServer.

Mongoose 20% , plist/IPA. localhost would like to install , , . , , , . "" .

, 10-15 , CocoaHttpServer . , , Mongoose 10%.

self.httpServer = [[HTTPServer alloc] init];
[self.httpServer setType:@"_http._tcp."];
[self.httpServer setPort:8080];
//This is just a path where I save my IPA and Plist file locally.  
//In my case it /{NSDocumentDirectory}/install/
[self.httpServer setDocumentRoot:[self pathForLocalInstallFiles]];

URL- plist :

NSURL *plistUrl = [NSURL URLWithString:@"itms-services://?action=download-manifest&url=http://localhost:8080/appname.plist"];
[[UIApplication sharedApplication] openURL:plistUrl];

plist, URL-, IPA, , file://, http://localhost/.

+2

All Articles