@tokamakdev/platform-ios-simulator-x64 0.1.1-beta.53 → 0.1.1-beta.55
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.
|
@@ -194,6 +194,10 @@ registry=$temporary/TokamakPluginRegistry.swift
|
|
|
194
194
|
printf '%s\n' '}'
|
|
195
195
|
} > "$registry"
|
|
196
196
|
|
|
197
|
+
# The executable exports only the entry points of the runtime parts the app
|
|
198
|
+
# links.
|
|
199
|
+
exported_symbols=$temporary/exported-symbols
|
|
200
|
+
sed 's/^/_/' "$metadata/exported-symbols" > "$exported_symbols"
|
|
197
201
|
swift_args=(
|
|
198
202
|
"${swift_sources[@]}"
|
|
199
203
|
"$registry"
|
|
@@ -208,7 +212,7 @@ swift_args=(
|
|
|
208
212
|
-lc++
|
|
209
213
|
-lresolv
|
|
210
214
|
-Xlinker -dead_strip
|
|
211
|
-
-Xlinker -
|
|
215
|
+
-Xlinker -exported_symbols_list -Xlinker "$exported_symbols"
|
|
212
216
|
)
|
|
213
217
|
for plugin in "$input/plugins"/*; do
|
|
214
218
|
[[ -d "$plugin" ]] || continue
|
|
@@ -227,7 +231,8 @@ if [[ "$platform" == ios-simulator ]]; then
|
|
|
227
231
|
fi
|
|
228
232
|
|
|
229
233
|
xcrun --sdk "$sdk" swiftc "${swift_args[@]}" -o "$executable_dir/$app_slug"
|
|
230
|
-
|
|
234
|
+
# Local symbols go; the exported entry points of linked parts stay.
|
|
235
|
+
xcrun --sdk "$sdk" strip -x "$executable_dir/$app_slug"
|
|
231
236
|
|
|
232
237
|
write_plist
|
|
233
238
|
|
|
Binary file
|
|
Binary file
|