We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8734465 commit 5897fc2Copy full SHA for 5897fc2
packages/host/src/node/prebuilds/apple.ts
@@ -99,7 +99,19 @@ export async function createXCframework({
99
"xcodebuild",
100
[
101
"-create-xcframework",
102
- ...frameworkPaths.flatMap((p) => ["-framework", p]),
+ ...frameworkPaths.flatMap((frameworkPath) => {
103
+ const debugSymbolPath = frameworkPath + ".dSYM";
104
+ if (fs.existsSync(debugSymbolPath)) {
105
+ return [
106
+ "-framework",
107
+ frameworkPath,
108
+ "-debug-symbols",
109
+ debugSymbolPath,
110
+ ];
111
+ } else {
112
+ return ["-framework", frameworkPath];
113
+ }
114
+ }),
115
"-output",
116
xcodeOutputPath,
117
],
0 commit comments