Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > Mac OS X Development Forums > Mac OS X Development

Reply
 
LinkBack Thread Tools Display Modes
Old 12-18-2011, 01:01 PM   #1 (permalink)
Registered Member
 
padsoftware's Avatar
 
Join Date: Nov 2011
Location: Somewhere over the rainbow
Posts: 101
padsoftware is on a distinguished road
Exclamation iCloud and correct provisioning profile usage

Here is the thread for a problem I've been having:

I've enabled iCloud for my AppID. Then, I've created 3 certificates, listed as:

- Mac App
- Mac Installer
- Development

in the Developer Certificate Utility.

I downloaded and installed the certificates in my keychain:

- 3rd Party Mac Developer Application (Mac App)
- 3rd Party Mac Developer Installer (Mac Installer)
- Mac Developer (Development)

Then, I've created 2 provisioning profiles:

- Development
I selected the App ID, the previously created development certificate and the Systems.

- Production
I can only select the App ID and the Mac Application Distribution Signing Certificate.

I installed the development profile in the Profiles Pref Pane successfully. If I am trying to install the production profile in the Profiles Pref Pane, I am getting an "Unknown Error" dialog. Is this correct? This profile can't be installed?

I added both profiles to the Xcode Organizer and selected "Mac Developer" from the development profile for debugging and "3rd Party Mac Developer Application" from the production profile for the release version.

Now, I can launch the app in Xcode and it works as expected (with iCloud enabled). If I am archiving the release version and launch the app in the Finder, I am getting:

taskgated: killed ... because its use of the com.apple.developer.ubiquity-container-identifiers entitlement is not allowed

Is the production profile supposed to be used only for submitting to the MAS? Did I something wrong?

steveflack
Posts : 6 (0)
ReplyQuoteAdd Negative ScoreAdd Positive Score
1. Re: iCloud and correct provisioning profile usage
In response to pws on Nov 4, 2011 4:23 AM
If you look at the Production Profile in the Xcode Organizer it says you can't install it on devices - which I guess is why it won't install in the Profiles Pane in the Settings app. I only figured this out this morning - that error message isn't exactly helpful.

Maybe I'm wrong but it's looking horribly like you currently can't ship iCloud apps outside of MAS. It looks like we'll have to treat the dev profile like the iOS adhoc profiles for testing.

Jose Ines Cantu Arrambide
Posts : 168 (1)
ReplyQuoteAdd Negative ScoreAdd Positive Score
2. Re: iCloud and correct provisioning profile usage
In response to steveflack on Dec 9, 2011 4:42 PM
Were any of you able to sign it with production profiles?

Jose Ines Cantu Arrambide
Posts : 168 (1)
ReplyQuoteAdd Negative ScoreAdd Positive Score
3. Re: iCloud and correct provisioning profile usage
In response to steveflack on Dec 9, 2011 5:49 PM
Does anyone know if a mac app should run on my development machine when using a Production Profile with iCloud enabled? Or does it need to be submitted to the Mac App Store ?
When I build and sign with the production profile I get no errors, but I get the "app was killed because I did not have permission to use the com.apple.developer.ubiquity-container-identifiers" when launching.

Allen Dunahoo
Goshen , CT
Posts : 706 (6)
ReplyQuote
4. Re: iCloud and correct provisioning profile usage
In response to Jose Ines Cantu Arrambide on Dec 17, 2011 12:08 PM
I'm getting this error as well. Please help me!

Jose Ines Cantu Arrambide
Posts : 168 (1)
ReplyQuoteAdd Negative ScoreAdd Positive Score
5. Re: iCloud and correct provisioning profile usage
In response to Allen Dunahoo on Dec 17, 2011 12:23 PM
I requested technical support from Apple, I'll let you know what they say.
But my guess is that to do Beta Testing, you should add each mac system in your mac provisioning section and tell each beta user to add the provisionging profile to their system by double clicking.

I'm betting that the production profile only works by sending the app to the Mac App Store.

Allen Dunahoo
Goshen , CT
Posts : 706 (6)
ReplyQuote
6. Re: iCloud and correct provisioning profile usage
In response to Jose Ines Cantu Arrambide on Dec 17, 2011 12:46 PM
If I can't run the app, there is no way I will upload it to Apple.

Strange, but I can't compile any other Mac app right now, iCloud or no iCloud. I've evern tried on a diffrent computer, and it doesn't work!

Jose Ines Cantu Arrambide
Posts : 168 (1)
ReplyQuoteAdd Negative ScoreAdd Positive Score
7. Re: iCloud and correct provisioning profile usage
In response to Allen Dunahoo on Dec 17, 2011 1:04 PM
Wow, you can't compile or cant run the app? Can you compile without signing?

