Ionic **Build Failed** Code signing is required for product type 'Application' in SDK 'iOS 10.1' : <p>When I am running <code>ionic run ios --device
</code> the build is failing, It was working fine few days ago and now I am getting this error, How to solve it, I have searched the solution but none worked for me.</p>

<p>Below is the error</p>

<pre><code>   === BUILD TARGET SoftApp OF PROJECT SoftApp WITH CONFIGURATION Debug ===


Check dependencies

Signing for "SoftApp" requires a development team. Select a development team in the project editor.

Code signing is required for product type 'Application' in SDK 'iOS 10.1'



** BUILD FAILED **



The following build commands failed:
        Check dependencies
(1 failure)

Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/amitabhs/Projects/SoftApp/SoftAppcc/Mobile/SoftAppIonic_cc/platforms/ios/cordova/build-debug.xcconfig,-project,SoftApp.xcodeproj,ARCHS=armv7 arm64,-target,SoftApp,-configuration,Debug,-sdk,iphoneos,build,VALID_ARCHS=armv7 arm64,CONFIGURATION_BUILD_DIR=/Users/amitabhs/Projects/SoftApp/SoftAppcc/Mobile/SoftAppIonic_cc/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/amitabhs/Projects/SoftApp/SoftAppcc/Mobile/SoftAppIonic_cc/platforms/ios/build/sharedpch
</code></pre>

<p>I have tried un-installing and reinstalling IOS, cordova and ionic, nothing helped</p>

<p>Here is my config:</p>

<pre><code>    Your system information:

Cordova CLI: 6.3.1
Ionic Framework Version: 1.3.1
Ionic CLI Version: 2.0.0
Ionic App Lib Version: 2.0.0-beta.20
ios-deploy version: 1.8.6 
ios-sim version: 5.0.8 
OS: Mac OS X El Capitan
Node Version: v4.5.0
Xcode version: Xcode 8.1 Build version 8B62 
</code></pre>
