Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Instruments Usage Error: Ambiguous device name/identifier 'iPhone 6 Plus (9.0)' #198

Closed
bb-git opened this issue Sep 20, 2015 · 18 comments
Closed
Labels

Comments

@bb-git
Copy link

bb-git commented Sep 20, 2015

I always receive this error on running snapshot, for all languages, also for the iphone 6.

iphone 5 seems to run fine

@KrauseFx
Copy link
Collaborator

You could try resetting all your simulators using snapshot reset_simulators

@aokj4ck
Copy link

aokj4ck commented Sep 21, 2015

If you open Xcode's "Devices" window, it shows the installed simulators. My 6 and 6s are listed with paired Apple Watches, which changes the name of the simulator.

I do not see a way to remove the watch simulator, my guess is that this is the cause of the problem. @KrauseFx is there a way to list the simulators that snapshot identifies? Does reset_simulators fall back to Xcode's default set?

@KrauseFx
Copy link
Collaborator

@joepasq snapshot creates one device per device type. I remember there was a way to fetch a list of available devices somewhere.

@aokj4ck
Copy link

aokj4ck commented Sep 21, 2015

Okay, thanks. For my use, the Devices window is sufficient.

@bb-git I was able to work around this by 1) opening the Devices window, 2) selecting iPhone 6, (then 6s) and hitting enter, or double-clicking the name in the sources-list/sidebar, and adding "- watch" to the name. 3) Then I added new simulators for iPhone 6/6s without watches, through the same window.

@pedro380085
Copy link

Hi @KrauseFx , I've called snapshot reset_simulators and it did reset by simulators, but created iPhone 6 and iPhone 6 Plus twice. Don't know if that would be my configuration or is something related to snapshot.

@Ged2323
Copy link

Ged2323 commented Sep 23, 2015

I noticed when I reset my simulators I lost a lot of simulators.

@pedro380085
Copy link

Did you read the confirmation message?

On Wed, Sep 23, 2015 at 10:06 AM, Ged2323 notifications@github.com wrote:

I noticed when I reset my simulators I lost a lot of simulators.


Reply to this email directly or view it on GitHub
#198 (comment).

Pedro Góes,
C.E.O. @ InEvent http://inevent.us/
Skype: pedro380085
T: +55 16 981406550

@kohtenko
Copy link

I also got this issue. Solved by opening in iOS simulator Hardware->Device->Manage Devices. In open menu on left panel you can review all of available simulators. In my case there was duplicates of iPhone 6 and iPhone 6plus. Remove duplicates and run snapshot again

@PaulTaykalo
Copy link

@kohtenko Thanks 👍

@yogoo
Copy link

yogoo commented Oct 5, 2015

Same issue with Xcode 7.0.1. @kohtenko solution led to a different error. The workaround was to configure all devices to the "s" version in the Snapfile: iPhone 6s, iPhone 6s Plus,...

@humberaquino
Copy link

@joepasq workaround worked for me. Added the "-watch" suffix to the device name that I wanted to create the snapshot from, then create a new simulator without a paired apple watch.
@KrauseFx Could "the way to fetch a list of available devices" that you mentioned be this one?
instruments -s devices

@cbowns
Copy link

cbowns commented Oct 12, 2015

Another workaround which worked for me: delete the 9.0 + Apple Watch simulator, and manually add one without a Watch.

@billypchan
Copy link

@cbowns How to remove the 9.0 + Apple Watch simulator?
...OK I find it in Manage device...

@cbowns
Copy link

cbowns commented Oct 15, 2015

some quick unedited screenshots:

Step 1: go to Devices

screen shot 2015-10-15 at 9 47 01 am

Step 2: Scroll down in the left sidebar:

screen shot 2015-10-15 at 9 47 05 am
screen shot 2015-10-15 at 9 47 07 am

Step 3. Select the iPhone 6 running 9.0; it'll look something like this: (mine is named differently than yours since I deleted the default one from Xcode, but the Paired Watch info is the same)

screen shot 2015-10-15 at 9 47 54 am

Step 4. Delete that device.

Step 5. Add a new simulator (select the + button at the bottom left of the Devices window

Step 6. Make a new iPhone 6, without a watch:

screen shot 2015-10-15 at 9 49 53 am

@jaroslavas
Copy link

@cbowns Thanks, that worked for me!

@converted2mac
Copy link

Having this issue, but my only "duplicate" simulators are the iPhone 6 running iOS 8.4 and the iPhone 6 running iOS 9.0. The script doesn't have any issues if I explicitly tell it to snapshot the 8.4 simulators, but runs into this problem when I comment out the iOS version (or set it to try iOS 9.0).

In my case, I don't have "duplicates" so much as I have two different simulators for the same device, running two different OSes... which is a valid use case.

@johnboiles
Copy link

@yogoo: super clever workaround since the 's' devices don't seem to have watch versions. Love it! ❤️

@fastlane-bot
Copy link

This issue was migrated to fastlane/fastlane#1708. Please post all further comments there.

fastlane is now a mono repo, you can read more about the change in our blog post. All tools are now available in the fastlane main repo 🚀

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

No branches or pull requests