wtapack 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/wtapack/ProfileManager.m +7 -10
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 604553c1b3bfa8cb3283e11eb20ed9f09a7811c6
|
4
|
+
data.tar.gz: 6dd7295e7c5cc77d75c6f421193f6eb8ae8e8b41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70c63aea7cce7192fb27990e9270d4dbcea851d68e731e8e2e0538fd22555e1c84e968ed2dcd3828f97da10da4cdad1058518009e7f4382850ac5b9fedb91581
|
7
|
+
data.tar.gz: 4e30560aca9a8a7ff24cf52c7c5caa9c905cc5c9decf938b4ab1f2fe8850b293f47fe1d3e3e257087544e777d9ab8bfdb20d8f2c3327ea16ebcf6052d0758b5a
|
@@ -20,31 +20,28 @@
|
|
20
20
|
|
21
21
|
@implementation ProfileManager
|
22
22
|
#pragma mark Initializers
|
23
|
-
- (instancetype)initWithKey:(NSString *)
|
23
|
+
- (instancetype)initWithKey:(NSString *)profileKey bundleURL:(NSURL *)bundleURL
|
24
24
|
{
|
25
25
|
self = [super init];
|
26
26
|
if (self)
|
27
27
|
{
|
28
|
-
NSString*
|
29
|
-
if (!
|
28
|
+
NSString* profilePath = [[NSUserDefaults standardUserDefaults] stringForKey:profileKey];
|
29
|
+
if (!profilePath)
|
30
30
|
{
|
31
31
|
NSString* errorString = [NSString stringWithFormat:@"You must specify a profile for key \"%@\".",
|
32
|
-
|
32
|
+
profileKey];
|
33
33
|
[ErrorHandler fatalErrorWithMessage:errorString
|
34
34
|
exitCode:EX_USAGE];
|
35
35
|
}
|
36
36
|
|
37
|
-
|
38
|
-
profileUUID] stringByExpandingTildeInPath];
|
39
|
-
|
40
|
-
if ([[NSFileManager defaultManager] fileExistsAtPath:provisioningProfilePath])
|
37
|
+
if ([[NSFileManager defaultManager] fileExistsAtPath:profilePath])
|
41
38
|
{
|
42
|
-
_profileURL = [NSURL fileURLWithPath:
|
39
|
+
_profileURL = [NSURL fileURLWithPath:profilePath];
|
43
40
|
}
|
44
41
|
else
|
45
42
|
{
|
46
43
|
NSString* errorString = [NSString stringWithFormat:@"Specifed provisioning profile %@ does not exist",
|
47
|
-
|
44
|
+
profilePath];
|
48
45
|
|
49
46
|
[ErrorHandler fatalErrorWithMessage:errorString
|
50
47
|
exitCode:EX_NOINPUT];
|