Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install the application in simulator #269

Open
asadali737 opened this issue Mar 24, 2020 · 5 comments
Open

Unable to install the application in simulator #269

asadali737 opened this issue Mar 24, 2020 · 5 comments

Comments

@asadali737
Copy link

Issue

I am using following command to install my iOS application in iPhone 11 Pro Max simulator.

ios-sim install /path-to-application -d iPhone-11-Pro-Max

And I am getting following error messages.

/usr/local/lib/node_modules/ios-sim/src/commands/install.js:21
        throw err
        ^

Error: Invalid binary plist. Expected 'bplist' at offset 0.
    at exports.parseBuffer (/usr/local/lib/node_modules/ios-sim/node_modules/bplist-parser/bplistParser.js:55:11)
    at tryParseBuffer (/usr/local/lib/node_modules/ios-sim/node_modules/bplist-parser/bplistParser.js:28:18)
    at /usr/local/lib/node_modules/ios-sim/node_modules/bplist-parser/bplistParser.js:46:7
    at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:61:3)

System Specs

System Software Overview:

      System Version: macOS 10.15.3 (19D76)
      Kernel Version: Darwin 19.3.0
      Boot Volume: MacOS
      Boot Mode: Normal
      Computer Name: ----
      User Name: ----
      Secure Virtual Memory: Enabled
      System Integrity Protection: Enabled
      Time since boot: 3 days 15:47

ios-sim version: ios-sim/9.0.0 darwin-x64 node-v12.14.1

Xcode 11.3.1
Build version 11C504

Xcode Path: /Applications/Xcode.app/Contents/Developer

Node version: v12.14.1

@AmirDoreh
Copy link

did you find any solution for this ? @asadali737

@NikosVlachakis
Copy link

Exactly the same error . Any solution for this ?

@jittuu
Copy link

jittuu commented Sep 7, 2022

I fixed it by converting to binary format.

  1. Right click on [name].app and click Show Package Contents
  2. drag and drop info.plist to another folder (outside of [name].app). (I drop at my home folder [~] on another tab)
  3. convert it to binary format plutil -convert binary1 Info.plist
  4. drag [binary] info.plist into [name].app content.

@muhammadabbas001
Copy link

When I used the following command
plutil -convert binary1 Info.plist
Runs successfully but not convert the file into binary.

@kanadgodse-lh
Copy link

For me, it converts into bplist binary, and app is also installed in simulator, but when I click to open the app, then it shows black screen and crashes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants