Basic Automatic Configuration
If you have a paid Apple Developer account, the easiest way to create the provisioning profile is to use the automatic configuration strategy. There are two ways to do this:
- Use the
xcodeOrgId
andxcodeSigningId
capabilities: - Create a
.xcconfig
file somewhere on your file system and add the following to it: Then use thexcodeConfigFile
capability to specify the path to this file:
Note that these are mutually exclusive strategies; use either the xcodeConfigFile
capability
or the combination of xcodeOrgId
and xcodeSigningId
.
xcodeOrgId
/DEVELOPMENT_TEAM
is a unique 10-character string generated by Apple that is assigned to your team.- To find this string (your Team ID), sign in to developer.apple.com/account, and click Membership in the sidebar. Your Team ID appears in the Membership Information section under the team name. You can also find your Team ID listed under the "Organizational Unit" field in your iPhone Developer certificate in your keychain.
xcodeSigningId
/CODE_SIGN_IDENTITY
is usually eitherApple Developer
oriPhone Developer
.updatedWDABundleId
is the bundle id you would like to use for the built WebDriverAgent.- Appium replaces the existing placeholder of
com.facebook.WebDriverAgentRunner
inWebDriverAgent.xcodeproj
with the given capability value. xcodebuild
adds.xctrunner
automatically for XCTest package. Thus, the provisioning profile you're using should have the suffix explicitly, or it can be for bundle id which has*
.- For instance, when the
appium:updatedWDABundleId
isio.appium.WebDriverAgentRunner
, the given provisioning profile should be forio.appium.WebDriverAgentRunner.xctrunner
,io.appium.WebDriverAgentRunner.*
or*
.
- For instance, when the
- Appium replaces the existing placeholder of
Once this configuration is done, you should specify your real device UDID with the udid
desired
capability, after which you should be able to start your test. Proceed with
Validating the WDA Install for the next steps.