[iOS] Fix the TestApp (#65319)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/65319
Test Plan: Imported from OSS
Reviewed By: hanton
Differential Revision: D31049543
Pulled By: xta0
fbshipit-source-id: ff0d0baac30682c63b2a28254ee0a5d8d9b8ca6f