Skip to content

Commit 809d7f1

Browse files
committed
build: generate dsyms for the iOS framework
1 parent ef8d2c0 commit 809d7f1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,12 @@ def run(self):
158158

159159
if self.command_args.ios:
160160
self.console.info('Building native libaries for iOS...')
161+
ios_plugin_dst = os.path.join(_BUILD_RUNTIME_PATH, 'Plugins', 'iOS')
161162
self._run_command(self._build_ios_commands())
162-
self._unzip(self._find_latest_built_framework(), os.path.join(_BUILD_RUNTIME_PATH, 'Plugins', 'iOS'))
163+
self._unzip(self._find_latest_built_framework(), ios_plugin_dst)
164+
self._copytree(
165+
os.path.join(_BAZEL_BIN_PATH, 'mediapipe_api', 'objc', 'MediaPipeUnity.framework.dSYM'),
166+
os.path.join(ios_plugin_dst, 'MediaPipeUnity.framework.dSYM'))
163167

164168
self.console.info('Built native libraries for iOS')
165169

@@ -299,6 +303,7 @@ def _build_ios_commands(self):
299303
commands = self._build_common_commands()
300304
commands += [f'--config=ios_{self.command_args.ios}']
301305
commands += self._build_opencv_switch()
306+
commands.append('--apple_generate_dsym')
302307

303308
commands.append('//mediapipe_api/objc:MediaPipeUnity')
304309
return commands

0 commit comments

Comments
 (0)