How do I set up "iphonebundleidentifier"?

I am a beginner on developing apps and I am trying to build an app for the platform “iOS”. So as I was going through “build settings” because as I mentioned before I want to build an app for iOS so I was trying to set the platform to “iOS” and I checked off all 3 of the options available there (“development build”, “autoconnect profile”, and “Script debugging”). And then this popped up “iPhoneBundleIdentifier has not been set up correctly”. NOTE: I connected my iTOUCH. Is there anyone who can help me et the bundle identifier correctly?

Setting up this stuff seems trickier than it needs to be, but it’s not that bad. First you have to set up your App ID in the Provisioning Portal on the Apple Dev site. Make it something like:

com.yourcompany.yourappname

You can even use org.whoever.whateverapp if you have a .org domain, it’s just a way to identify your apps. While still in the portal, edit the provision so your target devices are all included. Be sure to download and add the provisioning file to your target device. You’ll also notice in the portal that Apple will tack a string on the front of the App ID so it looks like:

A1B2C3D4com.yourcompany.yourappname

In Unity, ignore the characters Apple has added and use everything else: com.yourcompany.yourappname

Make a build. In XCode, set the codesigning to use the provision you used in Unity. (It will show Apple’s version with the extra string, but it’s the same one.)

Unless I’ve skipped a step, you should be good to go at this point. One thing I’ve found is that should you add new devices to your provision, you have to rebuild from Unity and reopen it in XCode or you’ll probably get errors. Be sure to update your provisions on all your devices whenever you make a change to the device list.