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

Can't sign into my ABS server on v2.0 #4

Closed
gh0sti opened this issue Dec 14, 2023 · 24 comments
Closed

Can't sign into my ABS server on v2.0 #4

gh0sti opened this issue Dec 14, 2023 · 24 comments

Comments

@gh0sti
Copy link

gh0sti commented Dec 14, 2023

I sideloaded the app with sidestore and the app crashes immediately after I try to sign in with my server URL and username and password. Now the app won't even launch without crashing.

ABS: v2.6.0 docker

@rasmuslos
Copy link
Owner

How are you logging in, using the local strategy or sso?

@gh0sti
Copy link
Author

gh0sti commented Dec 16, 2023

How are you logging in, using the local strategy or sso?

Local

@rasmuslos
Copy link
Owner

Try reinstalling the app, there has been a change in the underlying architecture to allow app extensions to function properly. Removing all data by uninstalling the app should fix the issue

@gh0sti
Copy link
Author

gh0sti commented Dec 16, 2023

Try reinstalling the app, there has been a change in the underlying architecture to allow app extensions to function properly. Removing all data by uninstalling the app should fix the issue

Did you upload a new build on github? Otherwise can I send you a private video of what happens when I log in and crash the app?

@rasmuslos
Copy link
Owner

You have to uninstall and then reinstall the app to delete all data. There was a change in the underlying database structure without a migration, so the app just crashes. I guess this is the reason why you are experiencing the crash. If this does not solve the issue please run the App using Xcode and provide the log output, otherwise cannot find out why the app behaves this way.

@gh0sti
Copy link
Author

gh0sti commented Dec 21, 2023

You have to uninstall and then reinstall the app to delete all data. There was a change in the underlying database structure without a migration, so the app just crashes. I guess this is the reason why you are experiencing the crash. If this does not solve the issue please run the App using Xcode and provide the log output, otherwise cannot find out why the app behaves this way.

Which I have done. What I'm doing is sideloading the app from SideStore https://sidestore.io/

This allows for sideloading apps on device going forward. Your app crashes right after I sign into my server.

@noneme
Copy link

noneme commented Dec 24, 2023

hmm... same situation. When installed using SideStore or AltStore, the application crashes.
When signing and installing an application using SideLoadly, the application also crashes :-(
When installing the application using XCode (replacing the Bundle Identifer and App Group with your own), the application will generate an error when building
Thread 1: Fatal error: Unable to find App Group Container in Entitlements: group.io.rfk.shelfplayer)

Снимок экрана 2023-12-24 в 23 48 50

@gh0sti
Copy link
Author

gh0sti commented Dec 25, 2023

hmm... same situation. When installed using SideStore or AltStore, the application crashes.

When signing and installing an application using SideLoadly, the application also crashes :-(

When installing the application using XCode (replacing the Bundle Identifer and App Group with your own), the application will generate an error when building

Thread 1: Fatal error: Unable to find App Group Container in Entitlements: group.io.rfk.shelfplayer)

Снимок экрана 2023-12-24 в 23 48 50

I'm glad I'm not the only one.

@benonymity
Copy link

You have to change the group name in the app config in Xcode, then change the crashing line to reference the new group name and it builds fine.

@rasmuslos
Copy link
Owner

rasmuslos commented Dec 25, 2023

Yes, this is the solution. I put most things related to the database in an app group as data that is stored there is also available in app extensions. This is important for Siri integration, etc.

I have thought about a possible solution over the last few days, but the best thing I could think of is to just not use a shared group when side-loading. Right now the impact would be pretty small, as nothing makes use of the shared data just yet. Also in the future when there is a Siri integration it will not affect most people that are side-loading using AltStore, because you have to be a part of the Apple Developer program for Siri to work. Also, most people strip app extensions becuase they count towards the identifier limit of 10.

Anyone that is part of the Apple Developer programm propably has Xcode installed and can make the required changes themselves. It is sadly not possible to get the available app groups programmatically.

@noneme
Copy link

noneme commented Dec 25, 2023

You have to change the group name in the app config in Xcode, then change the crashing line to reference the new group name and it builds fine.

yes, it works

@noneme
Copy link

noneme commented Dec 25, 2023

