Skip to content

Commit a609be2

Browse files
committed
fix: app intent build
Signed-off-by: Lessica <82flex@gmail.com>
1 parent 14fdac3 commit a609be2

4 files changed

Lines changed: 14 additions & 16 deletions

File tree

TrollSpeed.xcodeproj/project.pbxproj

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
CC654E3F2DABD9C200D54F83 /* Settings.bundle in Resources */ = {isa = PBXBuildFile; fileRef = CC2A772F2B6AADB400796650 /* Settings.bundle */; };
5353
CC654E402DABD9C200D54F83 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = CC711D872B5BFCC4007235A6 /* Localizable.strings */; };
5454
CC654E412DABD9C200D54F83 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = CC711D102B5BF551007235A6 /* Assets.xcassets */; };
55-
CC654E602DABE3EB00D54F83 /* libroot_dyn_iphoneos-arm64.a in Frameworks */ = {isa = PBXBuildFile; fileRef = CC654E5F2DABE3EB00D54F83 /* libroot_dyn_iphoneos-arm64.a */; };
5655
CC711D112B5BF551007235A6 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = CC711D102B5BF551007235A6 /* Assets.xcassets */; };
5756
CC711D4A2B5BF5C6007235A6 /* HUDHelper.mm in Sources */ = {isa = PBXBuildFile; fileRef = CC711D1E2B5BF5C6007235A6 /* HUDHelper.mm */; };
5857
CC711D4B2B5BF5C6007235A6 /* RootViewController.mm in Sources */ = {isa = PBXBuildFile; fileRef = CC711D1F2B5BF5C6007235A6 /* RootViewController.mm */; };
@@ -101,15 +100,13 @@
101100
/* Begin PBXFileReference section */
102101
0F43B7702B60D397003A435D /* es */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = es; path = ../Resources/es.lproj/Localizable.strings; sourceTree = "<group>"; };
103102
0F43B7712B60D397003A435D /* es */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = es; path = ../Resources/es.lproj/InfoPlist.strings; sourceTree = "<group>"; };
104-
6143419B2CD0D8F00069FD88 /* libroot_dyn_iphoneos-arm64.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = "libroot_dyn_iphoneos-arm64.a"; sourceTree = "<group>"; };
105103
CC2A772F2B6AADB400796650 /* Settings.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; name = Settings.bundle; path = Resources/Settings.bundle; sourceTree = SOURCE_ROOT; };
106104
CC654E032DABD94300D54F83 /* AssertionServices.Sim.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; path = AssertionServices.Sim.tbd; sourceTree = "<group>"; };
107105
CC654E052DABD94A00D54F83 /* IOKit.Sim.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; path = IOKit.Sim.tbd; sourceTree = "<group>"; };
108106
CC654E072DABD95200D54F83 /* BackBoardServices.Sim.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; path = BackBoardServices.Sim.tbd; sourceTree = "<group>"; };
109107
CC654E092DABD95800D54F83 /* GraphicsServices.Sim.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; path = GraphicsServices.Sim.tbd; sourceTree = "<group>"; };
110108
CC654E0B2DABD95E00D54F83 /* SpringBoardServices.Sim.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; path = SpringBoardServices.Sim.tbd; sourceTree = "<group>"; };
111109
CC654E452DABD9C200D54F83 /* TrollSpeed.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TrollSpeed.app; sourceTree = BUILT_PRODUCTS_DIR; };
112-
CC654E5F2DABE3EB00D54F83 /* libroot_dyn_iphoneos-arm64.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = "libroot_dyn_iphoneos-arm64.a"; sourceTree = "<group>"; };
113110
CC711D012B5BF550007235A6 /* TrollSpeed.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TrollSpeed.app; sourceTree = BUILT_PRODUCTS_DIR; };
114111
CC711D102B5BF551007235A6 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
115112
CC711D1E2B5BF5C6007235A6 /* HUDHelper.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = HUDHelper.mm; sourceTree = "<group>"; };
@@ -227,22 +224,13 @@
227224
CC8DDA9A2B6631DC001C7C9E /* AppIntents.framework in Frameworks */,
228225
CC711D9C2B5C0032007235A6 /* IOKit.tbd in Frameworks */,
229226
CC711D9A2B5BFF2F007235A6 /* BackBoardServices.tbd in Frameworks */,
230-
CC654E602DABE3EB00D54F83 /* libroot_dyn_iphoneos-arm64.a in Frameworks */,
231227
CC711D982B5BFF2F007235A6 /* GraphicsServices.tbd in Frameworks */,
232228
);
233229
runOnlyForDeploymentPostprocessing = 0;
234230
};
235231
/* End PBXFrameworksBuildPhase section */
236232

