Skip to content

Commit 609f71e

Browse files
shoumikhinfacebook-github-bot
authored andcommitted
Add custom info plist and entitilements keys. (#2721)
Summary: Pull Request resolved: #2721 Those will allow file sharing and increase the memory limit. Reviewed By: guangy10, kirklandsign Differential Revision: D55441271 fbshipit-source-id: a897d18b97f71d13f478aa5248624cb7fdaceabe
1 parent 25cc295 commit 609f71e

File tree

4 files changed

+50
-8
lines changed

4 files changed

+50
-8
lines changed

examples/demo-apps/apple_ios/LLaMA/LLaMA.xcodeproj/project.pbxproj

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
/* End PBXCopyFilesBuildPhase section */
6262

6363
/* Begin PBXFileReference section */
64+
0320439D2BB4AC6600050211 /* LLaMA-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "LLaMA-Info.plist"; sourceTree = "<group>"; };
6465
0324D6802BAACB6900DEF36F /* App.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = App.swift; sourceTree = "<group>"; };
6566
0324D6812BAACB6900DEF36F /* ContentView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
6667
0324D6822BAACB6900DEF36F /* LogManager.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LogManager.swift; sourceTree = "<group>"; };
@@ -73,6 +74,7 @@
7374
0324D6942BAACB7000DEF36F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
7475
0324D6992BAACB7C00DEF36F /* LLaMARunner.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LLaMARunner.h; sourceTree = "<group>"; };
7576
0324D69A2BAACB7C00DEF36F /* LLaMARunner.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = LLaMARunner.mm; sourceTree = "<group>"; };
77+
035A5E942BB4B523001E0553 /* LLaMA.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = LLaMA.entitlements; sourceTree = "<group>"; };
7678
036CAF9D2BB1444500D6C2D5 /* LLaMA.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = LLaMA.app; sourceTree = BUILT_PRODUCTS_DIR; };
7779
03729ED52BB1F8DE00152F2E /* LLaMARunner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = LLaMARunner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
7880
03729F072BB203B300152F2E /* runner.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = runner.cpp; sourceTree = "<group>"; };
@@ -109,6 +111,14 @@
109111
/* End PBXFrameworksBuildPhase section */
110112

111113
/* Begin PBXGroup section */
114+
0320439E2BB4AC6600050211 /* SupportingFiles */ = {
115+
isa = PBXGroup;
116+
children = (
117+
0320439D2BB4AC6600050211 /* LLaMA-Info.plist */,
118+
);
119+
path = SupportingFiles;
120+
sourceTree = "<group>";
121+
};
112122
0324D6892BAACB6900DEF36F /* Application */ = {
113123
isa = PBXGroup;
114124
children = (
@@ -129,6 +139,7 @@
129139
isa = PBXGroup;
130140
children = (
131141
0324D6892BAACB6900DEF36F /* Application */,
142+
0320439E2BB4AC6600050211 /* SupportingFiles */,
132143
);
133144
path = LLaMA;
134145
sourceTree = "<group>";
@@ -174,12 +185,21 @@
174185
children = (
175186
0324D68A2BAACB6900DEF36F /* LLaMA */,
176187
0324D6952BAACB7000DEF36F /* LLaMAAssets */,
188+
035A5E952BB4B523001E0553 /* LLaMAEntitlements */,
177189
0324D69F2BAACB7C00DEF36F /* LLaMARunner */,
178190
036CAF9D2BB1444500D6C2D5 /* LLaMA.app */,
179191
03729ED52BB1F8DE00152F2E /* LLaMARunner.framework */,
180192
);
181193
sourceTree = "<group>";
182194
};
195+
035A5E952BB4B523001E0553 /* LLaMAEntitlements */ = {
196+
isa = PBXGroup;
197+
children = (
198+
035A5E942BB4B523001E0553 /* LLaMA.entitlements */,
199+
);
200+
path = LLaMAEntitlements;
201+
sourceTree = "<group>";
202+
};
183203
03729F062BB2035900152F2E /* runner */ = {
184204
isa = PBXGroup;
185205
children = (
@@ -229,9 +249,9 @@
229249
/* End PBXHeadersBuildPhase section */
230250

231251
/* Begin PBXNativeTarget section */
232-
032C016E2AC228E6002955E1 /* App */ = {
252+
032C016E2AC228E6002955E1 /* LLaMA */ = {
233253
isa = PBXNativeTarget;
234-
buildConfigurationList = 032C017D2AC228E7002955E1 /* Build configuration list for PBXNativeTarget "App" */;
254+
buildConfigurationList = 032C017D2AC228E7002955E1 /* Build configuration list for PBXNativeTarget "LLaMA" */;
235255
buildPhases = (
236256
032C016B2AC228E6002955E1 /* Sources */,
237257
032C016C2AC228E6002955E1 /* Frameworks */,
@@ -243,7 +263,7 @@
243263
dependencies = (
244264
03729EDA2BB1F8DE00152F2E /* PBXTargetDependency */,
245265
);
246-
name = App;
266+
name = LLaMA;
247267
packageProductDependencies = (
248268
0395C6D22BB34ED10090705A /* coreml_backend */,
249269
0395C6D62BB34ED10090705A /* mps_backend */,
@@ -310,7 +330,7 @@
310330
projectDirPath = "";
311331
projectRoot = "";
312332
targets = (
313-
032C016E2AC228E6002955E1 /* App */,
333+
032C016E2AC228E6002955E1 /* LLaMA */,
314334
03729ED42BB1F8DE00152F2E /* LLaMARunner */,
315335
);
316336
};
@@ -512,13 +532,16 @@
512532
isa = XCBuildConfiguration;
513533
buildSettings = {
514534
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
535+
CODE_SIGN_ENTITLEMENTS = LLaMAEntitlements/LLaMA.entitlements;
515536
CODE_SIGN_IDENTITY = "Apple Development";
516537
CODE_SIGN_STYLE = Automatic;
517538
CURRENT_PROJECT_VERSION = 1;
518539
DEVELOPMENT_TEAM = "";
519540
ENABLE_PREVIEWS = YES;
520541
GENERATE_INFOPLIST_FILE = YES;
542+
INFOPLIST_FILE = "LLaMA/SupportingFiles/LLaMA-Info.plist";
521543
INFOPLIST_KEY_CFBundleDisplayName = iLLaMA;
544+
INFOPLIST_KEY_LSSupportsOpeningDocumentsInPlace = YES;
522545
INFOPLIST_KEY_NSCameraUsageDescription = "";
523546
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
524547
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
@@ -542,13 +565,16 @@
542565
isa = XCBuildConfiguration;
543566
buildSettings = {
544567
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
568+
CODE_SIGN_ENTITLEMENTS = LLaMAEntitlements/LLaMA.entitlements;
545569
CODE_SIGN_IDENTITY = "Apple Development";
546570
CODE_SIGN_STYLE = Automatic;
547571
CURRENT_PROJECT_VERSION = 1;
548572
DEVELOPMENT_TEAM = "";
549573
ENABLE_PREVIEWS = YES;
550574
GENERATE_INFOPLIST_FILE = YES;
575+
INFOPLIST_FILE = "LLaMA/SupportingFiles/LLaMA-Info.plist";
551576
INFOPLIST_KEY_CFBundleDisplayName = iLLaMA;
577+
INFOPLIST_KEY_LSSupportsOpeningDocumentsInPlace = YES;
552578
INFOPLIST_KEY_NSCameraUsageDescription = "";
553579
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
554580
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
@@ -652,7 +678,7 @@
652678
defaultConfigurationIsVisible = 0;
653679
defaultConfigurationName = Release;
654680
};
655-
032C017D2AC228E7002955E1 /* Build configuration list for PBXNativeTarget "App" */ = {
681+
032C017D2AC228E7002955E1 /* Build configuration list for PBXNativeTarget "LLaMA" */ = {
656682
isa = XCConfigurationList;
657683
buildConfigurations = (
658684
032C017E2AC228E7002955E1 /* Debug */,

examples/demo-apps/apple_ios/LLaMA/LLaMA.xcodeproj/xcshareddata/xcschemes/App.xcscheme renamed to examples/demo-apps/apple_ios/LLaMA/LLaMA.xcodeproj/xcshareddata/xcschemes/LLaMA.xcscheme

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
BuildableIdentifier = "primary"
1717
BlueprintIdentifier = "032C016E2AC228E6002955E1"
1818
BuildableName = "LLaMA.app"
19-
BlueprintName = "App"
19+
BlueprintName = "LLaMA"
2020
ReferencedContainer = "container:LLaMA.xcodeproj">
2121
</BuildableReference>
2222
</BuildActionEntry>
@@ -45,7 +45,7 @@
4545
BuildableIdentifier = "primary"
4646
BlueprintIdentifier = "032C016E2AC228E6002955E1"
4747
BuildableName = "LLaMA.app"
48-
BlueprintName = "App"
48+
BlueprintName = "LLaMA"
4949
ReferencedContainer = "container:LLaMA.xcodeproj">
5050
</BuildableReference>
5151
</BuildableProductRunnable>
@@ -61,7 +61,7 @@
6161
BuildableIdentifier = "primary"
6262
BlueprintIdentifier = "032C016E2AC228E6002955E1"
6363
BuildableName = "LLaMA.app"
64-
BlueprintName = "App"
64+
BlueprintName = "LLaMA"
6565
ReferencedContainer = "container:LLaMA.xcodeproj">
6666
</BuildableReference>
6767
</MacroExpansion>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>UIFileSharingEnabled</key>
6+
<true/>
7+
</dict>
8+
</plist>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>com.apple.developer.kernel.increased-memory-limit</key>
6+
<true/>
7+
</dict>
8+
</plist>

0 commit comments

Comments
 (0)