There was an error while loading. Please reload this page.
1 parent e081340 commit 4bf7f3fCopy full SHA for 4bf7f3f
1 file changed
nativescript-core/utils/native-helper.ios.ts
@@ -14,7 +14,13 @@ function isOrientationLandscape(orientation: number) {
14
function openFileAtRootModule(filePath: string): boolean {
15
try {
16
const appPath = ios.getCurrentAppPath();
17
- const path = filePath.replace("~", appPath);
+
18
+ let path = "";
19
+ if (new UIDevice().model === "iPhone Simulator") {
20
+ path = filePath;
21
+ } else {
22
+ path = filePath.replace("~", appPath);
23
+ }
24
25
const controller = UIDocumentInteractionController.interactionControllerWithURL(NSURL.fileURLWithPath(path));
26
controller.delegate = new ios.UIDocumentInteractionControllerDelegateImpl();
0 commit comments