Yes, this is the solution. I put most things related to the database in an app group as data that is stored there is also available in app extensions. This is important for Siri integration, etc.

I have thought about a possible solution over the last few days, but the best thing I could think of is to just not use a shared group when side-loading. Right now the impact would be pretty small, as nothing makes use of the shared data just yet. Also in the future when there is a Siri integration it will not affect most people that are side-loading using AltStore, because you have to be a part of the Apple Developer program for Siri to work. Also, most people strip app extensions becuase they count towards the identifier limit of 10.

Anyone that is part of the Apple Developer programm propably has Xcode installed and can make the required changes themselves. It is sadly not possible to get the available app groups programmatically.

okay! thank you!
What's up with the App Store? ;-)

@noneme
Copy link

noneme commented Dec 25, 2023

Yes, this is the solution. I put most things related to the database in an app group as data that is stored there is also available in app extensions. This is important for Siri integration, etc.

I have thought about a possible solution over the last few days, but the best thing I could think of is to just not use a shared group when side-loading. Right now the impact would be pretty small, as nothing makes use of the shared data just yet. Also in the future when there is a Siri integration it will not affect most people that are side-loading using AltStore, because you have to be a part of the Apple Developer program for Siri to work. Also, most people strip app extensions becuase they count towards the identifier limit of 10.

Anyone that is part of the Apple Developer programm propably has Xcode installed and can make the required changes themselves. It is sadly not possible to get the available app groups programmatically.

problem Thread 1: Fatal error: Unable to find App Group Container in Entitlements: group.io.rfk.shelfplayer)
I decided like this:
Снимок экрана 2023-12-25 в 19 55 05

https://stackoverflow.com/questions/42853052/how-to-get-app-groups-name-programmatically
https://stackoverflow.com/questions/25897086/obtain-bundle-identifier-programmatically-in-swift

@rasmuslos
Copy link
Owner

Yes, this is the solution. I put most things related to the database in an app group as data that is stored there is also available in app extensions. This is important for Siri integration, etc.
I have thought about a possible solution over the last few days, but the best thing I could think of is to just not use a shared group when side-loading. Right now the impact would be pretty small, as nothing makes use of the shared data just yet. Also in the future when there is a Siri integration it will not affect most people that are side-loading using AltStore, because you have to be a part of the Apple Developer program for Siri to work. Also, most people strip app extensions becuase they count towards the identifier limit of 10.
Anyone that is part of the Apple Developer programm propably has Xcode installed and can make the required changes themselves. It is sadly not possible to get the available app groups programmatically.

problem Thread 1: Fatal error: Unable to find App Group Container in Entitlements: group.io.rfk.shelfplayer) I decided like this: Снимок экрана 2023-12-25 в 19 55 05

https://stackoverflow.com/questions/42853052/how-to-get-app-groups-name-programmatically https://stackoverflow.com/questions/25897086/obtain-bundle-identifier-programmatically-in-swift

I am not quite sure if this will work because I don't know how AltStore changes group identifiers, but I don't think this will work.
Can you send a Screenshot of the "App Groups" section on the "Signing & Capabilities" page in Xcode? All your group identifiers, include the ones made by AltStore should be listed there.

@rasmuslos
Copy link
Owner

Yes, this is the solution. I put most things related to the database in an app group as data that is stored there is also available in app extensions. This is important for Siri integration, etc.
I have thought about a possible solution over the last few days, but the best thing I could think of is to just not use a shared group when side-loading. Right now the impact would be pretty small, as nothing makes use of the shared data just yet. Also in the future when there is a Siri integration it will not affect most people that are side-loading using AltStore, because you have to be a part of the Apple Developer program for Siri to work. Also, most people strip app extensions becuase they count towards the identifier limit of 10.
Anyone that is part of the Apple Developer programm propably has Xcode installed and can make the required changes themselves. It is sadly not possible to get the available app groups programmatically.

okay! thank you! What's up with the App Store? ;-)

Bildschirmfoto 2023-12-25 um 18 05 21

I would like to know, too...

@noneme
Copy link

noneme commented Dec 25, 2023

