Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Account does not have permissions to modify containers #99

Open
wtpisaac opened this issue Mar 25, 2016 · 24 comments
Open

Account does not have permissions to modify containers #99

wtpisaac opened this issue Mar 25, 2016 · 24 comments

Comments

@wtpisaac
Copy link

Failing

Why does this happen, and how can I fix it?

@paradoxally
Copy link

Also have this issue. Anyone have a fix?

I ended up sideloading f.lux instead, worked on first try.

@TiddlyWiddly
Copy link

I have the same issue.

@TiddlyWiddly
Copy link

Actually, this seems like an XCode versioning issue. I had the newest version 7.3. After downloading 7.2 and running through the instructions, it built just fine and is running on my phone now.

I figured this out all by myself without any help from anyone. At all.

@wtpisaac
Copy link
Author

Huh, hopefully Xcode fixes that! I have heard that Xcode 7.3 is buggy, I upgraded because I upgraded my iPhone :/.

Any fix for Xcode 7.3?

@anthonya1999
Copy link
Owner

Thanks for pointing this out. I actually have not yet built on Xcode 7.3, since Night Shift is now a feature in iOS 9.3. But I will try to see if I can replicate the issue on my MacBook.

@Openbox72
Copy link

I have the same issue -(( Anyone has an idea of how to solve this problem? Xcode 7.3

@sverrevh
Copy link

Same issue here, getting 'Communication with Apple failed' error as well. I think GoodNight works better than NightShift ;) (NightShift doesn't have the fading effect, it's on or off)

@yanowitz
Copy link

Night shift is not as good as GoodNight, unfortunately. Lacks dark room mode among other things. I too am having this XCode issue.

I also built it without the app groups (just to see how it would play with iOS 9.3) -- obviously, the widget wouldn't work.

App appears to segfault (quits) as soon I try to enable any display changes (so it launches, but is useless).

@tonytien
Copy link

I'm also having this issue. A quick search for "Communication with Apple failed" message brought up a thread on Stack Overflow about how there may be maintenance going on right now, but system status shows me that everything is fine right now.

@greatquux
Copy link

Another person having this issue with Xcode 7.3. I am hoping to use GoodNight with my iPhone 5 since it doesn't support Night Shift (requires 64-bit) and f.lux doesn't restore the screen in the morning for me (and they won't support it since Apple gave them crap).
I am building with a personal (free) developer profile - app groups are definitely supported in this scenario correct?

@gcr
Copy link

gcr commented Mar 29, 2016

I'm getting this error too.

Building with app groups turned off doesn't work because the app tries to load the gamma table from a file with a path relative to the app group container folder, so it's not surprising.

@paradoxally
Copy link

So I take it no one has managed to compile the app using 7.3? If not, that's a real shame because it can't be deployed on iOS 9.3 devices that can't use Night Shift.

Has anyone tried compiling with a paid developer account?

@sverrevh
Copy link

Looks like Apple found some how a way to block this kind of side loading. Maybe it checks for 'goodnight' in the code or name(s)

@paradoxally
Copy link

Perhaps a solution would be to ignore compiling the widget and instead of loading the gamma table from the app group container, have the app load the table from a file or in code instead. That way it could be compiled as a standalone app without the need for app groups which are troublesome now.

@nikissk
Copy link

nikissk commented Mar 29, 2016

I manage to get it work that way: Download xcode 7.2 from kickass, start it when download complete and load the app. Add App Groups successfully. Next i connect my iPhone 5 ios 9.3. Compile the app was unsuccessful due newest IOS version. Then I close xcode 7.2 and start 7.3. Then App Groups start work fine. Build project and upload it on my phone and still works fine.

screen shot 2016-03-29 at 7 27 15 pm

@greatquux
Copy link

Yep, I can confirm that adding the "app groups containers" entitlement does work with Xcode 7.2.1. I downloaded the DMG file from Apple (https://developer.apple.com/downloads/) and opened it up, and ran the old version right from the DMG (though it had to install some other dependencies), opened up the GoodNight project, fixed the issue (doing it in both the main app and the widget though I probably only had to do it once), closing the old version, and opening up the project in Xcode 7.3, and then I was able to build and run the app on my iPhone 5. Hopefully Apple will fix the bug in Xcode at some point.

@mariokorte
Copy link
Collaborator

Hm, I cannot reproduce this with Xcode 7.3. I can manage the AppGroups with that preference pane and run the app just fine. Have you configured your developer accounts (AppleID) correctly in Xcode preferences?

@greatquux
Copy link

I don't think you would be able to reproduce it if your Apple ID already had the "app groups containers" permission. And I don't think it's a problem with GoodNight itself either, but rather an Xcode bug in 9.3 that doesn't allow 9.3 to properly add the permission for this to the Apple ID. Xcode 9.2.1 adds the permission to my Apple ID fine and then 9.3 compiles and installs GoodNight properly (which is running and working beautifully). So I think you can probably close this out and maybe add a note to the README about it, and hopefully Apple will fix it soon.

@eyv
Copy link

eyv commented Apr 19, 2016

Confirmed: nikissk's and greatquux' instructions WFM. Thanks everyone!
BTW, you don't even have to close the second instance of Xcode -- you can run both (one from the DMG, and the other from Applications) at the same time and even edit the same project at the same time. Not sure how this doesn't munge the files being simultaneously edited, but hey, it works!

@alyssalng
Copy link

Were you guys able to successfully install Xcode 7.2? I tried to, but my computer got stuck and said there was an error reading the code, so Xcode.app didn't finish copying to the applications. Like a lot of you, I'm on a phone that doesn't have Night Shift because it's too old.

Any tips would be awesome.

@Kkevsterrr
Copy link

I'm going to bump this - any fix or update regarding the bug? I'm having the same issue as everyone else in the thread, and any help would be much appreciated!

@eyv
Copy link

eyv commented Aug 8, 2016

The workaround no longer works for building for iOS 10 using Xcode-beta 8

@PengQ1
Copy link

PengQ1 commented Aug 30, 2019

I face the same issue now, my device is ios 13 beta, and my Xcode is 11.0 beta, does anyone know how to fix it?

@nir-jackson-papaya
Copy link

@PengQ1
Had the same issue, this is what solved it for me:
if you have "Merchant IDs" simply uncheck them, wait a few seconds and then recheck them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests