Search code examples
iosxcodeunit-testingprovisioning-profilexcode-ui-testing

iOS AppUITests - Code signing is required for product type 'UI Testing Bundle' in SDK 'iOS 10.2'


I am developing an iOS app. When i am running Tests/UITests with Command + U from Xcode, Build is failed with the below error. All of my targets provisioning profiles and certificates are okey, except i put Don't Code Sign for AppUITests target. Is there any way to run full unit & ui tests without profiles, for example on simulator?

Error: Error


Solution

  • To run uitest on real device, different profile is required to configure as uitest target runs on different process as different app.

    For simulator, developer provisioning profile is ok. But if you want to run ui tests on real devices, you need separate developer provisioning profile.