Comments (9)
Hmm no idea since its an external issue (args passed to the .app, not ios-sim itself). Perhaps they removed the arg support in iOS 7
from ios-sim.
The problem is not in arguments. It does not work even without arguments:
ios-sim launch /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/Applications/MobileSafari.app
[DEBUG] Session could not be started: Error Domain=DTiPhoneSimulatorErrorDomain Code=1 "iOS Simulator failed to install the application." UserInfo=0x7fcc2ca00920 {NSLocalizedDescription=iOS Simulator failed to install the application., DTiPhoneSimulatorUnderlyingErrorCodeKey=-1}
And -u argument is still supported. This works:
~:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app/Contents/MacOS/iPhone\ Simulator -SimulateApplication /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/Applications/MobileSafari.app/MobileSafari -u http://www.google.com
from ios-sim.
I am facing the exact same problem. Any luck @jbecicka ?
from ios-sim.
Frankly speaking from my point of view upgrade to Xcode5 & IOS Simulator 7 is complete disaster. Nothing works as before. I have problems building applications using cordova. Build often fails. If I'm able to build, application sometimes fails to upload to simulator and start. Sometimes it does not start. Sometime it starts and crashes. I don't want to blame cordova or ios-sim. But now it is unusable for me on iOS. Maybe because of bugs in simulator - I don't know.
So back to your question @umang1912: Any luck?
No luck.
from ios-sim.
Still a problem in Xcode 5.1 (iOS 7.1) and ios-sim 1.9.0
from ios-sim.
Still a problem in the 3.x branch. Might have to wait for #92
from ios-sim.
Using Xcode 6.1 and the iOS 8.1 SDK I get this new error:
ios-sim launch /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/Applications/MobileSafari.app
Session could not be started: Error Domain=LaunchServicesError Code=0 "Unable to run app in Simulator" UserInfo=0x7fe9a6b00d00 {Error=ApplicationAlreadyInstalled, ErrorDescription=Rejecting downgrade of system/internal app com.apple.mobilesafari: installed version is 600.1.4, proposed version is 600.1.4, NSLocalizedFailureReason=An error was encountered while running (Domain = LaunchServicesError, Code = 0), NSUnderlyingError=0x7fe9a6802470 "The operation couldn’t be completed. (LaunchServicesError error 0.)", NSLocalizedDescription=Unable to run app in Simulator}
It appears that it wants to "update" the app.
from ios-sim.
See #92 -- Alternative:
xcrun simctl openurl <device> <url>
To get a list of devices:
xcrun simctl list
from ios-sim.
Slated for 4.2.0 and support of --args
from ios-sim.
Related Issues (20)
- No devices in cordova project HOT 10
- convert module to oclif
- complete coverage for command `install` HOT 1
- complete coverage for command `launch`
- complete coverage for command `start` HOT 1
- List empty of devices simulator with Xcode 10.2 HOT 60
- Log more information about simulator being launched
- List empty of devices simulator with Xcode 11 HOT 3
- Error: Cannot read property 'toLowerCase' of undefined
- --devicetypeid was not specified, using first available device: null. HOT 4
- Add support to non binary Info.plist files
- How to run ios-sim all command through python script
- TypeError: Cannot read property 'devicetypes' of undefined HOT 8
- Unable to install the application in simulator HOT 5
- Unhandled Error: launch.js line 51. this.log undefined. HOT 4
- Custom simulators not appearing in showdevicetypes
- BUG: `npm list` errors on this module on global mode
- Bump simctl to 2.0.1 for security updates
- remove appveyor and travis ci, use Github Actions HOT 2
- node.js 16 test failures HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ios-sim.