├── AppStaller
├── en.lproj
│ └── InfoPlist.strings
├── Icons
│ ├── icon128.png
│ ├── icon16.png
│ └── icon32.png
├── Images.xcassets
│ └── AppIcon.appiconset
│ │ ├── icon16.png
│ │ ├── icon32.png
│ │ ├── icon128.png
│ │ └── Contents.json
├── AppStaller-Prefix.pch
├── main.m
├── NSFileHandle+Readable.h
├── NSFileHandle+Readable.m
├── BPPAppDelegate.h
├── AppStaller-Info.plist
├── BPPAppDelegate.m
└── Base.lproj
│ └── MainMenu.xib
├── prep_cert
├── AppStaller.xcodeproj
├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ ├── xcuserdata
│ │ └── gildas.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ └── xcshareddata
│ │ └── AppStaller.xccheckout
├── xcuserdata
│ └── gildas.xcuserdatad
│ │ ├── xcschemes
│ │ ├── xcschememanagement.plist
│ │ └── AppStaller.xcscheme
│ │ └── xcdebugger
│ │ └── Breakpoints_v2.xcbkptlist
└── project.pbxproj
├── .gitignore
├── SimpleSecureHTTPServer.py
├── README.md
└── LICENSE
/AppStaller/en.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
1 | /* Localized versions of Info.plist keys */
2 |
3 |
--------------------------------------------------------------------------------
/AppStaller/Icons/icon128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BigPapoo/AppStaller/HEAD/AppStaller/Icons/icon128.png
--------------------------------------------------------------------------------
/AppStaller/Icons/icon16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BigPapoo/AppStaller/HEAD/AppStaller/Icons/icon16.png
--------------------------------------------------------------------------------
/AppStaller/Icons/icon32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BigPapoo/AppStaller/HEAD/AppStaller/Icons/icon32.png
--------------------------------------------------------------------------------
/AppStaller/Images.xcassets/AppIcon.appiconset/icon16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BigPapoo/AppStaller/HEAD/AppStaller/Images.xcassets/AppIcon.appiconset/icon16.png
--------------------------------------------------------------------------------
/AppStaller/Images.xcassets/AppIcon.appiconset/icon32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BigPapoo/AppStaller/HEAD/AppStaller/Images.xcassets/AppIcon.appiconset/icon32.png
--------------------------------------------------------------------------------
/AppStaller/Images.xcassets/AppIcon.appiconset/icon128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BigPapoo/AppStaller/HEAD/AppStaller/Images.xcassets/AppIcon.appiconset/icon128.png
--------------------------------------------------------------------------------
/prep_cert:
--------------------------------------------------------------------------------
1 | openssl req -new -newkey rsa:4096 -days 365 -nodes -x509 -subj "/CN=$1" -keyout appstaller.key -out appstaller.cer
2 |
3 | cat appstaller.key appstaller.cer > server.pem
4 |
--------------------------------------------------------------------------------
/AppStaller.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/AppStaller/AppStaller-Prefix.pch:
--------------------------------------------------------------------------------
1 | //
2 | // Prefix header
3 | //
4 | // The contents of this file are implicitly included at the beginning of every source file.
5 | //
6 |
7 | #ifdef __OBJC__
8 | #import
9 | #endif
10 |
--------------------------------------------------------------------------------
/AppStaller.xcodeproj/project.xcworkspace/xcuserdata/gildas.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BigPapoo/AppStaller/HEAD/AppStaller.xcodeproj/project.xcworkspace/xcuserdata/gildas.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/AppStaller/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // AppStaller
4 | //
5 | // Created by Gildas Quiniou on 07/01/2014.
6 | // Copyright (c) 2014 Gildas Quiniou. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | int main(int argc, const char * argv[])
12 | {
13 | return NSApplicationMain(argc, argv);
14 | }
15 |
--------------------------------------------------------------------------------
/AppStaller/NSFileHandle+Readable.h:
--------------------------------------------------------------------------------
1 | //
2 | // NSFileHandle+Readable.h
3 | // AppStaller
4 | //
5 | // Created by Gildas Quiniou on 07/01/2014.
6 | // Copyright (c) 2014 Gildas Quiniou. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface NSFileHandle(Readable)
12 |
13 | - (BOOL)isReadable;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Exclude the build directory
2 | build/*
3 |
4 | # Exclude temp nibs and swap files
5 | *~.nib
6 | *.swp
7 |
8 | # Exclude OS X folder attributes
9 | .DS_Store
10 |
11 | # Exclude user-specific XCode 3 and 4 files
12 | *.mode1
13 | *.mode1v3
14 | *.mode2v3
15 | *.perspective
16 | *.perspectivev3
17 | *.pbxuser
18 | xcuserdata/
19 | project.xcworkspace/
--------------------------------------------------------------------------------
/AppStaller/NSFileHandle+Readable.m:
--------------------------------------------------------------------------------
1 | //
2 | // NSFileHandle+Readable.m
3 | // AppStaller
4 | //
5 | // Created by Gildas Quiniou on 07/01/2014.
6 | // Copyright (c) 2014 Gildas Quiniou. All rights reserved.
7 | //
8 |
9 | // http://pastebin.com/8QuxVGVj
10 |
11 | #import
12 |
13 | @implementation NSFileHandle(Readable)
14 |
15 | - (BOOL)isReadable
16 | {
17 | int fd = [self fileDescriptor];
18 | fd_set fdset;
19 | struct timeval tmout = { 0, 0 }; // return immediately
20 | FD_ZERO(&fdset);
21 | FD_SET(fd, &fdset);
22 | if (select(fd + 1, &fdset, NULL, NULL, &tmout) <= 0)
23 | return NO;
24 | return FD_ISSET(fd, &fdset);
25 | }
26 |
27 | @end
28 |
--------------------------------------------------------------------------------
/AppStaller/BPPAppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // BPPAppDelegate.h
3 | // AppStaller
4 | //
5 | // Created by Gildas Quiniou on 07/01/2014.
6 | // Copyright (c) 2014 Gildas Quiniou. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface BPPAppDelegate : NSObject
12 | {
13 | NSTextField *txtUrl;
14 | NSFileHandle *fdStdout;
15 | NSTask *task;
16 | NSButton *btnGo;
17 | }
18 |
19 | @property (assign) IBOutlet NSWindow *window;
20 | @property (retain) IBOutlet NSTextField *txtUrl;
21 | @property (retain) IBOutlet NSButton *btnGo;
22 |
23 | - (IBAction)go:(id)sender;
24 |
25 | @end
26 |
--------------------------------------------------------------------------------
/AppStaller.xcodeproj/xcuserdata/gildas.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | AppStaller.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 8E5F56B2187C457200EC4F19
16 |
17 | primary
18 |
19 |
20 | 8E5F56D3187C457200EC4F19
21 |
22 | primary
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/AppStaller/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "16x16",
5 | "idiom" : "mac",
6 | "filename" : "icon16.png",
7 | "scale" : "1x"
8 | },
9 | {
10 | "idiom" : "mac",
11 | "size" : "16x16",
12 | "scale" : "2x"
13 | },
14 | {
15 | "size" : "32x32",
16 | "idiom" : "mac",
17 | "filename" : "icon32.png",
18 | "scale" : "1x"
19 | },
20 | {
21 | "idiom" : "mac",
22 | "size" : "32x32",
23 | "scale" : "2x"
24 | },
25 | {
26 | "size" : "128x128",
27 | "idiom" : "mac",
28 | "filename" : "icon128.png",
29 | "scale" : "1x"
30 | },
31 | {
32 | "idiom" : "mac",
33 | "size" : "128x128",
34 | "scale" : "2x"
35 | },
36 | {
37 | "idiom" : "mac",
38 | "size" : "256x256",
39 | "scale" : "1x"
40 | },
41 | {
42 | "idiom" : "mac",
43 | "size" : "256x256",
44 | "scale" : "2x"
45 | },
46 | {
47 | "idiom" : "mac",
48 | "size" : "512x512",
49 | "scale" : "1x"
50 | },
51 | {
52 | "idiom" : "mac",
53 | "size" : "512x512",
54 | "scale" : "2x"
55 | }
56 | ],
57 | "info" : {
58 | "version" : 1,
59 | "author" : "xcode"
60 | }
61 | }
--------------------------------------------------------------------------------
/AppStaller/AppStaller-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | ${EXECUTABLE_NAME}
9 | CFBundleIconFile
10 |
11 | CFBundleIdentifier
12 | com.bigpapoo.${PRODUCT_NAME:rfc1034identifier}
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | ${PRODUCT_NAME}
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | 1.0
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | 1
25 | LSApplicationCategoryType
26 | public.app-category.developer-tools
27 | LSMinimumSystemVersion
28 | ${MACOSX_DEPLOYMENT_TARGET}
29 | NSHumanReadableCopyright
30 | Copyright © 2014 Gildas Quiniou. All rights reserved.
31 | NSMainNibFile
32 | MainMenu
33 | NSPrincipalClass
34 | NSApplication
35 |
36 |
37 |
--------------------------------------------------------------------------------
/AppStaller.xcodeproj/project.xcworkspace/xcshareddata/AppStaller.xccheckout:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDESourceControlProjectFavoriteDictionaryKey
6 |
7 | IDESourceControlProjectIdentifier
8 | C8CB9178-4F97-4EC3-A5BA-231D69DB9738
9 | IDESourceControlProjectName
10 | AppStaller
11 | IDESourceControlProjectOriginsDictionary
12 |
13 | B6CC570F-5346-476F-8A0F-21EA5145F47E
14 | https://github.com/BigPapoo/AppStaller.git
15 |
16 | IDESourceControlProjectPath
17 | AppStaller.xcodeproj/project.xcworkspace
18 | IDESourceControlProjectRelativeInstallPathDictionary
19 |
20 | B6CC570F-5346-476F-8A0F-21EA5145F47E
21 | ../..
22 |
23 | IDESourceControlProjectURL
24 | https://github.com/BigPapoo/AppStaller.git
25 | IDESourceControlProjectVersion
26 | 110
27 | IDESourceControlProjectWCCIdentifier
28 | B6CC570F-5346-476F-8A0F-21EA5145F47E
29 | IDESourceControlProjectWCConfigurations
30 |
31 |
32 | IDESourceControlRepositoryExtensionIdentifierKey
33 | public.vcs.git
34 | IDESourceControlWCCIdentifierKey
35 | B6CC570F-5346-476F-8A0F-21EA5145F47E
36 | IDESourceControlWCCName
37 | AppStaller
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/SimpleSecureHTTPServer.py:
--------------------------------------------------------------------------------
1 | '''
2 | SimpleSecureHTTPServer.py - simple HTTP server supporting SSL.
3 |
4 | Source : http://dennis.dieploegers.de/doku.php/my2cents/creating_a_ssl_http_server_in_python
5 | From original source : http://code.activestate.com/recipes/442473-simple-http-server-supporting-ssl-secure-communica/
6 | Certificate generation : http://blog.httpwatch.com/2013/12/12/five-tips-for-using-self-signed-ssl-certificates-with-ios/
7 |
8 | - replace fpem with the location of your .pem server file.
9 | - the default port is 443.
10 |
11 | usage: python SimpleSecureHTTPServer.py
12 | '''
13 | import socket, os
14 | from SocketServer import BaseServer
15 | from BaseHTTPServer import HTTPServer
16 | from SimpleHTTPServer import SimpleHTTPRequestHandler
17 | import ssl
18 |
19 |
20 | class SecureHTTPServer(HTTPServer):
21 | def __init__(self, server_address, HandlerClass):
22 | BaseServer.__init__(self, server_address, HandlerClass)
23 | fpem = 'server.pem'
24 | self.socket = ssl.SSLSocket(
25 | socket.socket(self.address_family,self.socket_type),
26 | keyfile = fpem,
27 | certfile = fpem
28 | )
29 |
30 | self.server_bind()
31 | self.server_activate()
32 |
33 |
34 | class SecureHTTPRequestHandler(SimpleHTTPRequestHandler):
35 | def setup(self):
36 | self.connection = self.request
37 | self.rfile = socket._fileobject(self.request, "rb", self.rbufsize)
38 | self.wfile = socket._fileobject(self.request, "wb", self.wbufsize)
39 |
40 |
41 | def test(HandlerClass = SecureHTTPRequestHandler,
42 | ServerClass = SecureHTTPServer):
43 | server_address = ('', 8000) # (address, port)
44 | httpd = ServerClass(server_address, HandlerClass)
45 | sa = httpd.socket.getsockname()
46 | print "Serving HTTPS on", sa[0], "port", sa[1], "..."
47 | httpd.serve_forever()
48 |
49 |
50 | if __name__ == '__main__':
51 | test()
52 |
--------------------------------------------------------------------------------
/AppStaller.xcodeproj/xcuserdata/gildas.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
8 |
20 |
21 |
22 |
24 |
36 |
37 |
38 |
40 |
52 |
53 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/AppStaller.xcodeproj/xcuserdata/gildas.xcuserdatad/xcschemes/AppStaller.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
33 |
39 |
40 |
41 |
42 |
43 |
49 |
50 |
51 |
52 |
61 |
62 |
68 |
69 |
70 |
71 |
72 |
73 |
79 |
80 |
86 |
87 |
88 |
89 |
91 |
92 |
95 |
96 |
97 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # AppStaller
2 |
3 | ## What is it for
4 | This is a humble replacement of the Apple’s iPhone Utility for installing Adhoc apps on iOS devices OTA (Over The Air).
5 | iPhone Utility is broken (at least for the app installation feature) when ran on OS X Mavericks.
6 |
7 | ## What's New
8 | ### V1.1
9 | Added HTTPS support required with iOS 7.1+ (Also works with older versions)
10 |
11 | ## Requirements
12 | * Python located at `/usr/bin/python` (which should be the default on OS X, can be changed in source code)
13 | * No need for Apache or any other web server, it’s python that will do the trick
14 | * OpenSSL
15 | * Free TCP port 8000 (can be changed in source code and Python script)
16 | * Fixed IP highly recommended (due to SSL certificate)
17 |
18 | ## Usage
19 | I won’t go through the steps required to build Adhoc ipa files, many tutos are available on the Web.
20 | If don’t feel comfortable with Adhoc, ipa, Organizer etc., chances are that this tool is not useful for you.
21 | Steps you will need to export your ipa file:
22 |
23 | * XCode Organizer > Distribute > Save for Enterprise & Adhoc
24 | * Check [X] Save for Entreprise Distribution
25 | * No need to fill the Application URL neither the Title. Even stated as « required » those fields will
26 | be filled by AppStaller automagically later
27 | * Generate your ipa file **in the same directory** where AppStaller resides (This is important)
28 |
29 | That’s it. All you need to do now is simply start AppStaller and click GO.
30 | You will then be able to install your app directly from your device by opening on Mobile Safari
31 | the URL displayed in AppStaller. Wait for the install to complete and then quit AppStaller.
32 |
33 | Of course, only devices listed in the adhoc provisioning profile can install the app unless you
34 | are using an Enterprise provisioning profile.
35 |
36 | ##### Regarding SSL (HTTPS)
37 | Since iOS7.1, OTA installations can only be done through HTTPS connections.
38 |
39 | You will need 2 more initial (done once) steps to do so. AppStaller will prepare all the stuff for you when you first launch it, a message will show you where to find the related file:
40 |
41 | * Generate a SSL certificate (auto-prepared)
42 | * Install the public key of the certificate onto any iOS device that will install apps from AppStaller. You will need to send this certificate either by mail (simplest way) or any other method. As the certificate is self-signed, you will be warned and asked if you trust it when installing it on the device. Do not worry, this certificate is generated by yourself for your own usage, so... hmmm... you trust yourself, hopefully! :-D
43 |
44 | If you own an official SSL certificate you can use it of course, but this is out of the scope of this doc, and you probably know how to install and use it (hint: filename is "server.pem"). With such a certificate you won't get any warning from your device.
45 |
46 |
47 | ## Known bugs and subtleties
48 | If AppStaller dies or you kill it, the Python process may still be running and will prevent it to run
49 | again later on, so kill it from the Activity Monitor if this happens.
50 |
51 | ## Synchronizing big .ipa files over Cloud services like Dropbox
52 | Adhoc .ipa files are simply .zip files. Due to the compressed nature of zip files, they perform poorly
53 | with Cloud synchronization. In most cases, 99% of the file need to be sent each time even if only a
54 | small part of the files contained in the archive have been really modified.
55 | When the archive is a few megabytes of data, it’s not a big problem, but when you’re dealing with big
56 | archives (tens of MB), a workaround embedded in AppStaller can greatly improve the synchronization time.
57 | Rather than dropping your archive on Dropbox (or any other service you use), follow these steps:
58 |
59 | * Rename your .ipa archive into .zip
60 | * Extract the contents of the .zip
61 | * Drop the app located in Payload (just the app, not the Payload directory itself) into Dropbox
62 |
63 | Then, on the other side, when the synchronization is done, rather than dropping the .ipa archive in the
64 | same directory where AppStaller is installed, your tester will just have to drop this received app.
65 | AppStaller will then repack a working .ipa archive for you. He then follows the same steps for the
66 | installation on the device. Btw, no need to have any certificate neither any provisioning profile as
67 | long as the app file received in Dropbox is kept untouched. Hope this will save your time as it saves mine!
68 |
69 | ## Disclaimers
70 | This fits my needs, no promise it will fit yours, but if it does, I will be glad to hear from you
71 | especially if you fix bugs or improve some parts. You can also share ideas, but no promise I
72 | will have time to improve it any time soon.
73 |
74 | ## Acknowledgment and Copyrights
75 | Icons from [http://www.tehkseven.net](http://www.tehkseven.net)
76 |
77 | Python HTTPS from [Dennis Plögers Website](http://dennis.dieploegers.de/doku.php/my2cents/creating_a_ssl_http_server_in_python)
78 |
79 | ## Author
80 | Gildas Quiniou
81 | [Big Papoo Company](http://www.bigpapoo.com) / [Fabulapps Games](http://www.fabulapps.com)
82 | [gildas@bigpapoo.com](mailto:gildas@bigpapoo.com)
83 |
84 |
--------------------------------------------------------------------------------
/AppStaller/BPPAppDelegate.m:
--------------------------------------------------------------------------------
1 |
2 | //
3 | // BPPAppDelegate.m
4 | // AppStaller
5 | //
6 | // Created by Gildas Quiniou on 07/01/2014.
7 | // Copyright (c) 2014 Gildas Quiniou. All rights reserved.
8 | //
9 |
10 | #import "BPPAppDelegate.h"
11 | #import "NSFileHandle+Readable.h"
12 |
13 | #define BPP_WEB_PORT 8000 // Changing this also needs to change SimpleSecureHTTPServer.py accordingly!!
14 | #define BPP_PYTHON @"/usr/bin/python"
15 | #define BPP_BASH @"/bin/bash"
16 | #define BPP_ZIP @"/usr/bin/zip"
17 |
18 | @interface BPPAppDelegate()
19 | @property (nonatomic, retain) NSFileHandle *fdStdout;
20 | @property (nonatomic, retain) NSTask *task;
21 | @end
22 |
23 | @implementation BPPAppDelegate
24 |
25 | @synthesize txtUrl, fdStdout, task, btnGo;
26 |
27 | - (void)applicationDidFinishLaunching:(NSNotification *)aNotification
28 | {
29 | // Insert code here to initialize your application
30 | }
31 |
32 | - (void)applicationWillTerminate:(NSNotification *)notification
33 | {
34 | [self cleanup];
35 | }
36 |
37 | - (void)cleanup
38 | {
39 | [self.task terminate];
40 | self.task = nil;
41 | }
42 |
43 |
44 | - (IBAction)go:(id)sender
45 | {
46 | NSString *anIp = nil;
47 | NSString *fileName = nil;
48 | NSString *path = nil;
49 | NSMutableString *aString = nil;
50 | NSRange aRange;
51 | NSMutableDictionary *aDict = nil;
52 |
53 | [self.btnGo setEnabled:NO];
54 | for (anIp in [[NSHost currentHost] addresses])
55 | {
56 | NSLog(@"IP %@, OK?", anIp);
57 | if (![anIp isEqualToString:@"127.0.0.1"] &&
58 | ([anIp rangeOfString:@"[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}" options:NSRegularExpressionSearch].location != NSNotFound))
59 | {
60 | NSLog(@"Selected IP: %@", anIp);
61 | break;
62 | }
63 | }
64 |
65 | [self.txtUrl setStringValue:@"...wait..."];
66 |
67 | aString = [NSMutableString stringWithString:@"\n"];
68 |
69 | path = [[[NSBundle mainBundle] bundlePath] stringByDeletingLastPathComponent];
70 |
71 | NSLog(@"Dir=%@", path);
72 |
73 | [[NSFileManager defaultManager] changeCurrentDirectoryPath:path];
74 |
75 | NSLog(@"WorkDir=%@", [[NSFileManager defaultManager] currentDirectoryPath]);
76 |
77 | // Create ipa from Payload
78 | for (NSString *aFile in [[NSFileManager defaultManager] contentsOfDirectoryAtPath:path error:nil])
79 | {
80 | NSTask *aTask;
81 |
82 | if ([aFile isEqualToString:@"AppStaller.app"])
83 | continue;
84 | aRange = [aFile rangeOfString:@".*\\.app" options:NSRegularExpressionSearch];
85 | if (aRange.location != NSNotFound)
86 | {
87 | fileName = [aFile substringToIndex:aRange.length - 4];
88 | NSLog(@"Creating %@.ipa", fileName);
89 | NSLog(@"Remove directory %@", [path stringByAppendingString:@"/Payload"]);
90 | [[NSFileManager defaultManager] removeItemAtPath:[path stringByAppendingString:@"/Payload"] error:NULL];
91 | NSLog(@"Create directory %@", [path stringByAppendingString:@"/Payload"]);
92 | [[NSFileManager defaultManager] createDirectoryAtPath:[path stringByAppendingString:@"/Payload"] withIntermediateDirectories:NO attributes:nil error:NULL];
93 | NSLog(@"Copy file %@ to directory %@", [NSString stringWithFormat:@"%@/%@", path, aFile], [NSString stringWithFormat:@"%@/Payload/%@", path, aFile]);
94 | [[NSFileManager defaultManager] copyItemAtPath:[NSString stringWithFormat:@"%@/%@", path, aFile] toPath:[NSString stringWithFormat:@"%@/Payload/%@", path, aFile] error:NULL];
95 | aTask = [[NSTask alloc] init];
96 | [aTask setLaunchPath:BPP_ZIP];
97 | [aTask setArguments:[NSArray arrayWithObjects:@"--exclude", @".DS_Store", @"-r", [fileName stringByAppendingString:@".ipa"], @"Payload", nil]];
98 | [aTask launch];
99 | [aTask waitUntilExit];
100 | NSLog(@"Remove directory %@", [path stringByAppendingString:@"/Payload"]);
101 | [[NSFileManager defaultManager] removeItemAtPath:[path stringByAppendingString:@"/Payload"] error:NULL];
102 | }
103 | }
104 |
105 | for (NSString *aFile in [[NSFileManager defaultManager] contentsOfDirectoryAtPath:path error:nil])
106 | {
107 | aRange = [aFile rangeOfString:@".*\\.ipa" options:NSRegularExpressionSearch];
108 | if (aRange.location != NSNotFound)
109 | {
110 | NSLog(@"IPA: %@", aFile);
111 | fileName = [aFile substringToIndex:aRange.length - 4];
112 | [aString appendFormat:@"%@
\n", anIp, BPP_WEB_PORT, fileName, fileName];
113 | aDict = [NSMutableDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"%@/%@.plist", path, fileName]];
114 | if (aDict != nil)
115 | {
116 | if ([[aDict objectForKey:@"items"] isKindOfClass:[NSArray class]] &&
117 | ([[aDict objectForKey:@"items"] count] > 0))
118 | {
119 | id anObj;
120 |
121 | anObj = [[aDict objectForKey:@"items"] objectAtIndex:0];
122 | if ([[anObj objectForKey:@"assets"] isKindOfClass:[NSArray class]] &&
123 | ([[anObj objectForKey:@"assets"] count] > 0))
124 | {
125 | anObj = [[anObj objectForKey:@"assets"] objectAtIndex:0];
126 | [anObj setObject:[NSString stringWithFormat:@"https://%@:%d/%@.ipa", anIp, BPP_WEB_PORT, fileName] forKey:@"url"];
127 | }
128 | anObj = [[aDict objectForKey:@"items"] objectAtIndex:0];
129 | if ([[anObj objectForKey:@"metadata"] isKindOfClass:[NSDictionary class]])
130 | {
131 | anObj = [anObj objectForKey:@"metadata"];
132 | [anObj setObject:fileName forKey:@"title"];
133 | }
134 | }
135 | }
136 | [aDict writeToFile:[NSString stringWithFormat:@"%@/%@.plist", path, fileName] atomically:YES];
137 | }
138 | }
139 | [aString appendString:@"\n"];
140 |
141 | [[NSFileManager defaultManager] createFileAtPath:[NSString stringWithFormat:@"%@/index.html", path]
142 | contents:[aString dataUsingEncoding:NSUTF8StringEncoding]
143 | attributes:nil];
144 |
145 | if (![[NSFileManager defaultManager] fileExistsAtPath:[NSString stringWithFormat:@"%@/server.pem", path]])
146 | {
147 | // Create SSL self-signed certificate
148 | self.task = [[NSTask alloc] init];
149 | [task setLaunchPath:BPP_BASH];
150 | NSLog(@"%@", [[NSBundle mainBundle] pathForResource:@"prep_cert" ofType:nil]);
151 | [task setArguments:[NSArray arrayWithObjects:@"--", [[NSBundle mainBundle] pathForResource:@"prep_cert" ofType:nil], anIp, nil]];
152 | [self.task launch];
153 | [task waitUntilExit];
154 |
155 | NSAlert *alert = [[NSAlert alloc] init];
156 | [alert addButtonWithTitle:@"OK"];
157 | [alert setMessageText:@"A new SSL certificate has been created in AppStaller directory."];
158 | [alert setInformativeText:@"You NEED to install it on your iOS device BEFORE trying to install any application.\nFailing to do this will prevent installation to work correctly.\n\nTo install it on your device, you can simply mail the \"appstaller.cer\" certificate (located in AppStaller directory).\n\nAs it's a self-signed certificate, you will receive a warning asking you if you trust this certificate. But, you trust yourself, right? :-)"];
159 | [alert setAlertStyle:NSWarningAlertStyle];
160 | [alert runModal];
161 | // [alert release];
162 | }
163 |
164 | self.task = [[NSTask alloc] init];
165 | [task setLaunchPath:BPP_PYTHON];
166 | // No SSL - Ok prior to iOS 7.1
167 | // [task setArguments:[NSArray arrayWithObjects:@"-m", @"SimpleHTTPServer", [NSString stringWithFormat:@"%d", BPP_WEB_PORT], nil]];
168 | // SSL - Needed since iOS 7.1
169 | NSLog(@"%@", [[NSBundle mainBundle] pathForResource:@"SimpleSecureHTTPServer" ofType:@"py"]);
170 | [task setArguments:[NSArray arrayWithObject:[[NSBundle mainBundle] pathForResource:@"SimpleSecureHTTPServer" ofType:@"py"]]];
171 |
172 | NSPipe *outPipe;
173 | outPipe = [NSPipe pipe];
174 | [self.task setStandardOutput:outPipe];
175 |
176 | self.fdStdout = [outPipe fileHandleForReading];
177 | [self.fdStdout waitForDataInBackgroundAndNotify];
178 | [[NSNotificationCenter defaultCenter] addObserver:self
179 | selector:@selector(commandNotification:)
180 | name:NSFileHandleDataAvailableNotification
181 | object:nil];
182 |
183 | [self.task launch];
184 |
185 | [self.txtUrl setStringValue:[NSString stringWithFormat:@"https://%@:%d", anIp, BPP_WEB_PORT]];
186 | }
187 |
188 | - (void)commandNotification:(NSNotification *)notification
189 | {
190 | NSData *someData = nil;
191 | NSString *aString = nil;
192 |
193 | while ([self.fdStdout isReadable])
194 | {
195 | someData = [self.fdStdout availableData];
196 | if ([someData length] <= 0)
197 | break;
198 | aString = [[[NSString alloc] initWithData:someData encoding:NSASCIIStringEncoding] stringByTrimmingCharactersInSet:[NSCharacterSet newlineCharacterSet]];
199 | NSLog(@"%@", aString);
200 | }
201 | [self.fdStdout waitForDataInBackgroundAndNotify];
202 | }
203 |
204 | @end
205 |
--------------------------------------------------------------------------------
/AppStaller.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 8E5F56B7187C457200EC4F19 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8E5F56B6187C457200EC4F19 /* Cocoa.framework */; };
11 | 8E5F56C1187C457200EC4F19 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 8E5F56BF187C457200EC4F19 /* InfoPlist.strings */; };
12 | 8E5F56C3187C457200EC4F19 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 8E5F56C2187C457200EC4F19 /* main.m */; };
13 | 8E5F56CA187C457200EC4F19 /* BPPAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 8E5F56C9187C457200EC4F19 /* BPPAppDelegate.m */; };
14 | 8E5F56CD187C457200EC4F19 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 8E5F56CB187C457200EC4F19 /* MainMenu.xib */; };
15 | 8E5F56CF187C457200EC4F19 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8E5F56CE187C457200EC4F19 /* Images.xcassets */; };
16 | 8E5F56EC187C514500EC4F19 /* NSFileHandle+Readable.m in Sources */ = {isa = PBXBuildFile; fileRef = 8E5F56EB187C514500EC4F19 /* NSFileHandle+Readable.m */; };
17 | 8E5F56F5187CE33200EC4F19 /* icon128.png in Resources */ = {isa = PBXBuildFile; fileRef = 8E5F56F2187CE33200EC4F19 /* icon128.png */; };
18 | 8E5F56F6187CE33200EC4F19 /* icon16.png in Resources */ = {isa = PBXBuildFile; fileRef = 8E5F56F3187CE33200EC4F19 /* icon16.png */; };
19 | 8E5F56F7187CE33200EC4F19 /* icon32.png in Resources */ = {isa = PBXBuildFile; fileRef = 8E5F56F4187CE33200EC4F19 /* icon32.png */; };
20 | 8EC9903818CF7C0400816F9E /* SimpleSecureHTTPServer.py in Resources */ = {isa = PBXBuildFile; fileRef = 8EC9903718CF7C0400816F9E /* SimpleSecureHTTPServer.py */; };
21 | 8EC9903A18CF818500816F9E /* prep_cert in Resources */ = {isa = PBXBuildFile; fileRef = 8EC9903918CF818500816F9E /* prep_cert */; };
22 | /* End PBXBuildFile section */
23 |
24 | /* Begin PBXFileReference section */
25 | 8E5F56B3187C457200EC4F19 /* AppStaller.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = AppStaller.app; sourceTree = BUILT_PRODUCTS_DIR; };
26 | 8E5F56B6187C457200EC4F19 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; };
27 | 8E5F56B9187C457200EC4F19 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = System/Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; };
28 | 8E5F56BA187C457200EC4F19 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = System/Library/Frameworks/CoreData.framework; sourceTree = SDKROOT; };
29 | 8E5F56BB187C457200EC4F19 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
30 | 8E5F56BE187C457200EC4F19 /* AppStaller-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "AppStaller-Info.plist"; sourceTree = ""; };
31 | 8E5F56C0187C457200EC4F19 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; };
32 | 8E5F56C2187C457200EC4F19 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
33 | 8E5F56C4187C457200EC4F19 /* AppStaller-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "AppStaller-Prefix.pch"; sourceTree = ""; };
34 | 8E5F56C8187C457200EC4F19 /* BPPAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = BPPAppDelegate.h; sourceTree = ""; };
35 | 8E5F56C9187C457200EC4F19 /* BPPAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BPPAppDelegate.m; sourceTree = ""; };
36 | 8E5F56CC187C457200EC4F19 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; };
37 | 8E5F56CE187C457200EC4F19 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; };
38 | 8E5F56EA187C511F00EC4F19 /* NSFileHandle+Readable.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSFileHandle+Readable.h"; sourceTree = ""; };
39 | 8E5F56EB187C514500EC4F19 /* NSFileHandle+Readable.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSFileHandle+Readable.m"; sourceTree = ""; };
40 | 8E5F56F2187CE33200EC4F19 /* icon128.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon128.png; sourceTree = ""; };
41 | 8E5F56F3187CE33200EC4F19 /* icon16.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon16.png; sourceTree = ""; };
42 | 8E5F56F4187CE33200EC4F19 /* icon32.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon32.png; sourceTree = ""; };
43 | 8EC9903718CF7C0400816F9E /* SimpleSecureHTTPServer.py */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.python; path = SimpleSecureHTTPServer.py; sourceTree = SOURCE_ROOT; };
44 | 8EC9903918CF818500816F9E /* prep_cert */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = prep_cert; sourceTree = SOURCE_ROOT; };
45 | /* End PBXFileReference section */
46 |
47 | /* Begin PBXFrameworksBuildPhase section */
48 | 8E5F56B0187C457200EC4F19 /* Frameworks */ = {
49 | isa = PBXFrameworksBuildPhase;
50 | buildActionMask = 2147483647;
51 | files = (
52 | 8E5F56B7187C457200EC4F19 /* Cocoa.framework in Frameworks */,
53 | );
54 | runOnlyForDeploymentPostprocessing = 0;
55 | };
56 | /* End PBXFrameworksBuildPhase section */
57 |
58 | /* Begin PBXGroup section */
59 | 8E5F56AA187C457200EC4F19 = {
60 | isa = PBXGroup;
61 | children = (
62 | 8E5F56BC187C457200EC4F19 /* AppStaller */,
63 | 8E5F56B5187C457200EC4F19 /* Frameworks */,
64 | 8E5F56B4187C457200EC4F19 /* Products */,
65 | );
66 | sourceTree = "";
67 | };
68 | 8E5F56B4187C457200EC4F19 /* Products */ = {
69 | isa = PBXGroup;
70 | children = (
71 | 8E5F56B3187C457200EC4F19 /* AppStaller.app */,
72 | );
73 | name = Products;
74 | sourceTree = "";
75 | };
76 | 8E5F56B5187C457200EC4F19 /* Frameworks */ = {
77 | isa = PBXGroup;
78 | children = (
79 | 8E5F56B6187C457200EC4F19 /* Cocoa.framework */,
80 | 8E5F56B8187C457200EC4F19 /* Other Frameworks */,
81 | );
82 | name = Frameworks;
83 | sourceTree = "";
84 | };
85 | 8E5F56B8187C457200EC4F19 /* Other Frameworks */ = {
86 | isa = PBXGroup;
87 | children = (
88 | 8E5F56B9187C457200EC4F19 /* AppKit.framework */,
89 | 8E5F56BA187C457200EC4F19 /* CoreData.framework */,
90 | 8E5F56BB187C457200EC4F19 /* Foundation.framework */,
91 | );
92 | name = "Other Frameworks";
93 | sourceTree = "";
94 | };
95 | 8E5F56BC187C457200EC4F19 /* AppStaller */ = {
96 | isa = PBXGroup;
97 | children = (
98 | 8E5F56C8187C457200EC4F19 /* BPPAppDelegate.h */,
99 | 8E5F56C9187C457200EC4F19 /* BPPAppDelegate.m */,
100 | 8E5F56CB187C457200EC4F19 /* MainMenu.xib */,
101 | 8E5F56EA187C511F00EC4F19 /* NSFileHandle+Readable.h */,
102 | 8E5F56EB187C514500EC4F19 /* NSFileHandle+Readable.m */,
103 | 8E5F56F1187CE33200EC4F19 /* Icons */,
104 | 8E5F56CE187C457200EC4F19 /* Images.xcassets */,
105 | 8E5F56BD187C457200EC4F19 /* Supporting Files */,
106 | );
107 | path = AppStaller;
108 | sourceTree = "";
109 | };
110 | 8E5F56BD187C457200EC4F19 /* Supporting Files */ = {
111 | isa = PBXGroup;
112 | children = (
113 | 8EC9903718CF7C0400816F9E /* SimpleSecureHTTPServer.py */,
114 | 8EC9903918CF818500816F9E /* prep_cert */,
115 | 8E5F56BE187C457200EC4F19 /* AppStaller-Info.plist */,
116 | 8E5F56BF187C457200EC4F19 /* InfoPlist.strings */,
117 | 8E5F56C2187C457200EC4F19 /* main.m */,
118 | 8E5F56C4187C457200EC4F19 /* AppStaller-Prefix.pch */,
119 | );
120 | name = "Supporting Files";
121 | sourceTree = "";
122 | };
123 | 8E5F56F1187CE33200EC4F19 /* Icons */ = {
124 | isa = PBXGroup;
125 | children = (
126 | 8E5F56F2187CE33200EC4F19 /* icon128.png */,
127 | 8E5F56F3187CE33200EC4F19 /* icon16.png */,
128 | 8E5F56F4187CE33200EC4F19 /* icon32.png */,
129 | );
130 | path = Icons;
131 | sourceTree = "";
132 | };
133 | /* End PBXGroup section */
134 |
135 | /* Begin PBXNativeTarget section */
136 | 8E5F56B2187C457200EC4F19 /* AppStaller */ = {
137 | isa = PBXNativeTarget;
138 | buildConfigurationList = 8E5F56E4187C457200EC4F19 /* Build configuration list for PBXNativeTarget "AppStaller" */;
139 | buildPhases = (
140 | 8E5F56AF187C457200EC4F19 /* Sources */,
141 | 8E5F56B0187C457200EC4F19 /* Frameworks */,
142 | 8E5F56B1187C457200EC4F19 /* Resources */,
143 | );
144 | buildRules = (
145 | );
146 | dependencies = (
147 | );
148 | name = AppStaller;
149 | productName = AppStaller;
150 | productReference = 8E5F56B3187C457200EC4F19 /* AppStaller.app */;
151 | productType = "com.apple.product-type.application";
152 | };
153 | /* End PBXNativeTarget section */
154 |
155 | /* Begin PBXProject section */
156 | 8E5F56AB187C457200EC4F19 /* Project object */ = {
157 | isa = PBXProject;
158 | attributes = {
159 | CLASSPREFIX = BPP;
160 | LastUpgradeCheck = 0500;
161 | ORGANIZATIONNAME = "Gildas Quiniou";
162 | };
163 | buildConfigurationList = 8E5F56AE187C457200EC4F19 /* Build configuration list for PBXProject "AppStaller" */;
164 | compatibilityVersion = "Xcode 3.2";
165 | developmentRegion = English;
166 | hasScannedForEncodings = 0;
167 | knownRegions = (
168 | en,
169 | Base,
170 | );
171 | mainGroup = 8E5F56AA187C457200EC4F19;
172 | productRefGroup = 8E5F56B4187C457200EC4F19 /* Products */;
173 | projectDirPath = "";
174 | projectRoot = "";
175 | targets = (
176 | 8E5F56B2187C457200EC4F19 /* AppStaller */,
177 | );
178 | };
179 | /* End PBXProject section */
180 |
181 | /* Begin PBXResourcesBuildPhase section */
182 | 8E5F56B1187C457200EC4F19 /* Resources */ = {
183 | isa = PBXResourcesBuildPhase;
184 | buildActionMask = 2147483647;
185 | files = (
186 | 8E5F56C1187C457200EC4F19 /* InfoPlist.strings in Resources */,
187 | 8E5F56F7187CE33200EC4F19 /* icon32.png in Resources */,
188 | 8E5F56CF187C457200EC4F19 /* Images.xcassets in Resources */,
189 | 8E5F56F5187CE33200EC4F19 /* icon128.png in Resources */,
190 | 8E5F56CD187C457200EC4F19 /* MainMenu.xib in Resources */,
191 | 8EC9903A18CF818500816F9E /* prep_cert in Resources */,
192 | 8E5F56F6187CE33200EC4F19 /* icon16.png in Resources */,
193 | 8EC9903818CF7C0400816F9E /* SimpleSecureHTTPServer.py in Resources */,
194 | );
195 | runOnlyForDeploymentPostprocessing = 0;
196 | };
197 | /* End PBXResourcesBuildPhase section */
198 |
199 | /* Begin PBXSourcesBuildPhase section */
200 | 8E5F56AF187C457200EC4F19 /* Sources */ = {
201 | isa = PBXSourcesBuildPhase;
202 | buildActionMask = 2147483647;
203 | files = (
204 | 8E5F56EC187C514500EC4F19 /* NSFileHandle+Readable.m in Sources */,
205 | 8E5F56C3187C457200EC4F19 /* main.m in Sources */,
206 | 8E5F56CA187C457200EC4F19 /* BPPAppDelegate.m in Sources */,
207 | );
208 | runOnlyForDeploymentPostprocessing = 0;
209 | };
210 | /* End PBXSourcesBuildPhase section */
211 |
212 | /* Begin PBXVariantGroup section */
213 | 8E5F56BF187C457200EC4F19 /* InfoPlist.strings */ = {
214 | isa = PBXVariantGroup;
215 | children = (
216 | 8E5F56C0187C457200EC4F19 /* en */,
217 | );
218 | name = InfoPlist.strings;
219 | sourceTree = "";
220 | };
221 | 8E5F56CB187C457200EC4F19 /* MainMenu.xib */ = {
222 | isa = PBXVariantGroup;
223 | children = (
224 | 8E5F56CC187C457200EC4F19 /* Base */,
225 | );
226 | name = MainMenu.xib;
227 | sourceTree = "";
228 | };
229 | /* End PBXVariantGroup section */
230 |
231 | /* Begin XCBuildConfiguration section */
232 | 8E5F56E2187C457200EC4F19 /* Debug */ = {
233 | isa = XCBuildConfiguration;
234 | buildSettings = {
235 | ALWAYS_SEARCH_USER_PATHS = NO;
236 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
237 | CLANG_CXX_LIBRARY = "libc++";
238 | CLANG_ENABLE_OBJC_ARC = YES;
239 | CLANG_WARN_BOOL_CONVERSION = YES;
240 | CLANG_WARN_CONSTANT_CONVERSION = YES;
241 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
242 | CLANG_WARN_EMPTY_BODY = YES;
243 | CLANG_WARN_ENUM_CONVERSION = YES;
244 | CLANG_WARN_INT_CONVERSION = YES;
245 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
246 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
247 | COPY_PHASE_STRIP = NO;
248 | GCC_C_LANGUAGE_STANDARD = gnu99;
249 | GCC_DYNAMIC_NO_PIC = NO;
250 | GCC_ENABLE_OBJC_EXCEPTIONS = YES;
251 | GCC_OPTIMIZATION_LEVEL = 0;
252 | GCC_PREPROCESSOR_DEFINITIONS = (
253 | "DEBUG=1",
254 | "$(inherited)",
255 | );
256 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
257 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
258 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
259 | GCC_WARN_UNDECLARED_SELECTOR = YES;
260 | GCC_WARN_UNINITIALIZED_AUTOS = YES;
261 | GCC_WARN_UNUSED_FUNCTION = YES;
262 | GCC_WARN_UNUSED_VARIABLE = YES;
263 | MACOSX_DEPLOYMENT_TARGET = 10.9;
264 | ONLY_ACTIVE_ARCH = YES;
265 | SDKROOT = macosx;
266 | };
267 | name = Debug;
268 | };
269 | 8E5F56E3187C457200EC4F19 /* Release */ = {
270 | isa = XCBuildConfiguration;
271 | buildSettings = {
272 | ALWAYS_SEARCH_USER_PATHS = NO;
273 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
274 | CLANG_CXX_LIBRARY = "libc++";
275 | CLANG_ENABLE_OBJC_ARC = YES;
276 | CLANG_WARN_BOOL_CONVERSION = YES;
277 | CLANG_WARN_CONSTANT_CONVERSION = YES;
278 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
279 | CLANG_WARN_EMPTY_BODY = YES;
280 | CLANG_WARN_ENUM_CONVERSION = YES;
281 | CLANG_WARN_INT_CONVERSION = YES;
282 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
283 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
284 | COPY_PHASE_STRIP = YES;
285 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
286 | ENABLE_NS_ASSERTIONS = NO;
287 | GCC_C_LANGUAGE_STANDARD = gnu99;
288 | GCC_ENABLE_OBJC_EXCEPTIONS = YES;
289 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
290 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
291 | GCC_WARN_UNDECLARED_SELECTOR = YES;
292 | GCC_WARN_UNINITIALIZED_AUTOS = YES;
293 | GCC_WARN_UNUSED_FUNCTION = YES;
294 | GCC_WARN_UNUSED_VARIABLE = YES;
295 | MACOSX_DEPLOYMENT_TARGET = 10.9;
296 | SDKROOT = macosx;
297 | };
298 | name = Release;
299 | };
300 | 8E5F56E5187C457200EC4F19 /* Debug */ = {
301 | isa = XCBuildConfiguration;
302 | buildSettings = {
303 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
304 | COMBINE_HIDPI_IMAGES = YES;
305 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
306 | GCC_PREFIX_HEADER = "AppStaller/AppStaller-Prefix.pch";
307 | INFOPLIST_FILE = "AppStaller/AppStaller-Info.plist";
308 | PRODUCT_NAME = "$(TARGET_NAME)";
309 | WRAPPER_EXTENSION = app;
310 | };
311 | name = Debug;
312 | };
313 | 8E5F56E6187C457200EC4F19 /* Release */ = {
314 | isa = XCBuildConfiguration;
315 | buildSettings = {
316 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
317 | COMBINE_HIDPI_IMAGES = YES;
318 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
319 | GCC_PREFIX_HEADER = "AppStaller/AppStaller-Prefix.pch";
320 | INFOPLIST_FILE = "AppStaller/AppStaller-Info.plist";
321 | PRODUCT_NAME = "$(TARGET_NAME)";
322 | WRAPPER_EXTENSION = app;
323 | };
324 | name = Release;
325 | };
326 | /* End XCBuildConfiguration section */
327 |
328 | /* Begin XCConfigurationList section */
329 | 8E5F56AE187C457200EC4F19 /* Build configuration list for PBXProject "AppStaller" */ = {
330 | isa = XCConfigurationList;
331 | buildConfigurations = (
332 | 8E5F56E2187C457200EC4F19 /* Debug */,
333 | 8E5F56E3187C457200EC4F19 /* Release */,
334 | );
335 | defaultConfigurationIsVisible = 0;
336 | defaultConfigurationName = Release;
337 | };
338 | 8E5F56E4187C457200EC4F19 /* Build configuration list for PBXNativeTarget "AppStaller" */ = {
339 | isa = XCConfigurationList;
340 | buildConfigurations = (
341 | 8E5F56E5187C457200EC4F19 /* Debug */,
342 | 8E5F56E6187C457200EC4F19 /* Release */,
343 | );
344 | defaultConfigurationIsVisible = 0;
345 | defaultConfigurationName = Release;
346 | };
347 | /* End XCConfigurationList section */
348 | };
349 | rootObject = 8E5F56AB187C457200EC4F19 /* Project object */;
350 | }
351 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 2, June 1991
3 |
4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
6 | Everyone is permitted to copy and distribute verbatim copies
7 | of this license document, but changing it is not allowed.
8 |
9 | Preamble
10 |
11 | The licenses for most software are designed to take away your
12 | freedom to share and change it. By contrast, the GNU General Public
13 | License is intended to guarantee your freedom to share and change free
14 | software--to make sure the software is free for all its users. This
15 | General Public License applies to most of the Free Software
16 | Foundation's software and to any other program whose authors commit to
17 | using it. (Some other Free Software Foundation software is covered by
18 | the GNU Lesser General Public License instead.) You can apply it to
19 | your programs, too.
20 |
21 | When we speak of free software, we are referring to freedom, not
22 | price. Our General Public Licenses are designed to make sure that you
23 | have the freedom to distribute copies of free software (and charge for
24 | this service if you wish), that you receive source code or can get it
25 | if you want it, that you can change the software or use pieces of it
26 | in new free programs; and that you know you can do these things.
27 |
28 | To protect your rights, we need to make restrictions that forbid
29 | anyone to deny you these rights or to ask you to surrender the rights.
30 | These restrictions translate to certain responsibilities for you if you
31 | distribute copies of the software, or if you modify it.
32 |
33 | For example, if you distribute copies of such a program, whether
34 | gratis or for a fee, you must give the recipients all the rights that
35 | you have. You must make sure that they, too, receive or can get the
36 | source code. And you must show them these terms so they know their
37 | rights.
38 |
39 | We protect your rights with two steps: (1) copyright the software, and
40 | (2) offer you this license which gives you legal permission to copy,
41 | distribute and/or modify the software.
42 |
43 | Also, for each author's protection and ours, we want to make certain
44 | that everyone understands that there is no warranty for this free
45 | software. If the software is modified by someone else and passed on, we
46 | want its recipients to know that what they have is not the original, so
47 | that any problems introduced by others will not reflect on the original
48 | authors' reputations.
49 |
50 | Finally, any free program is threatened constantly by software
51 | patents. We wish to avoid the danger that redistributors of a free
52 | program will individually obtain patent licenses, in effect making the
53 | program proprietary. To prevent this, we have made it clear that any
54 | patent must be licensed for everyone's free use or not licensed at all.
55 |
56 | The precise terms and conditions for copying, distribution and
57 | modification follow.
58 |
59 | GNU GENERAL PUBLIC LICENSE
60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61 |
62 | 0. This License applies to any program or other work which contains
63 | a notice placed by the copyright holder saying it may be distributed
64 | under the terms of this General Public License. The "Program", below,
65 | refers to any such program or work, and a "work based on the Program"
66 | means either the Program or any derivative work under copyright law:
67 | that is to say, a work containing the Program or a portion of it,
68 | either verbatim or with modifications and/or translated into another
69 | language. (Hereinafter, translation is included without limitation in
70 | the term "modification".) Each licensee is addressed as "you".
71 |
72 | Activities other than copying, distribution and modification are not
73 | covered by this License; they are outside its scope. The act of
74 | running the Program is not restricted, and the output from the Program
75 | is covered only if its contents constitute a work based on the
76 | Program (independent of having been made by running the Program).
77 | Whether that is true depends on what the Program does.
78 |
79 | 1. You may copy and distribute verbatim copies of the Program's
80 | source code as you receive it, in any medium, provided that you
81 | conspicuously and appropriately publish on each copy an appropriate
82 | copyright notice and disclaimer of warranty; keep intact all the
83 | notices that refer to this License and to the absence of any warranty;
84 | and give any other recipients of the Program a copy of this License
85 | along with the Program.
86 |
87 | You may charge a fee for the physical act of transferring a copy, and
88 | you may at your option offer warranty protection in exchange for a fee.
89 |
90 | 2. You may modify your copy or copies of the Program or any portion
91 | of it, thus forming a work based on the Program, and copy and
92 | distribute such modifications or work under the terms of Section 1
93 | above, provided that you also meet all of these conditions:
94 |
95 | a) You must cause the modified files to carry prominent notices
96 | stating that you changed the files and the date of any change.
97 |
98 | b) You must cause any work that you distribute or publish, that in
99 | whole or in part contains or is derived from the Program or any
100 | part thereof, to be licensed as a whole at no charge to all third
101 | parties under the terms of this License.
102 |
103 | c) If the modified program normally reads commands interactively
104 | when run, you must cause it, when started running for such
105 | interactive use in the most ordinary way, to print or display an
106 | announcement including an appropriate copyright notice and a
107 | notice that there is no warranty (or else, saying that you provide
108 | a warranty) and that users may redistribute the program under
109 | these conditions, and telling the user how to view a copy of this
110 | License. (Exception: if the Program itself is interactive but
111 | does not normally print such an announcement, your work based on
112 | the Program is not required to print an announcement.)
113 |
114 | These requirements apply to the modified work as a whole. If
115 | identifiable sections of that work are not derived from the Program,
116 | and can be reasonably considered independent and separate works in
117 | themselves, then this License, and its terms, do not apply to those
118 | sections when you distribute them as separate works. But when you
119 | distribute the same sections as part of a whole which is a work based
120 | on the Program, the distribution of the whole must be on the terms of
121 | this License, whose permissions for other licensees extend to the
122 | entire whole, and thus to each and every part regardless of who wrote it.
123 |
124 | Thus, it is not the intent of this section to claim rights or contest
125 | your rights to work written entirely by you; rather, the intent is to
126 | exercise the right to control the distribution of derivative or
127 | collective works based on the Program.
128 |
129 | In addition, mere aggregation of another work not based on the Program
130 | with the Program (or with a work based on the Program) on a volume of
131 | a storage or distribution medium does not bring the other work under
132 | the scope of this License.
133 |
134 | 3. You may copy and distribute the Program (or a work based on it,
135 | under Section 2) in object code or executable form under the terms of
136 | Sections 1 and 2 above provided that you also do one of the following:
137 |
138 | a) Accompany it with the complete corresponding machine-readable
139 | source code, which must be distributed under the terms of Sections
140 | 1 and 2 above on a medium customarily used for software interchange; or,
141 |
142 | b) Accompany it with a written offer, valid for at least three
143 | years, to give any third party, for a charge no more than your
144 | cost of physically performing source distribution, a complete
145 | machine-readable copy of the corresponding source code, to be
146 | distributed under the terms of Sections 1 and 2 above on a medium
147 | customarily used for software interchange; or,
148 |
149 | c) Accompany it with the information you received as to the offer
150 | to distribute corresponding source code. (This alternative is
151 | allowed only for noncommercial distribution and only if you
152 | received the program in object code or executable form with such
153 | an offer, in accord with Subsection b above.)
154 |
155 | The source code for a work means the preferred form of the work for
156 | making modifications to it. For an executable work, complete source
157 | code means all the source code for all modules it contains, plus any
158 | associated interface definition files, plus the scripts used to
159 | control compilation and installation of the executable. However, as a
160 | special exception, the source code distributed need not include
161 | anything that is normally distributed (in either source or binary
162 | form) with the major components (compiler, kernel, and so on) of the
163 | operating system on which the executable runs, unless that component
164 | itself accompanies the executable.
165 |
166 | If distribution of executable or object code is made by offering
167 | access to copy from a designated place, then offering equivalent
168 | access to copy the source code from the same place counts as
169 | distribution of the source code, even though third parties are not
170 | compelled to copy the source along with the object code.
171 |
172 | 4. You may not copy, modify, sublicense, or distribute the Program
173 | except as expressly provided under this License. Any attempt
174 | otherwise to copy, modify, sublicense or distribute the Program is
175 | void, and will automatically terminate your rights under this License.
176 | However, parties who have received copies, or rights, from you under
177 | this License will not have their licenses terminated so long as such
178 | parties remain in full compliance.
179 |
180 | 5. You are not required to accept this License, since you have not
181 | signed it. However, nothing else grants you permission to modify or
182 | distribute the Program or its derivative works. These actions are
183 | prohibited by law if you do not accept this License. Therefore, by
184 | modifying or distributing the Program (or any work based on the
185 | Program), you indicate your acceptance of this License to do so, and
186 | all its terms and conditions for copying, distributing or modifying
187 | the Program or works based on it.
188 |
189 | 6. Each time you redistribute the Program (or any work based on the
190 | Program), the recipient automatically receives a license from the
191 | original licensor to copy, distribute or modify the Program subject to
192 | these terms and conditions. You may not impose any further
193 | restrictions on the recipients' exercise of the rights granted herein.
194 | You are not responsible for enforcing compliance by third parties to
195 | this License.
196 |
197 | 7. If, as a consequence of a court judgment or allegation of patent
198 | infringement or for any other reason (not limited to patent issues),
199 | conditions are imposed on you (whether by court order, agreement or
200 | otherwise) that contradict the conditions of this License, they do not
201 | excuse you from the conditions of this License. If you cannot
202 | distribute so as to satisfy simultaneously your obligations under this
203 | License and any other pertinent obligations, then as a consequence you
204 | may not distribute the Program at all. For example, if a patent
205 | license would not permit royalty-free redistribution of the Program by
206 | all those who receive copies directly or indirectly through you, then
207 | the only way you could satisfy both it and this License would be to
208 | refrain entirely from distribution of the Program.
209 |
210 | If any portion of this section is held invalid or unenforceable under
211 | any particular circumstance, the balance of the section is intended to
212 | apply and the section as a whole is intended to apply in other
213 | circumstances.
214 |
215 | It is not the purpose of this section to induce you to infringe any
216 | patents or other property right claims or to contest validity of any
217 | such claims; this section has the sole purpose of protecting the
218 | integrity of the free software distribution system, which is
219 | implemented by public license practices. Many people have made
220 | generous contributions to the wide range of software distributed
221 | through that system in reliance on consistent application of that
222 | system; it is up to the author/donor to decide if he or she is willing
223 | to distribute software through any other system and a licensee cannot
224 | impose that choice.
225 |
226 | This section is intended to make thoroughly clear what is believed to
227 | be a consequence of the rest of this License.
228 |
229 | 8. If the distribution and/or use of the Program is restricted in
230 | certain countries either by patents or by copyrighted interfaces, the
231 | original copyright holder who places the Program under this License
232 | may add an explicit geographical distribution limitation excluding
233 | those countries, so that distribution is permitted only in or among
234 | countries not thus excluded. In such case, this License incorporates
235 | the limitation as if written in the body of this License.
236 |
237 | 9. The Free Software Foundation may publish revised and/or new versions
238 | of the General Public License from time to time. Such new versions will
239 | be similar in spirit to the present version, but may differ in detail to
240 | address new problems or concerns.
241 |
242 | Each version is given a distinguishing version number. If the Program
243 | specifies a version number of this License which applies to it and "any
244 | later version", you have the option of following the terms and conditions
245 | either of that version or of any later version published by the Free
246 | Software Foundation. If the Program does not specify a version number of
247 | this License, you may choose any version ever published by the Free Software
248 | Foundation.
249 |
250 | 10. If you wish to incorporate parts of the Program into other free
251 | programs whose distribution conditions are different, write to the author
252 | to ask for permission. For software which is copyrighted by the Free
253 | Software Foundation, write to the Free Software Foundation; we sometimes
254 | make exceptions for this. Our decision will be guided by the two goals
255 | of preserving the free status of all derivatives of our free software and
256 | of promoting the sharing and reuse of software generally.
257 |
258 | NO WARRANTY
259 |
260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
268 | REPAIR OR CORRECTION.
269 |
270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278 | POSSIBILITY OF SUCH DAMAGES.
279 |
280 | END OF TERMS AND CONDITIONS
281 |
282 | How to Apply These Terms to Your New Programs
283 |
284 | If you develop a new program, and you want it to be of the greatest
285 | possible use to the public, the best way to achieve this is to make it
286 | free software which everyone can redistribute and change under these terms.
287 |
288 | To do so, attach the following notices to the program. It is safest
289 | to attach them to the start of each source file to most effectively
290 | convey the exclusion of warranty; and each file should have at least
291 | the "copyright" line and a pointer to where the full notice is found.
292 |
293 | {description}
294 | Copyright (C) {year} {fullname}
295 |
296 | This program is free software; you can redistribute it and/or modify
297 | it under the terms of the GNU General Public License as published by
298 | the Free Software Foundation; either version 2 of the License, or
299 | (at your option) any later version.
300 |
301 | This program is distributed in the hope that it will be useful,
302 | but WITHOUT ANY WARRANTY; without even the implied warranty of
303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
304 | GNU General Public License for more details.
305 |
306 | You should have received a copy of the GNU General Public License along
307 | with this program; if not, write to the Free Software Foundation, Inc.,
308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
309 |
310 | Also add information on how to contact you by electronic and paper mail.
311 |
312 | If the program is interactive, make it output a short notice like this
313 | when it starts in an interactive mode:
314 |
315 | Gnomovision version 69, Copyright (C) year name of author
316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
317 | This is free software, and you are welcome to redistribute it
318 | under certain conditions; type `show c' for details.
319 |
320 | The hypothetical commands `show w' and `show c' should show the appropriate
321 | parts of the General Public License. Of course, the commands you use may
322 | be called something other than `show w' and `show c'; they could even be
323 | mouse-clicks or menu items--whatever suits your program.
324 |
325 | You should also get your employer (if you work as a programmer) or your
326 | school, if any, to sign a "copyright disclaimer" for the program, if
327 | necessary. Here is a sample; alter the names:
328 |
329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program
330 | `Gnomovision' (which makes passes at compilers) written by James Hacker.
331 |
332 | {signature of Ty Coon}, 1 April 1989
333 | Ty Coon, President of Vice
334 |
335 | This General Public License does not permit incorporating your program into
336 | proprietary programs. If your program is a subroutine library, you may
337 | consider it more useful to permit linking proprietary applications with the
338 | library. If this is what you want to do, use the GNU Lesser General
339 | Public License instead of this License.
340 |
--------------------------------------------------------------------------------
/AppStaller/Base.lproj/MainMenu.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
649 |
650 |
651 |
652 |
653 |
654 |
655 |
656 |
657 |
658 |
669 |
680 |
681 |
682 |
683 |
684 |
685 |
686 |
687 |
688 |
689 |
690 |
691 |
692 |
693 |
694 | 1) Create an Adhoc .ipa archive of your app
695 | 2) Drop your .ipa file in the same directory as AppStaller
696 | 3) Press GO
697 | 4) Open Safari on the device you want to install your app onto
698 | 5) Open URL at:
699 |
700 |
701 |
702 |
703 |
704 |
705 |
706 |
707 |
708 |
709 |
710 |
711 |
712 |
713 |
714 |
715 |
716 |
717 |
718 |
719 |
720 |
721 |
722 |
723 |
724 |
725 |
726 |
727 |
728 |
729 |
730 |
731 |
732 |
733 |
734 |
735 |
736 |
737 |
738 |
739 |
740 |
741 |
742 |
--------------------------------------------------------------------------------