@nativescript/visionos 9.0.1 → 9.1.0-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/framework/__PROJECT_NAME__.xcodeproj/project.pbxproj +27 -8
- package/framework/internal/metadata-generator-arm64/bin/build-step-metadata-generator.py +3 -7
- package/framework/internal/metadata-generator-arm64/bin/objc-metadata-generator +0 -0
- package/framework/internal/metadata-generator-x86_64/bin/build-step-metadata-generator.py +3 -7
- package/framework/internal/metadata-generator-x86_64/bin/objc-metadata-generator +0 -0
- package/framework/internal/nativescript-build.xcconfig +4 -1
- package/framework/internal/nsld.sh +16 -8
- package/package.json +1 -1
- package/framework/internal/XCFrameworks.zip +0 -0
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
objects = {
|
|
8
8
|
|
|
9
9
|
/* Begin PBXBuildFile section */
|
|
10
|
-
|
|
11
|
-
39940E1C22C5DFFF0050DDE1 /* TKLiveSync.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 39940E1B22C5DFFF0050DDE1 /* TKLiveSync.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
|
|
10
|
+
AA10000000000000000000C1 /* NativeScriptVisionOS in Frameworks */ = {isa = PBXBuildFile; productRef = AA10000000000000000000B1 /* NativeScriptVisionOS */; };
|
|
12
11
|
858B842D18CA22B800AB12DE /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 858B833A18CA111C00AB12DE /* InfoPlist.strings */; };
|
|
13
12
|
AAA0AADB2A54B96B00EE55A4 /* NativeScriptStart.m in Sources */ = {isa = PBXBuildFile; fileRef = AAA0AADA2A54B96B00EE55A4 /* NativeScriptStart.m */; };
|
|
14
13
|
CD45EE7C18DC2D5800FB50C0 /* app in Resources */ = {isa = PBXBuildFile; fileRef = CD45EE7A18DC2D5800FB50C0 /* app */; };
|
|
@@ -21,8 +20,6 @@
|
|
|
21
20
|
dstPath = "";
|
|
22
21
|
dstSubfolderSpec = 10;
|
|
23
22
|
files = (
|
|
24
|
-
39940D9122C4EF600050DDE1 /* NativeScript.xcframework in Embed Frameworks */,
|
|
25
|
-
39940E1C22C5DFFF0050DDE1 /* TKLiveSync.xcframework in Embed Frameworks */,
|
|
26
23
|
);
|
|
27
24
|
name = "Embed Frameworks";
|
|
28
25
|
runOnlyForDeploymentPostprocessing = 0;
|
|
@@ -34,8 +31,6 @@
|
|
|
34
31
|
391174B721F1D99900BA2583 /* plugins-release.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "plugins-release.xcconfig"; sourceTree = SOURCE_ROOT; };
|
|
35
32
|
391174B821F1D99900BA2583 /* plugins-debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "plugins-debug.xcconfig"; sourceTree = SOURCE_ROOT; };
|
|
36
33
|
39940D8122C4E84C0050DDE1 /* __PROJECT_NAME__.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = __PROJECT_NAME__.entitlements; sourceTree = "<group>"; };
|
|
37
|
-
39940D8C22C4EAAA0050DDE1 /* NativeScript.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = NativeScript.xcframework; path = internal/NativeScript.xcframework; sourceTree = "<group>"; };
|
|
38
|
-
39940E1B22C5DFFF0050DDE1 /* TKLiveSync.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = TKLiveSync.xcframework; path = internal/TKLiveSync.xcframework; sourceTree = "<group>"; };
|
|
39
34
|
42C751E2232B769100186695 /* nativescript-pre-link */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = "nativescript-pre-link"; path = "internal/nativescript-pre-link"; sourceTree = SOURCE_ROOT; };
|
|
40
35
|
42C751E3232B769100186695 /* strip-dynamic-framework-architectures.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; name = "strip-dynamic-framework-architectures.sh"; path = "internal/strip-dynamic-framework-architectures.sh"; sourceTree = SOURCE_ROOT; };
|
|
41
36
|
42C751E4232B769100186695 /* nsld.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; name = nsld.sh; path = internal/nsld.sh; sourceTree = SOURCE_ROOT; };
|
|
@@ -61,6 +56,7 @@
|
|
|
61
56
|
isa = PBXFrameworksBuildPhase;
|
|
62
57
|
buildActionMask = 2147483647;
|
|
63
58
|
files = (
|
|
59
|
+
AA10000000000000000000C1 /* NativeScriptVisionOS in Frameworks */,
|
|
64
60
|
);
|
|
65
61
|
runOnlyForDeploymentPostprocessing = 0;
|
|
66
62
|
};
|
|
@@ -112,8 +108,6 @@
|
|
|
112
108
|
858B833018CA111C00AB12DE /* Frameworks */ = {
|
|
113
109
|
isa = PBXGroup;
|
|
114
110
|
children = (
|
|
115
|
-
39940E1B22C5DFFF0050DDE1 /* TKLiveSync.xcframework */,
|
|
116
|
-
39940D8C22C4EAAA0050DDE1 /* NativeScript.xcframework */,
|
|
117
111
|
);
|
|
118
112
|
name = Frameworks;
|
|
119
113
|
sourceTree = "<group>";
|
|
@@ -173,6 +167,9 @@
|
|
|
173
167
|
dependencies = (
|
|
174
168
|
);
|
|
175
169
|
name = __PROJECT_NAME__;
|
|
170
|
+
packageProductDependencies = (
|
|
171
|
+
AA10000000000000000000B1 /* NativeScriptVisionOS */,
|
|
172
|
+
);
|
|
176
173
|
productName = JDBridgeApp;
|
|
177
174
|
productReference = 858B843318CA22B800AB12DE /* __PROJECT_NAME__.app */;
|
|
178
175
|
productType = "com.apple.product-type.application";
|
|
@@ -203,6 +200,9 @@
|
|
|
203
200
|
Base,
|
|
204
201
|
);
|
|
205
202
|
mainGroup = 858B832518CA111C00AB12DE;
|
|
203
|
+
packageReferences = (
|
|
204
|
+
AA10000000000000000000A1 /* XCRemoteSwiftPackageReference "ios-spm" */,
|
|
205
|
+
);
|
|
206
206
|
productRefGroup = 858B832F18CA111C00AB12DE /* Products */;
|
|
207
207
|
projectDirPath = "";
|
|
208
208
|
projectRoot = "";
|
|
@@ -504,6 +504,25 @@
|
|
|
504
504
|
defaultConfigurationName = Release;
|
|
505
505
|
};
|
|
506
506
|
/* End XCConfigurationList section */
|
|
507
|
+
|
|
508
|
+
/* Begin XCRemoteSwiftPackageReference section */
|
|
509
|
+
AA10000000000000000000A1 /* XCRemoteSwiftPackageReference "ios-spm" */ = {
|
|
510
|
+
isa = XCRemoteSwiftPackageReference;
|
|
511
|
+
repositoryURL = "https://github.com/NativeScript/ios-spm.git";
|
|
512
|
+
requirement = {
|
|
513
|
+
kind = exactVersion;
|
|
514
|
+
version = "9.1.0-alpha.11";
|
|
515
|
+
};
|
|
516
|
+
};
|
|
517
|
+
/* End XCRemoteSwiftPackageReference section */
|
|
518
|
+
|
|
519
|
+
/* Begin XCSwiftPackageProductDependency section */
|
|
520
|
+
AA10000000000000000000B1 /* NativeScriptVisionOS */ = {
|
|
521
|
+
isa = XCSwiftPackageProductDependency;
|
|
522
|
+
package = AA10000000000000000000A1 /* XCRemoteSwiftPackageReference "ios-spm" */;
|
|
523
|
+
productName = NativeScriptVisionOS;
|
|
524
|
+
};
|
|
525
|
+
/* End XCSwiftPackageProductDependency section */
|
|
507
526
|
};
|
|
508
527
|
rootObject = 858B832618CA111C00AB12DE /* Project object */;
|
|
509
528
|
}
|
|
@@ -89,14 +89,10 @@ deployment_target = env(env_or_empty("DEPLOYMENT_TARGET_CLANG_ENV_NAME") or defa
|
|
|
89
89
|
std = env("GCC_C_LANGUAGE_STANDARD")
|
|
90
90
|
header_search_paths = env_or_empty("HEADER_SEARCH_PATHS")
|
|
91
91
|
header_search_paths_parsed = map_and_list((lambda s: "-I" + s), shlex.split(header_search_paths))
|
|
92
|
-
framework_search_paths = env_or_empty("FRAMEWORK_SEARCH_PATHS")
|
|
92
|
+
framework_search_paths = shlex.split(env_or_empty("FRAMEWORK_SEARCH_PATHS"))
|
|
93
93
|
# Add extra framework search path for newer Xcode versions
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
framework_search_paths += " " + extra_framework_path
|
|
97
|
-
else:
|
|
98
|
-
framework_search_paths = extra_framework_path
|
|
99
|
-
framework_search_paths_parsed = map_and_list((lambda s: "-F" + s), shlex.split(framework_search_paths))
|
|
94
|
+
framework_search_paths.append(os.path.join(sdk_root, "System/Library/SubFrameworks"))
|
|
95
|
+
framework_search_paths_parsed = map_and_list((lambda s: "-F" + s), framework_search_paths)
|
|
100
96
|
other_cflags = env_or_empty("OTHER_CFLAGS")
|
|
101
97
|
other_cflags_parsed = shlex.split(other_cflags)
|
|
102
98
|
enable_modules = env_bool("CLANG_ENABLE_MODULES")
|
|
Binary file
|
|
@@ -89,14 +89,10 @@ deployment_target = env(env_or_empty("DEPLOYMENT_TARGET_CLANG_ENV_NAME") or defa
|
|
|
89
89
|
std = env("GCC_C_LANGUAGE_STANDARD")
|
|
90
90
|
header_search_paths = env_or_empty("HEADER_SEARCH_PATHS")
|
|
91
91
|
header_search_paths_parsed = map_and_list((lambda s: "-I" + s), shlex.split(header_search_paths))
|
|
92
|
-
framework_search_paths = env_or_empty("FRAMEWORK_SEARCH_PATHS")
|
|
92
|
+
framework_search_paths = shlex.split(env_or_empty("FRAMEWORK_SEARCH_PATHS"))
|
|
93
93
|
# Add extra framework search path for newer Xcode versions
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
framework_search_paths += " " + extra_framework_path
|
|
97
|
-
else:
|
|
98
|
-
framework_search_paths = extra_framework_path
|
|
99
|
-
framework_search_paths_parsed = map_and_list((lambda s: "-F" + s), shlex.split(framework_search_paths))
|
|
94
|
+
framework_search_paths.append(os.path.join(sdk_root, "System/Library/SubFrameworks"))
|
|
95
|
+
framework_search_paths_parsed = map_and_list((lambda s: "-F" + s), framework_search_paths)
|
|
100
96
|
other_cflags = env_or_empty("OTHER_CFLAGS")
|
|
101
97
|
other_cflags_parsed = shlex.split(other_cflags)
|
|
102
98
|
enable_modules = env_bool("CLANG_ENABLE_MODULES")
|
|
Binary file
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
// * NativeScript build related flags
|
|
2
2
|
// * Add [sdk=*] after each one to avoid conflict with CocoaPods flags
|
|
3
|
-
|
|
3
|
+
// * NativeScript + TKLiveSync are provided by the SwiftPM "NativeScriptVisionOS" product
|
|
4
|
+
// * (github.com/NativeScript/ios-spm); SwiftPM links/embeds them automatically. The
|
|
5
|
+
// * explicit -framework NativeScript / -framework TKLiveSync / -F internal are omitted.
|
|
6
|
+
OTHER_LDFLAGS[sdk=*] = $(inherited) -ObjC -sectcreate __DATA __TNSMetadata "$(CONFIGURATION_BUILD_DIR)/metadata-$(CURRENT_ARCH).bin" -licucore -lz -lc++ -framework Foundation -framework UIKit -framework CoreGraphics -framework CoreServices -framework Security
|
|
4
7
|
|
|
5
8
|
// We need to add CONFIGURATION_BUILD_DIR here so that we can explicitly quote-escape any paths in it, because the implicitly added path by Xcode is not always escaped
|
|
6
9
|
FRAMEWORK_SEARCH_PATHS[sdk=*] = $(inherited) "$(SRCROOT)/internal/" "$(CONFIGURATION_BUILD_DIR)"
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
source ./.build_env_vars.sh
|
|
3
3
|
|
|
4
|
-
MODULES_DIR="$SRCROOT/internal/Swift-Modules"
|
|
5
|
-
|
|
6
|
-
function DELETE_SWIFT_MODULES_DIR() {
|
|
7
|
-
rm -rf "$MODULES_DIR"
|
|
8
|
-
}
|
|
9
|
-
|
|
10
4
|
function getArch() {
|
|
11
5
|
while [[ $# -gt 0 ]]
|
|
12
6
|
do
|
|
@@ -24,6 +18,21 @@ function getArch() {
|
|
|
24
18
|
done
|
|
25
19
|
}
|
|
26
20
|
|
|
21
|
+
# Workaround for ARCH being set to `undefined_arch` here. Extract it from command line arguments.
|
|
22
|
+
TARGET_ARCH=$(getArch "$@")
|
|
23
|
+
|
|
24
|
+
if [ -z "$TARGET_ARCH" ]; then
|
|
25
|
+
echo "NSLD: Failed to determine target architecture from arguments: $*" >&2
|
|
26
|
+
exit 1
|
|
27
|
+
fi
|
|
28
|
+
|
|
29
|
+
# Use per-architecture directory to avoid race conditions with parallel linker invocations
|
|
30
|
+
MODULES_DIR="$SRCROOT/internal/Swift-Modules-$TARGET_ARCH"
|
|
31
|
+
|
|
32
|
+
function DELETE_SWIFT_MODULES_DIR() {
|
|
33
|
+
rm -rf "$MODULES_DIR"
|
|
34
|
+
}
|
|
35
|
+
|
|
27
36
|
function GEN_MODULEMAP() {
|
|
28
37
|
ARCH_ARG=$1
|
|
29
38
|
SWIFT_HEADER_DIR=$PER_VARIANT_OBJECT_FILE_DIR/$ARCH_ARG
|
|
@@ -52,9 +61,8 @@ function GEN_METADATA() {
|
|
|
52
61
|
popd
|
|
53
62
|
}
|
|
54
63
|
|
|
55
|
-
# Workaround for ARCH being set to `undefined_arch` here. Extract it from command line arguments.
|
|
56
|
-
TARGET_ARCH=$(getArch "$@")
|
|
57
64
|
GEN_MODULEMAP $TARGET_ARCH
|
|
65
|
+
export OTHER_CFLAGS="${OTHER_CFLAGS:+$OTHER_CFLAGS }-fmodule-map-file=\"$MODULES_DIR/module.modulemap\""
|
|
58
66
|
printf "Generating metadata..."
|
|
59
67
|
GEN_METADATA $TARGET_ARCH
|
|
60
68
|
DELETE_SWIFT_MODULES_DIR
|
package/package.json
CHANGED
|
Binary file
|