CodeWithOz commented on issue #1221:
URL: https://github.com/apache/cordova-ios/issues/1221#issuecomment-1026327690
To be clear what I mean is that I forked cordova-ios and updated the
`package.json` to use:
```json
...
"ios-sim": "github:CodeWithOz/ios-sim#fix-pin-simctl",
...
```
and the `package-lock.json` now has:
```json
...
"ios-sim": "github:CodeWithOz/ios-sim#fix-pin-simctl",
...
"node_modules/ios-sim": {
"version": "9.0.0",
"resolved":
"git+ssh://[email protected]/CodeWithOz/ios-sim.git#7471195884b9596e73934ab8a07c9836417cd35f",
"license": "Apache-2.0",
"dependencies": {
"@oclif/command": "^1.5.18",
"@oclif/config": "^1.13.3",
"@oclif/errors": "^1.2.2",
"@oclif/plugin-help": "^2.2.1",
"bplist-parser": "^0.2.0",
"debug": "^4.1.1",
"nopt": "^4.0.1",
"plist": "^3.0.1",
"simctl": "2.0.0"
},
"bin": {
"ios-sim": "bin/ios-sim"
},
"engines": {
"node": ">=8"
}
},
...
"ios-sim": {
"version":
"git+ssh://[email protected]/CodeWithOz/ios-sim.git#7471195884b9596e73934ab8a07c9836417cd35f",
"from": "ios-sim@CodeWithOz/ios-sim#fix-pin-simctl",
"requires": {
"@oclif/command": "^1.5.18",
"@oclif/config": "^1.13.3",
"@oclif/errors": "^1.2.2",
"@oclif/plugin-help": "^2.2.1",
"bplist-parser": "^0.2.0",
"debug": "^4.1.1",
"nopt": "^4.0.1",
"plist": "^3.0.1",
"simctl": "2.0.0"
},
"dependencies": {
"nopt": {
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/nopt/-/nopt-4.0.3.tgz",
"integrity":
"sha512-CvaGwVMztSMJLOeXPrez7fyfObdZqNUK1cPAEzLHrTybIua9pMdmmPR5YwtfNftIOMv3DPUhFaxsZMNTQO20Kg==",
"requires": {
"abbrev": "1",
"osenv": "^0.1.4"
}
}
}
},
...
```
I add the platform using `cordova platform add -verbose
https://github.com/CodeWithOz/cordova-ios#fix-ios-sim` and get this as part of
the error:
```
Using cordova-fetch for https://github.com/CodeWithOz/cordova-ios#fix-ios-sim
fetch: Installing https://github.com/CodeWithOz/cordova-ios#fix-ios-sim to
/Users/{user}/Documents/{project}
Running command: npm install
https://github.com/CodeWithOz/cordova-ios#fix-ios-sim --save-dev
Command finished with error code 1: npm
install,https://github.com/CodeWithOz/cordova-ios#fix-ios-sim,--save-dev
Failed to fetch platform
https://github.com/CodeWithOz/cordova-ios#fix-ios-sim
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
CordovaError: Error: npm: Command failed with exit code 1 Error output:
sh: oclif-dev: command not found
npm ERR! premature close
```
It seems the relevant line is `Command finished with error code 1: npm
install,https://github.com/CodeWithOz/cordova-ios#fix-ios-sim,--save-dev`, so
when I ran `npm i` directly in the cordova-ios folder I get a stream of errors
like this (abbreviated because it's really really long):
```
...
npm WARN tar ENOENT: no such file or directory, lstat
'/Users/{user}/Documents/cordova-ios/node_modules/.staging/rxjs-756692a8/src/operator'
npm WARN tar ENOENT: no such file or directory, open
'/Users/{user}/Documents/cordova-ios/node_modules/.staging/rxjs-756692a8/src/operators/zipAll.ts'
npm WARN tar ENOENT: no such file or directory, open
'/Users/{user}/Documents/cordova-ios/node_modules/.staging/rxjs-756692a8/_esm2015/LICENSE.txt'
...
```
Any ideas on what the solution could be for me?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]