Adding the "App Groups" entitlement to App ID for Today Extension Widget - ios

I am trying to create a widget on the Today extension but have been having some issues regarding entitlements with my provisioning profile.
In essence I'm just trying to output a greeting message on the Today extension. But I am not able to view this message because of what I believe is an entitlements/provisioning profile issue that is preventing the App Groups from being used. I am using XCode 6.1
The error I'm having is below (apologies for all the links; I don't have enough rep points to post inline images it seems)
http://imageshack.com/a/img540/6973/eYBQly.png
And on my Developer Account, you can see that I've enabled App Groups on this App ID
http://imageshack.com/a/img912/3636/jY84SI.png
But it still doesn't seem to work, i.e. I still get the errors pertaining to App Groups not being a part of the App ID which in turn is, I believe, preventing the Today widget from working.
Would someone be able to please explain how the provisioning profile works and what it is that I might be missing here?

Follow these steps
Find your App Id and make sure your App Group state is Enabled.
Use your App Id to create Provisioning Profiles and download to your computer then double click it
Check Xcode's Identity to make sure your team is the right one. If you have problems, click fix issue
Have a look at this link too
https://developer.apple.com/library/content/documentation/IDEs/Conceptual/AppDistributionGuide/AddingCapabilities/AddingCapabilities.html

Related

Xcode does not automatically create app id on developer portal

As indicated in the title, Xcode is not being able to automatically create app Id and provisioning profile for an app i’m developing. I have checked the “Automatically manage signing” option but on the developer portal i can’t see any app id or provisioning profile matching the provided bundle identifier.
The problem arises only if I select, in the “team” selection, my developer account . For example, by using my enterprise account, the “waiting to repair” message is shown in Xcode and i can see the new app id created in the enterprise account portal.
If I change the bundle identifier and I select again my developer account, nothing happens, no errors and no warnings. I’m able to install the application on a device and all seems to be good. However, in my developer portal I still do not see the app id and provisioning profile so i can’t send the application to iTunes connect in order to submit to the Apple store.
Moreover, trying with other apps, all is ok even using my developer account.
I searched on line but i can’t be able to find a similar problem, are there any particular settings that are preventing the automatic Xcode app id creation to work for my app?
EDIT
it seems it’s not a problem related to the particular app. In fact I tried to create a new application fromo scratch and i have the same problem. I still do not have the problem on old apps (already uploaded on itunes connect) but i have the problem on all the newly created apps. Is that a problem with my developer certificate?
EDIT 2
I noticed that for all the newly created applications the App ID is set to: " * " (see image below). In my old apps the App ID and iOS Team Provisioning Profile are not equals to " * ". I have also deleted the wildcard id from my developer portal but the problem still remain.
I had a similar problem and i solved with a workaround. I have enabled push notifications in the "capabilities" tab (i.e, adding them to the entitlements), in this way the app id and provisioning profile have been correctly generated on the developer portal. Later, I have disabled push notifications (not needed in my project).
It's only a workaround, hope it helps
Somewhat related: I played around with Apples provisioning profiles in a desperate attempt of trying to wrap my head around their signing nightmare. In the process I deleted all the app ids from apple.developer that Xcode had automatically generated.
Afterwards I couldn't get Xcode to regenerate the app ids and I didn't wanted to manually create them, so what I had to do was to delete the automatically generated provisioning profiles from ~/Library/MobileDevice/Provisioning Profiles/.

App ID with identifier not available when turning on remote notification

I have an app which I've just submitted to the app store. In the developer portal it has push notification checked, however it's not yet configured.
I want to add Push notification capability to this app. I try to turn on Push in XCode Capability tab. There was a issue and I press fix issue, it said the ID is not available, though it it the ID for the app already available in the app store.
Also under the General tab:
Now what do I do to fix it? Despite having read "iOS Code Signing: Under The Hood" from Ray Wenderlich I'm still having a headache.
EDIT:
OK the accepted answer wasn't really it. I finally found the correct answer to this question from JRRevuelta's post in the Apple forum:
Go to your Apple Developer "Certificates, Ids, Profiles", and under
your App IDs list find the App ID in question and, If your App ID is
in the form: com.myDomain.MyApp Then the name in your App ID record
has to be: "XC com myDomain MyApp" Don't ask me why, but it works.
(is the default name that XCode assigns when you create the record
from XCode), but for records that exist prior or that you created
directly in the Developer site, the name should be whatever you
want... but its not. Some glitch introduced in one of the latest XCode
releases.
Apparently this problem only surface in recent Xcode.
Check the following steps it may solve your problem:
manually removed INVALID iOS Team Provision Profile Managed by Xcode from Developer Portal
manually created iOS Developer Provision profile
Downloaded it via Xcode
For more information you can check: https://stackoverflow.com/a/36175175/4557505 answer, this answers the same issue which you are having
I think you need to create the SSL certificates and set up a provisioning profile matching your needs. Assuming you already have an development provisioning profile for your app-id you just need to add the SSL certificate for development. When done testing add the certificate for production.