Yes, this is the solution. I put most things related to the database in an app group as data that is stored there is also available in app extensions. This is important for Siri integration, etc.
I have thought about a possible solution over the last few days, but the best thing I could think of is to just not use a shared group when side-loading. Right now the impact would be pretty small, as nothing makes use of the shared data just yet. Also in the future when there is a Siri integration it will not affect most people that are side-loading using AltStore, because you have to be a part of the Apple Developer program for Siri to work. Also, most people strip app extensions becuase they count towards the identifier limit of 10.
Anyone that is part of the Apple Developer programm propably has Xcode installed and can make the required changes themselves. It is sadly not possible to get the available app groups programmatically.

problem Thread 1: Fatal error: Unable to find App Group Container in Entitlements: group.io.rfk.shelfplayer) I decided like this: Снимок экрана 2023-12-25 в 19 55 05
https://stackoverflow.com/questions/42853052/how-to-get-app-groups-name-programmatically https://stackoverflow.com/questions/25897086/obtain-bundle-identifier-programmatically-in-swift

I am not quite sure if this will work because I don't know how AltStore changes group identifiers, but I don't think this will work. Can you send a Screenshot of the "App Groups" section on the "Signing & Capabilities" page in Xcode? All your group identifiers, include the ones made by AltStore should be listed there.

Certainly:
Снимок экрана 2023-12-25 в 20 14 05

installed using Xcode, works

@rasmuslos
Copy link
Owner

Yes, this is the solution. I put most things related to the database in an app group as data that is stored there is also available in app extensions. This is important for Siri integration, etc.
I have thought about a possible solution over the last few days, but the best thing I could think of is to just not use a shared group when side-loading. Right now the impact would be pretty small, as nothing makes use of the shared data just yet. Also in the future when there is a Siri integration it will not affect most people that are side-loading using AltStore, because you have to be a part of the Apple Developer program for Siri to work. Also, most people strip app extensions becuase they count towards the identifier limit of 10.
Anyone that is part of the Apple Developer programm propably has Xcode installed and can make the required changes themselves. It is sadly not possible to get the available app groups programmatically.

problem Thread 1: Fatal error: Unable to find App Group Container in Entitlements: group.io.rfk.shelfplayer) I decided like this: Снимок экрана 2023-12-25 в 19 55 05
https://stackoverflow.com/questions/42853052/how-to-get-app-groups-name-programmatically https://stackoverflow.com/questions/25897086/obtain-bundle-identifier-programmatically-in-swift

I am not quite sure if this will work because I don't know how AltStore changes group identifiers, but I don't think this will work. Can you send a Screenshot of the "App Groups" section on the "Signing & Capabilities" page in Xcode? All your group identifiers, include the ones made by AltStore should be listed there.

Certainly: Снимок экрана 2023-12-25 в 20 14 05

installed using Xcode, works

Just below that :)

Bildschirmfoto 2023-12-25 um 18 08 04

@noneme
Copy link

noneme commented Dec 25, 2023

Just below that :)

Снимок экрана 2023-12-25 в 20 22 26

@rasmuslos
Copy link
Owner

Just below that :)

Снимок экрана 2023-12-25 в 20 22 26

So it looks like AltStore appends some id (I don't think it's your developer id) to the group id. I will have a look at the AltStore repo to find out if using the bundle identifier is a viable solution, but it might take some time.

@noneme
Copy link

noneme commented Dec 25, 2023

So it looks like AltStore appends some id (I don't think it's your developer id) to the group id. I will have a look at the AltStore repo to find out if using the bundle identifier is a viable solution, but it might take some time

ok, but for me it’s not urgent! this is more for research purposes ;-)

@rasmuslos
Copy link
Owner

@noneme @gh0sti can you test this build? It should use the correct group identifier: https://github.com/rasmuslos/ShelfPlayer/releases/tag/v2.0.2

@gh0sti
Copy link
Author

gh0sti commented Jan 5, 2024

@noneme @gh0sti can you test this build? It should use the correct group identifier: https://github.com/rasmuslos/ShelfPlayer/releases/tag/v2.0.2

it worked! thanks I was able to sign in

@gh0sti
Copy link
Author

gh0sti commented Jan 5, 2024

This is resolved.

@gh0sti gh0sti closed this as completed Jan 5, 2024
@rasmuslos
Copy link
Owner

Great 👍

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

4 participants