[iOS] Fix the TestApp (#74090)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/74090
Test Plan: Imported from OSS
Reviewed By: hanton
Differential Revision: D34812215
Pulled By: xta0
fbshipit-source-id: 70beb8239d195a59c8df6588ea1ae4d7cc52026d
(cherry picked from commit fa72699b81563f89e8a54f8be4d81bb25b6438eb)