2

Just started developing a new iOS mobile application with React-Native, running it through XCode. I am attempting to use my personal iPhone as the device I test it on. When I choose "My iPhone" and hit the build button the build fails and I get this error:

Signing for "[AppName]" requires a development team. Select a development team in the project editor. Code signing is required for product type 'Application' in SDK 'iOS 10.2'

Anyone know how to fix this so I can use my phone instead of the iOS simulators?

Thanks!

1 Answers1

0

First select your correct Team with correct developer certificates in Build Settings. If you have not any Team certificates then you can not Run project on your device.

Pratik Patel
  • 1,393
  • 12
  • 18
  • May you please explain this in detail, I am also stuck on this. Do I have to pay and signup on Apple or something? – Noitidart Apr 11 '17 at 00:27
  • I posted my issue here please - http://stackoverflow.com/q/43334982/1828637 – Noitidart Apr 11 '17 at 01:51
  • 2
    @Noitidart Choose Project -> Build Settings then look for Signing section, select iOS Developer for both Debug and Release rows. Xcode is the worst IDE ever. You likely need to delete all other targets to get build successfully. – Tien Do May 23 '17 at 02:30
  • 1
    Checking out this link to know how to delete unused targets https://stackoverflow.com/questions/13870019/xcode-can-i-delete-test-target – Tien Do May 23 '17 at 02:31
  • Thanks very much @TienDo ! You helped me out and I had not even pinged you, thanks very very much! :) – Noitidart May 23 '17 at 03:31
  • 1
    You're welcome, I faced the same issue yesterday too :) – Tien Do May 23 '17 at 06:41
  • Thanks sooo mcuh @TienDo for digging this up and sharing the info. I actually tried in April and gave up haha until you brought me back to trying with your comment. Does this signing section look right to you - http://i.imgur.com/LXLAonb.png - it didn't work so I am going to try to delete other targets now as you mentioned in the previous comment. – Noitidart May 25 '17 at 18:36
  • 1
    @TienDo it worked!!! First I removed **_tvOS and **_tvOS_test then tried but it still failed so I even removed the **_test and build works now!! Thank you sooo much @TienDo!! – Noitidart May 25 '17 at 19:45