Giter VIP home page Giter VIP logo

Comments (9)

shazron avatar shazron commented on June 24, 2024

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.

jbecicka avatar jbecicka commented on June 24, 2024

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.

umang1912 avatar umang1912 commented on June 24, 2024

I am facing the exact same problem. Any luck @jbecicka ?

from ios-sim.

jbecicka avatar jbecicka commented on June 24, 2024

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.

shazron avatar shazron commented on June 24, 2024

Still a problem in Xcode 5.1 (iOS 7.1) and ios-sim 1.9.0

from ios-sim.

shazron avatar shazron commented on June 24, 2024

Still a problem in the 3.x branch. Might have to wait for #92

from ios-sim.

shazron avatar shazron commented on June 24, 2024

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.

shazron avatar shazron commented on June 24, 2024

See #92 -- Alternative:

xcrun simctl openurl <device> <url>

To get a list of devices:

xcrun simctl list

from ios-sim.

shazron avatar shazron commented on June 24, 2024

Slated for 4.2.0 and support of --args

from ios-sim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.