Allen Dunahoo
Goshen , CT
Posts : 706 (6)
ReplyQuote
8. Re: iCloud and correct provisioning profile usage
In response to Jose Ines Cantu Arrambide on Dec 17, 2011 1:29 PM
Well I guess I can compile it, but I get this error (it changes slightly with each app):

error: failed to launch '/Users/padsoftware/Library/Developer/Xcode/DerivedData/Scrawl-heofvoywsunchdhjowxkvkoiqvan/Build/Products/Release/Scrawl.app/Contents/MacOS/Scrawl'

It's odd: I don't have sandboxing, iCloud, or entitlements for this app. On the ones I do i get the same error. I have already reinstalled Xcode 4.2.1 and OS X Lion 10.7.2.

Allen Dunahoo
Goshen , CT
Posts : 706 (6)
ReplyQuote
9. Re: iCloud and correct provisioning profile usage
In response to Allen Dunahoo on Dec 17, 2011 1:31 PM
Without code signing I get the same error. This is really annoying me. Contacting Apple won't help, because they are way to slow

Jose Ines Cantu Arrambide
Posts : 168 (1)
ReplyQuoteAdd Negative ScoreAdd Positive Score
10. Re: iCloud and correct provisioning profile usage
In response to Allen Dunahoo on Dec 17, 2011 2:10 PM
This also happened to me when I did not added the mac uuids to the mac provisioning portal, does your provisioning profile installs in your system preferences on Lion?
But since it blows when you are not code signing it, it should not matter

Jose Ines Cantu Arrambide
Posts : 168 (1)
ReplyQuoteAdd Negative ScoreAdd Positive Score
11. Re: iCloud and correct provisioning profile usage
In response to Allen Dunahoo on Dec 17, 2011 2:12 PM
If you open Console.app from utilities do you get any extra info when launching?

Allen Dunahoo
Goshen , CT
Posts : 706 (6)
ReplyQuote
12. Re: iCloud and correct provisioning profile usage
In response to Jose Ines Cantu Arrambide on Dec 17, 2011 2:15 PM
Sadly, no, I get the same info.

Allen Dunahoo
Goshen , CT
Posts : 706 (6)
ReplyQuote
13. Re: iCloud and correct provisioning profile usage
In response to Allen Dunahoo on Dec 17, 2011 2:19 PM
Btw, I just posted this in stackoverflow. data - Xcode error: failed to launch - Stack Overflow

Allen Dunahoo
Goshen , CT
Posts : 706 (6)
ReplyQuote
14. Re: iCloud and correct provisioning profile usage
In response to Allen Dunahoo on Dec 17, 2011 2:48 PM
The problem was I was missing the private+public keys associated with the development certificate... I also, couldn't import the ones I was using into keychain for some reason.
I generated the CSR (which builds public/private keys and adds them to keychain) and created a new certificate/provisioning profile and updating my build settings to point to new stuff.
Somebody said this fixed it for them. I'll try it and let you know if it works.

Allen Dunahoo
Goshen , CT
Posts : 706 (6)
ReplyQuote
15. Re: iCloud and correct provisioning profile usage
In response to Allen Dunahoo on Dec 17, 2011 4:28 PM
OK, here are the results:
Development Profile code sign: success.
Production Profile code sign: failed. Error in console:"12/17/11 4:22:50.184 PM taskgated: killed com.allendunahoo.Scrawl[pid 5772] because its use of the com.apple.developer.ubiquity-container-identifiers entitlement is not allowed"

I don't get it: the Development Profile has this included in the title: 8W27B5T8XC. However, the Production Profile does not have that. I suspect that is part of the problem. Now, does anyone have any ideas on hw to fix this huge and ugly problem?

P.S. I need the com.apple.developer.ubiquity-container-identifiers becuase this app uses iCloud.

Message was edited by AllenDunahoo on 12/17/11 at 4:28 PM

Allen Dunahoo
Goshen , CT
Posts : 706 (6)
ReplyQuote
16. Re: iCloud and correct provisioning profile usage
In response to Allen Dunahoo on Dec 17, 2011 4:30 PM
This is my entitlements:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd>">
<plist version="1.0">
<string>8W27B5T8XC.com.allendunahoo.Scrawl</string>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd>">
<plist version="1.0">
<array>
<string>$(TeamIdentifierPrefix)8W27B5T8XC.com.alle ndunahoo.Scrawl</string>
</array>
</plist>

Any help would be most welcome! Thanks in advance!
padsoftware is online now   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 376
10 members and 366 guests
Creativ, Emy, eski, husthlj, illogical, LegionMD, LunarMoon, padsoftware, stanny, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,677
Threads: 94,127
Posts: 402,916
Top Poster: BrianSlick (7,990)
Welcome to our newest member, husthlj
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:18 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0