Skip to content

xcode 11 changes the bundle id of WDA #13086

Closed
appium/appium-xcuitest-driver
#1052
@umutuzgur

Description

@umutuzgur
Member

The problem

XCode 11 changed the format for building xcuitest runner bundle ids. WDA no longer has the bundle id as com.apple.test.WebDriverAgentRunner-Runner but as com.facebook.WebDriverAgentRunner.xctrunner

Details

This causes issues in terms of uninstallation of WDA and we should take a look at it

Activity

added
Buga problem that needs fixing
iOSrelated to iOS native driver(s)
on Aug 16, 2019
KazuCocoa

KazuCocoa commented on Aug 18, 2019

@KazuCocoa
Member

ah... the bundle id will be com.customised.WebDriverAgentRunner.xctrunner when updatedWDABundleId is provided with Xcode 11.

doganmavuzer

doganmavuzer commented on Aug 20, 2019

@doganmavuzer

If you create your provision profile as wildcard. You don't have to handle with projects bundleId and nothing effects your build.

umutuzgur

umutuzgur commented on Aug 20, 2019

@umutuzgur
MemberAuthor

@doganmavuzer This issue is related to uninstallation of WDA since Appium uninstalls it before the session start with certain capabilities

tiecongli

tiecongli commented on Nov 6, 2019

@tiecongli

A silly question: how may I check if my installed appium version 1.15.09 has this fix?

KazuCocoa

KazuCocoa commented on Nov 6, 2019

@KazuCocoa
Member

Not sure the version label, 1.15.09, but Appium's 1.15.0 release has this change.
Then, you can see log messages introduced in this PR like https://github.com/appium/appium-xcuitest-driver/pull/1052/files#diff-dd1c1e9a4d2cba48fc21e5d2c50abcafR174

JabberYQ

JabberYQ commented on Nov 28, 2019

@JabberYQ

I also had this problem in monkey test.
I found it normal on Xcode11.1 and Xcode11.2 will auto add subffix 'xctrunner' to my bundle id.
now I find a way to solve it. go to runner target - build settings-product bundle id and clear it. and then set your bundle id in plist.info - Bundle identifier.

must clear build settings-product bundle id!!

crifan

crifan commented on Feb 20, 2020

@crifan

as @JabberYQ said, and more details here:

Use Xcode open WebDriverAgent.xcodeproj, then do changes:

  1. WebDriverAgentRunner/Info.plist->Bundle Identifier
  • change to com.xxx.wda.runner
    • 42D4CC39-7D8D-4DBE-9124-6F0114943740
  1. WebDriverAgent -> Targets ->WebDriverAgentRunner -> Info -> Bundle Identifier
  • change to com.xxx.wda.runner
    • EC1405A0-39B1-422B-88B1-519CB3005016
  1. WebDriverAgent -> Targets -> WebDriverAgentRunner -> Build Settings -> Packing -> Product Bundle Identifier
  • keep empty = clear it
    • BD1D2073-DC77-4E68-B75A-61337A170597
  1. =>> WebDriverAgent -> Targets -> WebDriverAgentRunner -> Signing & Capability
  • Team: xxx (Personal Team) or your team
  • Bundle Identifier: com.xxx.wda.runner
    • will auto change to, no edit by yourself
  • Signing Certificate: Development
    • will auto code signing + create provisioning file + ...
    • Makesure NO red erros
  • 113D4E4F-C889-4698-84E7-61E4ED15A4D9

all done !

Note: change xxx to your organization name.

More details refer my (Chinese) post: 【已解决】xcodebuild编译wda报错:Signing for WebDriverAgentRunner requires a development team

aarahmanqa

aarahmanqa commented on Jul 10, 2020

@aarahmanqa

The above setup was working for me so far. Just updated xcode to 11.5. There, if we did not provide Bundle Identifier its throwing error message:
image
image

I am getting this error message:
image

Any idea on the same?

1 remaining item

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Buga problem that needs fixingiOSrelated to iOS native driver(s)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @crifan@KazuCocoa@umutuzgur@aarahmanqa@tiecongli

      Issue actions

        xcode 11 changes the bundle id of WDA · Issue #13086 · appium/appium