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

Working app crash on iOS 17 #864

Closed
sysnux opened this issue Sep 14, 2023 · 7 comments
Closed

Working app crash on iOS 17 #864

sysnux opened this issue Sep 14, 2023 · 7 comments

Comments

@sysnux
Copy link

sysnux commented Sep 14, 2023

My app has been working on iOS for a few years:
https://apps.apple.com/fr/app/polyapp-banque-de-polyn%C3%A9sie/id1570748267

But tests on iOS-17 beta show it is now crashing on startup.
I have rebuilt the app with latest Xcode-14 as requested, but still same crash on startup, without indication on what is wrong.

I could not find any hints on Kivy forums, is this a known problem? Has anyone tried iOS-17?

@misl6
Copy link
Member

misl6 commented Sep 15, 2023

Hi @sysnux !

On iOS 17 Simulator, with XCode 15 RC1, everything works like a charm.

  • Is your app using any feature that has been removed in iOS 17?
  • What happens when the app is run via XCode in debug mode?

@sysnux
Copy link
Author

sysnux commented Sep 18, 2023

Hi @misl6,
Thanks for your reply.
I was able to confirm my app works fine on iOS 17 simulator, with Xcode 15.0 (15A240d). I just had to change "User Script Sandboxing" to No.
Still, I does not work on iPhone :(

@misl6
Copy link
Member

misl6 commented Sep 20, 2023

Hi @sysnux

With iOS 17 and XCode 15 now generally available, I can confirm that I'm not able to reproduce your issue even on a real device (iPhone 14 Pro).

I also did not needed to change "User Script Sandboxing" to NO in order to have the app running on the simulator.

Do you have any log that can help to debug?
(I'm keeping the issue open as you may be using a specific feature that need to be fixed, but without any log is hard to triage it)

@sysnux
Copy link
Author

sysnux commented Sep 21, 2023

Hi @misl6

The application is now working fine, and an iOS17 compatible version is on the Apple Store, yeah!

The crash was actually in plyer. My code is using uniqueid.id from plyer, which generates TypeError on iOS17 iPhone only (not on Simulator):

  File "/.../site-packages/plyer/platforms/ios/uniqueid.py", line 19, in _get_uid
     uuid = UIDevice.currentDevice().identifierForVendor.UUIDString()
 TypeError: 'Swift.__StringStorage' object is not callable

I changed my code to:

       try:
            self.uniqueid = uniqueid.id
        except (TypeError, NotImplementedError, NameError):

Concerning "User Script Sandboxingg", I still have the error if I enable it:
Sandbox: rsync deny file-read-data /Users/..../polyapp-ios/YourApp
Maybe specific to this application, not sure why.

You can close the issue, thanks!

@misl6
Copy link
Member

misl6 commented Sep 21, 2023

@sysnux can you please target this specific issue with a PR on plyer? 😃

@sysnux
Copy link
Author

sysnux commented Sep 21, 2023

Hi @misl6,

I can't test the fix, so PR is not possible, sorry.
I opened an issue instead: kivy/plyer#773

Thanks for your support!

@Julian-O
Copy link
Contributor

Closing as duplicate of Plyer issue.

@Julian-O Julian-O closed this as not planned Won't fix, can't repro, duplicate, stale Oct 29, 2023
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

3 participants