237233
/* Begin PBXGroup section */
238-
CC654E5E2DABE22E00D54F83 /* Recovered References */ = {
239-
isa = PBXGroup;
240-
children = (
241-
6143419B2CD0D8F00069FD88 /* libroot_dyn_iphoneos-arm64.a */,
242-
);
243-
name = "Recovered References";
244-
sourceTree = "<group>";
245-
};
246234
CC711CF82B5BF550007235A6 = {
247235
isa = PBXGroup;
248236
children = (
@@ -252,7 +240,6 @@
252240
CC711D032B5BF550007235A6 /* supports */,
253241
CC711D1D2B5BF5C6007235A6 /* sources */,
254242
CC8DDA972B66318E001C7C9E /* Frameworks */,
255-
CC654E5E2DABE22E00D54F83 /* Recovered References */,
256243
);
257244
sourceTree = "<group>";
258245
};
@@ -405,7 +392,6 @@
405392
CC654E052DABD94A00D54F83 /* IOKit.Sim.tbd */,
406393
CC711D962B5BFF2F007235A6 /* SpringBoardServices.tbd */,
407394
CC654E0B2DABD95E00D54F83 /* SpringBoardServices.Sim.tbd */,
408-
CC654E5F2DABE3EB00D54F83 /* libroot_dyn_iphoneos-arm64.a */,
409395
);
410396
path = libraries;
411397
sourceTree = "<group>";
@@ -866,10 +852,13 @@
866852
CODE_SIGN_STYLE = Manual;
867853
CURRENT_PROJECT_VERSION = 13;
868854
DEVELOPMENT_TEAM = "-";
855+
ENABLE_APPINTENTS_DEPLOYMENT_AWARE_PROCESSING = NO;
856+
ENABLE_PREVIEWS = NO;
869857
GCC_PRECOMPILE_PREFIX_HEADER = YES;
870858
GCC_PREFIX_HEADER = "supports/hudapp-prefix.pch";
871859
GCC_PREPROCESSOR_DEFINITIONS = (
872860
"$(inherited)",
861+
"DISABLE_PATH_REDIRECTION=1",
873862
"THEOS_PACKAGE_INSTALL_PREFIX=\\\"\\\"",
874863
);
875864
INFOPLIST_FILE = Resources/Info.plist;
@@ -912,10 +901,13 @@
912901
CODE_SIGN_STYLE = Manual;
913902
CURRENT_PROJECT_VERSION = 13;
914903
DEVELOPMENT_TEAM = "-";
904+
ENABLE_APPINTENTS_DEPLOYMENT_AWARE_PROCESSING = NO;
905+
ENABLE_PREVIEWS = NO;
915906
GCC_PRECOMPILE_PREFIX_HEADER = YES;
916907
GCC_PREFIX_HEADER = "supports/hudapp-prefix.pch";
917908
GCC_PREPROCESSOR_DEFINITIONS = (
918909
"$(inherited)",
910+
"DISABLE_PATH_REDIRECTION=1",
919911
"THEOS_PACKAGE_INSTALL_PREFIX=\\\"\\\"",
920912
);
921913
INFOPLIST_FILE = Resources/Info.plist;

build.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ if [ -z "$GITHUB_WORKSPACE" ]; then
1212
GITHUB_WORKSPACE="$HOME"
1313
fi
1414

15+
# Set THEOS to the correct path
16+
THEOS="$GITHUB_WORKSPACE/theos-roothide"
17+
if [ ! -d "$THEOS" ]; then
18+
THEOS="$GITHUB_WORKSPACE/theos"
19+
fi
20+
1521
# Build using Xcode
1622
xcodebuild clean build archive \
1723
-scheme TrollSpeed \
@@ -22,7 +28,7 @@ xcodebuild clean build archive \
2228
-archivePath TrollSpeed \
2329
CODE_SIGNING_ALLOWED=NO \
2430
IPHONEOS_DEPLOYMENT_TARGET=16.0 \
25-
THEOS="$GITHUB_WORKSPACE/theos" | xcpretty
31+
THEOS="$THEOS" | xcpretty
2632

2733
chmod 0644 Resources/Info.plist
2834
cp supports/entitlements.plist TrollSpeed.xcarchive/Products
-27.2 KB
Binary file not shown.

supports/hudapp-prefix.pch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#import <Foundation/Foundation.h>
1111
#import <UIKit/UIKit.h>
1212

13-
#if !TARGET_OS_SIMULATOR
13+
#if !TARGET_OS_SIMULATOR && !defined(DISABLE_PATH_REDIRECTION)
1414
#if __has_include(<roothide.h>)
1515
#import <roothide.h>
1616
#ifndef JBROOT_PATH_CSTRING

0 commit comments

Comments
 (0)