I'm trying to distribute an update to a free private app for a business, and I'm getting the same error. When I look at the response in the network tab in the browser I see this error: "The developer does not have a license that allows private distribution". I have a normal developer license for $99 a year, and it worked when I published the app six or seven weeks ago.
Both of my agreements (paid and free) are currently green and active, so I don't understand what I can do to make it work.
Post
Replies
Boosts
Views
Activity
OK, so I think I've had the same issue for a while now, but now I found a solution to it (or at least my problem).
This was my existing code:
let contact = CNMutableContact()
contact.birthday = Calendar.current.dateComponents([.day, .month, .year, .hour, .minute, .second], from: person.dateOfBirth)
The contact object got a birthday, and I could print it. When I used the contact in a CNContactViewController, the birthday field was showing, but without a date. If I tried to check if the date was valid I got false: contact.birthday?.isValidDate
After I changed the code to this it now works fine:
contact.birthday = Calendar.current.dateComponents([.day, .month, .year, .hour, .minute, .second], from: person.dateOfBirth)
contact.birthday?.calendar = Calendar.current
The birthday field in the contact view contains the date, and contact.birthday?.isValidDate returns true.