No matching code signing identity found. Deploying to ios device for the first time

Cant manage to run my app on my device.
Ive registered my apple ID yesterday to the developer program, also used my device in the "Organizer" for developing.
In my main project General settings im trying to change the "Team" - It wont find my account.
When im pushing the "Fix issue" button it also reacts like i dont have a registerd developing account.
When i push the Add.. i can see that my developer apple id is already in the accounts:
As you can see my Apple ID is already signed.
You need to create a provisioning profile
Check this:
http://www.youtube.com/watch?v=86A7wcJxOqM
Hope this should help.

App Store Submission: No Identities [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
No identities were available - administrator request
OK I was going to post an image but SO won't let me. It's an error box with a yellow triangle exclamation mark and the text "No Identities were Available, An administrator must request identities before they can be downloaded, [Button] Download Identities... [Button] Import Develop Profile..."
Has anyone got any idea what is going on with this error? Appears on clicking "validate" in the organiser after building for Archiving in the "Release" configuration. The Developer Profile is installed (I have re-downloaded and re-installed it heaps of times to try and get past this...). The app exists in iTunes Connect and I have created an App ID for it in Dev Center, and provisioning profiles, etc. It builds and runs fine....
I can't make head or tail of the help articles on the Developer Portal as they seem to be for some old version of Xcode and I have only ever really used version 4. Any ideas what is going on here?
Oh, "Download Identities" does nothing either, it just shows a spinner for a while and redisplays the error.
I just had this same issue. For me the solution was that I had made provisioning profiles in Member Center, but they were for Development rather than Distribution. As soon as I made a Distribution profile (on a separate tab in the Provisioning Portal), I was good to go.
I hope that helps!
Answer: App IDs are case sensitive, and must match between the App ID in the Developer Portal and the App ID in Xcode. Exactly.
You are missing the Distribution mobileprovision file. Get your admin (or login as admin) to create and download one for your app from iOS Provisioning Portal - Provisioning - Distribution.
Update:
Here's "About App Distribution" instructions by Apple. Not duplicated here, since Apple keeps updating their system and a link to Apple's docs is more likely to remain uptodate.

Difficulty provisioning iPad application for testing on iPad

I have a provisioning profile, registered my device, added the certificate, and created an app id for my application. I set the provisioning profile in the Code Signing section on XCode and the App ID is set. I had a problem where it said iPad-only applications should not use armv6 and the build failed so I followed some advice I read and set it to build active architecture only and now I don't receive any warnings, but the build still fails. The iPad is plugged in and I selected it from the drop down for running. Also I am using XCode 4 and I was trying to follow this tutorial http://mobile.tutsplus.com/tutorials/iphone/iphone-sdk-install-apps-on-iphone-devices-for-development/.
My professor created the provisioning profile and the app id, but I checked and everything looks fine except for one thing. When I look at the app ids on the developer page under "Apple Push Notification service" it says unavailable for the app I'm using, while some other app ids say "Configurable for Development". I'm not sure if that has to do with the problem but I thought it might be related.
I also tried doing a clean build because I saw that suggested somewhere, but it still failed so something must be wrong with how I set it up.
Does anyone have any ideas on what I might be doing wrong?
edit: just thought of something else, under the organizer page if I click on applications my app isn't there and if I try to add it I get an error message saying "No Code Signature Found"
Also, if I look at the provisioning profiles the app id section is blank. Do I need to link the provisioning profile up to the app id some how?
Take a look at this, It might be helpful https://developer.apple.com/legacy/library/technotes/tn2250/_index.html#//apple_ref/doc/uid/DTS40009933-CH1-TROUBLESHOOTING_GUIDE-CODE_SIGNING_ENTITLEMENTS

Resources