Skip to content

Commit 606140a

Browse files
committed
entitlements: code_sign_entitlements declaration was missing in AltStore.debug/release modes causing AppGroups access failure (nil in getPreviousBackupURL) when long pressing app entry in MyApps list
Default entitlements are to come from AltStoreFree.entitlements, for paid entitlements one can use CodeSigning.xcconfig to override it to point to AltStore.entitlements instead.
1 parent 5576102 commit 606140a

2 files changed

Lines changed: 46 additions & 0 deletions

File tree

AltStore.xcodeproj/project.pbxproj

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,20 @@
489489
remoteGlobalIDString = A83FE3C22EC9217F005ACE9A;
490490
remoteInfo = EmotionalDamage;
491491
};
492+
A83FE40C2EC93DCD005ACE9A /* PBXContainerItemProxy */ = {
493+
isa = PBXContainerItemProxy;
494+
containerPortal = A83FE3A32EC91F35005ACE9A /* em_proxy.xcodeproj */;
495+
proxyType = 2;
496+
remoteGlobalIDString = CA60C44C93D7916DE57E6EBD;
497+
remoteInfo = "em_proxy-staticlib";
498+
};
499+
A83FE40E2EC93DCD005ACE9A /* PBXContainerItemProxy */ = {
500+
isa = PBXContainerItemProxy;
501+
containerPortal = A83FE3A32EC91F35005ACE9A /* em_proxy.xcodeproj */;
502+
proxyType = 2;
503+
remoteGlobalIDString = CA60058A9FBE4D17AF51A7D5;
504+
remoteInfo = "run-bin";
505+
};
492506
A8A543282D04F0C100D72399 /* PBXContainerItemProxy */ = {
493507
isa = PBXContainerItemProxy;
494508
containerPortal = B343F886295F7F9B002B1159 /* libfragmentzip.xcodeproj */;
@@ -1310,6 +1324,15 @@
13101324
path = datastructures;
13111325
sourceTree = "<group>";
13121326
};
1327+
A83FE4082EC93DCD005ACE9A /* Products */ = {
1328+
isa = PBXGroup;
1329+
children = (
1330+
A83FE40D2EC93DCD005ACE9A /* libem_proxy_static.a */,
1331+
A83FE40F2EC93DCD005ACE9A /* run */,
1332+
);
1333+
name = Products;
1334+
sourceTree = "<group>";
1335+
};
13131336
A85ACB942D1F31C400AA3DE7 /* xcconfigs */ = {
13141337
isa = PBXGroup;
13151338
children = (
@@ -2764,6 +2787,10 @@
27642787
productRefGroup = BFD2476B2284B9A500981D42 /* Products */;
27652788
projectDirPath = "";
27662789
projectReferences = (
2790+
{
2791+
ProductGroup = A83FE4082EC93DCD005ACE9A /* Products */;
2792+
ProjectRef = A83FE3A32EC91F35005ACE9A /* em_proxy.xcodeproj */;
2793+
},
27672794
{
27682795
ProductGroup = A8A543222D04F0C100D72399 /* Products */;
27692796
ProjectRef = B343F886295F7F9B002B1159 /* libfragmentzip.xcodeproj */;
@@ -2796,6 +2823,20 @@
27962823
remoteRef = A809F68D2D04D71200F0F0F3 /* PBXContainerItemProxy */;
27972824
sourceTree = BUILT_PRODUCTS_DIR;
27982825
};
2826+
A83FE40D2EC93DCD005ACE9A /* libem_proxy_static.a */ = {
2827+
isa = PBXReferenceProxy;
2828+
fileType = archive.ar;
2829+
path = libem_proxy_static.a;
2830+
remoteRef = A83FE40C2EC93DCD005ACE9A /* PBXContainerItemProxy */;
2831+
sourceTree = BUILT_PRODUCTS_DIR;
2832+
};
2833+
A83FE40F2EC93DCD005ACE9A /* run */ = {
2834+
isa = PBXReferenceProxy;
2835+
fileType = "compiled.mach-o.executable";
2836+
path = run;
2837+
remoteRef = A83FE40E2EC93DCD005ACE9A /* PBXContainerItemProxy */;
2838+
sourceTree = BUILT_PRODUCTS_DIR;
2839+
};
27992840
A8A543292D04F0C100D72399 /* libfragmentzip */ = {
28002841
isa = PBXReferenceProxy;
28012842
fileType = "compiled.mach-o.executable";
@@ -4080,6 +4121,7 @@
40804121
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES;
40814122
ASSETCATALOG_COMPILER_OPTIMIZATION = space;
40824123
CLANG_ENABLE_MODULES = YES;
4124+
CODE_SIGN_ENTITLEMENTS = "$(CODE_SIGN_ENTITLEMENTS)";
40834125
CODE_SIGN_IDENTITY = "iPhone Developer";
40844126
CODE_SIGN_STYLE = Automatic;
40854127
CURRENT_PROJECT_VERSION = "$(inherited)";
@@ -4127,6 +4169,7 @@
41274169
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES;
41284170
ASSETCATALOG_COMPILER_OPTIMIZATION = space;
41294171
CLANG_ENABLE_MODULES = YES;
4172+
CODE_SIGN_ENTITLEMENTS = "$(CODE_SIGN_ENTITLEMENTS)";
41304173
CODE_SIGN_IDENTITY = "iPhone Developer";
41314174
CODE_SIGN_STYLE = Automatic;
41324175
CURRENT_PROJECT_VERSION = "$(inherited)";

Build.xcconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ CURRENT_PROJECT_VERSION = 0603
88
DEVELOPMENT_TEAM = S32Z3HMYVQ
99
ORG_IDENTIFIER = com.SideStore
1010

11+
// Default is free for CI builds, override it using CodeSigning.xcconfig if required
12+
CODE_SIGN_ENTITLEMENTS = ./AltStore/AltStoreFree.entitlements
13+
1114
// Codesigning settings defined optionally, see `CodeSigning.xcconfig.example`
1215
#include? "CodeSigning.xcconfig"
1316

0 commit comments

Comments
 (0)