Code signing is required for product type Unit Test Bundle in SDK iOS 8.0
The problem is the project is under source control and every time I pull the .xcodeproj is updated. And since my provisioning profile is different than the one in source control, the Unit Test target automatically switches to "Do not code sign". So I simply have to set the profile there after each git pull.
Apparently if deploying to a device, if there is a unit test target, it must be code signed.
Steps:
1) Change target to your test target (AppnameTests)
2) Make sure "Code Signing Identity" is NOT "Don't Code Sign". Pick a profile to sign with
That is all I had to change to get it to work.
Xcode error: Code signing is required for product type 'Application' in SDK 'iOS 10.0'
With Xcode-8.1 & iOS-10.1
- Add your Apple ID in Xcode
Preferences
>Accounts
>Add Apple ID
:
- Enable signing to Automatically && Select Team that you have created before:
- Change the Bundle Identifier:
- Code Signing to iOS Developer:
- Provision profile to Automatic:
You can now run your project on a device!
iOS AppUITests - Code signing is required for product type 'UI Testing Bundle' in SDK 'iOS 10.2'
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.
Related Topics
Dial a Phone Number with an Access Code Programmatically in iOS
iOS Builds/Ipa Creation No Longer Works from the Command Line
Dismissing Uialertviews When Entering Background State
iOS Horizontal Slideview with Vertical Menu
Allow Unverified Ssl Certificate in Uiwebview
Warning Frame for "Navigation Bar" Will Be Different at Run Time Appears in Xcode 8 Swift 3
How to Hide "-" (Delete) Button While Editing Uitableview
How to Call a View Controller Programmatically
Code Signing Is Required for Product Type Unit Test Bundle in Sdk iOS 8.0
iOS 7 and Later: Set Status Bar Style Per View Controller
Save and Retrieve Value via Keychain
Atos and Dwarfdump Won't Symbolicate My Address
Disable Bitcode for Project and Cocoapods Dependencies with Xcode 7
How to Change the Color of an Uiimage