# Sudo ionic run ios --device - Code signing is required

**URL:** <https://forum.ionicframework.com/t/sudo-ionic-run-ios-device-code-signing-is-required/75889>\
**Category:** ionic-v3\
**Created:** [January 11, 2017, 2:02pm UTC](https://forum.ionicframework.com/t/sudo-ionic-run-ios-device-code-signing-is-required/75889 "2017-01-11T14:02:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dladdha](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/dladdha/32/105830_2.png) [@dladdha](https://forum.ionicframework.com/u/dladdha)\
**Post date:** [January 11, 2017, 2:02pm UTC](https://forum.ionicframework.com/t/sudo-ionic-run-ios-device-code-signing-is-required/75889/1 "2017-01-11T14:02:56Z")

</div>

Hi,

I have read many sites stuff for fixing this stuff, It can run my project in mobile by opening ‘platforms/ios/. xcodeproj’ in Xcode .

But after set setting I close Xcode and then I try to run project by 'sudo ionic run ios --device ’ then it still give me error for code signing so I just want to know how can I run app in mobile using command 'sudo ionic run ios --device ’ without opening each time Xcode.

so If it starts working on my mobile using the command " 'sudo ionic run ios --device ’ then it will easy to use live reload in iPhone also like it work for android.

---

<div class="post-metadata">

**Author:** ![aoathout](https://avatars.discourse-cdn.com/v4/letter/a/bc79bd/32.png) [@aoathout](https://forum.ionicframework.com/u/aoathout)\
**Post date:** [January 11, 2017, 3:29pm UTC](https://forum.ionicframework.com/t/sudo-ionic-run-ios-device-code-signing-is-required/75889/2 "2017-01-11T15:29:11Z")

</div>

If you are using the latest cordova cli then look at the “–buildConfig” flag. It takes a JSON file that lists your developmentTeamId, codeSignIdentiry, etc. Should fix your problem.

---

<div class="post-metadata">

**Author:** ![dladdha](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/dladdha/32/105830_2.png) [@dladdha](https://forum.ionicframework.com/u/dladdha)\
**Post date:** [January 12, 2017, 2:11pm UTC](https://forum.ionicframework.com/t/sudo-ionic-run-ios-device-code-signing-is-required/75889/3 "2017-01-12T14:11:22Z")

</div>

My app work in Xcode to my mobile using **"Automatically manage signing "** option of Xcode even I am using free apple account.  
so for running the same app using **“sudo ionic run ios -device”** what should I have to set in build.json . I tried but it does not work so let me know the setting of it so I can run app in iPhone using the command .
