Skip to content

Commit 9ff43ea

Browse files
committed
extension: Embed in CodeUI
1 parent 3ac6427 commit 9ff43ea

File tree

3 files changed

+50
-22
lines changed

3 files changed

+50
-22
lines changed

Code.xcodeproj/project.pbxproj

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,7 @@
754754
94E6CC862807502A00939E4F /* ActivityBarItemView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 94E6CC842807502A00939E4F /* ActivityBarItemView.swift */; };
755755
94E6CC882807632B00939E4F /* biometricType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 94E6CC872807632B00939E4F /* biometricType.swift */; };
756756
94E6CC892807632B00939E4F /* biometricType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 94E6CC872807632B00939E4F /* biometricType.swift */; };
757+
94EDC7B42C2DCBF600C86F56 /* extension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 94369AFC25E3B933008419A0 /* extension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
757758
94F2FEA526A2D45C007EBC6D /* freetype.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 94F2FEA326A2D44D007EBC6D /* freetype.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
758759
94F2FEA726A2D89A007EBC6D /* network_ios.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 94B7C4AB25F5518700F1EF4E /* network_ios.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
759760
94F2FEA926A2EB0E007EBC6D /* convertCArguments.swift in Sources */ = {isa = PBXBuildFile; fileRef = 94F2FEA826A2EB0E007EBC6D /* convertCArguments.swift */; };
@@ -903,6 +904,13 @@
903904
remoteGlobalIDString = 94369AFB25E3B933008419A0;
904905
remoteInfo = extension;
905906
};
907+
94EDC7B52C2DCBF600C86F56 /* PBXContainerItemProxy */ = {
908+
isa = PBXContainerItemProxy;
909+
containerPortal = 944EEBE82563C381009D77FE /* Project object */;
910+
proxyType = 1;
911+
remoteGlobalIDString = 94369AFB25E3B933008419A0;
912+
remoteInfo = extension;
913+
};
906914
9FE3E296298A14BC00F63DD0 /* PBXContainerItemProxy */ = {
907915
isa = PBXContainerItemProxy;
908916
containerPortal = 944EEBE82563C381009D77FE /* Project object */;
@@ -1351,6 +1359,17 @@
13511359
name = "Embed Frameworks";
13521360
runOnlyForDeploymentPostprocessing = 0;
13531361
};
1362+
94EDC7B72C2DCBF600C86F56 /* Embed Foundation Extensions */ = {
1363+
isa = PBXCopyFilesBuildPhase;
1364+
buildActionMask = 2147483647;
1365+
dstPath = "";
1366+
dstSubfolderSpec = 13;
1367+
files = (
1368+
94EDC7B42C2DCBF600C86F56 /* extension.appex in Embed Foundation Extensions */,
1369+
);
1370+
name = "Embed Foundation Extensions";
1371+
runOnlyForDeploymentPostprocessing = 0;
1372+
};
13541373
9FE3E29D298A163200F63DD0 /* Embed Frameworks */ = {
13551374
isa = PBXCopyFilesBuildPhase;
13561375
buildActionMask = 2147483647;
@@ -3165,10 +3184,12 @@
31653184
9419698E280316C7008AAEB2 /* Frameworks */,
31663185
9419699A280316C7008AAEB2 /* Resources */,
31673186
941969AA280316C7008AAEB2 /* Embed Frameworks */,
3187+
94EDC7B72C2DCBF600C86F56 /* Embed Foundation Extensions */,
31683188
);
31693189
buildRules = (
31703190
);
31713191
dependencies = (
3192+
94EDC7B62C2DCBF600C86F56 /* PBXTargetDependency */,
31723193
);
31733194
name = CodeUI;
31743195
packageProductDependencies = (
@@ -3873,6 +3894,11 @@
38733894
target = 94369AFB25E3B933008419A0 /* extension */;
38743895
targetProxy = 94369B0525E3B933008419A0 /* PBXContainerItemProxy */;
38753896
};
3897+
94EDC7B62C2DCBF600C86F56 /* PBXTargetDependency */ = {
3898+
isa = PBXTargetDependency;
3899+
target = 94369AFB25E3B933008419A0 /* extension */;
3900+
targetProxy = 94EDC7B52C2DCBF600C86F56 /* PBXContainerItemProxy */;
3901+
};
38763902
9FE3E297298A14BC00F63DD0 /* PBXTargetDependency */ = {
38773903
isa = PBXTargetDependency;
38783904
target = 9419692E280316C7008AAEB2 /* CodeUI */;

Code.xcodeproj/xcshareddata/xcschemes/extension.xcscheme

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
</BuildableReference>
2323
</BuildActionEntry>
2424
<BuildActionEntry
25-
buildForTesting = "YES"
26-
buildForRunning = "YES"
27-
buildForProfiling = "YES"
28-
buildForArchiving = "YES"
29-
buildForAnalyzing = "YES">
25+
buildForTesting = "NO"
26+
buildForRunning = "NO"
27+
buildForProfiling = "NO"
28+
buildForArchiving = "NO"
29+
buildForAnalyzing = "NO">
3030
<BuildableReference
3131
BuildableIdentifier = "primary"
3232
BlueprintIdentifier = "944EEBEF2563C381009D77FE"
@@ -35,6 +35,20 @@
3535
ReferencedContainer = "container:Code.xcodeproj">
3636
</BuildableReference>
3737
</BuildActionEntry>
38+
<BuildActionEntry
39+
buildForTesting = "NO"
40+
buildForRunning = "YES"
41+
buildForProfiling = "NO"
42+
buildForArchiving = "NO"
43+
buildForAnalyzing = "NO">
44+
<BuildableReference
45+
BuildableIdentifier = "primary"
46+
BlueprintIdentifier = "9419692E280316C7008AAEB2"
47+
BuildableName = "CodeUI.app"
48+
BlueprintName = "CodeUI"
49+
ReferencedContainer = "container:Code.xcodeproj">
50+
</BuildableReference>
51+
</BuildActionEntry>
3852
</BuildActionEntries>
3953
</BuildAction>
4054
<TestAction
@@ -65,15 +79,6 @@
6579
ReferencedContainer = "container:Code.xcodeproj">
6680
</BuildableReference>
6781
</BuildableProductRunnable>
68-
<MacroExpansion>
69-
<BuildableReference
70-
BuildableIdentifier = "primary"
71-
BlueprintIdentifier = "944EEBEF2563C381009D77FE"
72-
BuildableName = "Code.app"
73-
BlueprintName = "Code"
74-
ReferencedContainer = "container:Code.xcodeproj">
75-
</BuildableReference>
76-
</MacroExpansion>
7782
</LaunchAction>
7883
<ProfileAction
7984
buildConfiguration = "Release"
@@ -83,16 +88,15 @@
8388
debugDocumentVersioning = "YES"
8489
askForAppToLaunch = "Yes"
8590
launchAutomaticallySubstyle = "2">
86-
<BuildableProductRunnable
87-
runnableDebuggingMode = "0">
91+
<MacroExpansion>
8892
<BuildableReference
8993
BuildableIdentifier = "primary"
90-
BlueprintIdentifier = "944EEBEF2563C381009D77FE"
91-
BuildableName = "Code.app"
92-
BlueprintName = "Code"
94+
BlueprintIdentifier = "94369AFB25E3B933008419A0"
95+
BuildableName = "extension.appex"
96+
BlueprintName = "extension"
9397
ReferencedContainer = "container:Code.xcodeproj">
9498
</BuildableReference>
95-
</BuildableProductRunnable>
99+
</MacroExpansion>
96100
</ProfileAction>
97101
<AnalyzeAction
98102
buildConfiguration = "Debug">

NodeExtension/NodeRunner/NodeRunner.mm

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,8 @@ + (void) startEngineWithArguments:(NSArray*)arguments
4747
current_args_position+=strlen(current_args_position)+1;
4848
}
4949

50-
#if !TARGET_IPHONE_SIMULATOR
5150
//Start node, with argc and argv.
5251
node_start(argument_count,argv);
53-
#endif
5452
free(args_buffer);
5553
}
5654
@end

0 commit comments

Comments
 (0)