plugins icon indicating copy to clipboard operation
plugins copied to clipboard

[@nativescript/email] Crash on iOS >= 15.0

Open benedictstrube opened this issue 4 years ago • 9 comments

On iOS Versions >= 15.0, our App immediately crashes without logs when invoking the plugin in the latest version in a NS8 project. Everything went fine until we updated the iOS version. To overcome these crashes, we tried mailto links instead. However, these also crash our app (at least in a production build). So I am not too sure, whether this is an OS or plugin bug! Maybe you guys have an idea?

benedictstrube avatar Oct 15 '21 06:10 benedictstrube

Hello, I can confirm the bug! Everything went well until the update to iOS 15.0.

PhilippS93 avatar Oct 15 '21 07:10 PhilippS93

Any crash logs at all? Can you run the app in xcode and see? I have it on an app running on iOS15 and don't see a crash currently.

bradmartin avatar Oct 15 '21 16:10 bradmartin

https://user-images.githubusercontent.com/6006148/137527262-77dd9fe4-ede1-40f9-8527-6359e3ea5a6d.mp4

bradmartin avatar Oct 15 '21 17:10 bradmartin

I had the same thing happen running an ipad on 15 and an iphone on 14.8. The app and plugin worked in my simulators and when my iphone was attached as a test device. But would launch and immediately shut down when installed from Test Flight.

NachmanRoss avatar Oct 20 '21 15:10 NachmanRoss

Ugh, those are harder to figure out for sure. I'll try to think of an app in release that might be using this and try to confirm. Even harder to track down if so. Maybe someone can provide a crash log from xcode organizer for a release build that has been distributed, which could help.

bradmartin avatar Oct 20 '21 16:10 bradmartin

I don’t think that I can help there as my app is built using a script file which executes the following:

ns build ios --release --env.uglify --for-device --team-id

And then uploads it to Test Flight with this command:

xcodebuild -exportArchive -allowProvisioningUpdates -exportOptionsPlist $PINFO_LIST -archivePath $ARCHIVE_DIR/$BUNDLE_ID.xcarchive -exportPath Release

Nachman Beinish Ross On Oct 20, 2021, 12:24 PM -0400, Brad Martin @.***>, wrote:

Ugh, those are harder to figure out for sure. I'll try to think of an app in release that might be using this and try to confirm. Even harder to track down if so. Maybe someone can provide a crash log from xcode organizer for a release build that has been distributed, which could help.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/NativeScript/plugins/issues/182#issuecomment-947830492 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AKUWSS5MEIMYFC3XV2HC6FLUH3ULTANCNFSM5GBG5Q7Q . https://github.com/notifications/beacon/AKUWSS34TTMG7EL5VHXOXBLUH3ULTA5CNFSM5GBG5Q72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHB7L5XA.gif

NachmanRoss avatar Oct 20 '21 16:10 NachmanRoss

If you're authenticated with xcode, I think it should still show the distributed apps (but maybe not if all done with CLI). The logs usually take a day or two to show up from apple if there are crashes for specific builds. Just not fun to track down 🙃

bradmartin avatar Oct 20 '21 16:10 bradmartin

I took a look at organizer in Xcode and it shows the versions that I released to Xcode but it doesn’t show any crash logs. I’ll look again in the next few days and let you know if anything shows up.

I’m really not an iOS or MacOS maven but I’m willing to try different things if instructions are sent. I’ve spent over 40 years developing and designing systems on DOS and then Windows. I retired three years ago and because I was going stir crazy after one day, I formed an LLC and started developing apps using Cordova and then quickly switched to Nativescript. I was still developing on a Windows laptop and then about 2 years ago I switched to a Mac. So while I’ve become proficient with MacOS, I only use Xcode to verify things like Signing & Capabilities. 

Nachman Beinish Ross On Oct 20, 2021, 12:46 PM -0400, Brad Martin @.***>, wrote:

If you're authenticated with xcode, I think it should still show the distributed apps (but maybe not if all done with CLI). The logs usually take a day or two to show up from apple if there are crashes for specific builds. Just not fun to track down 🙃

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/NativeScript/plugins/issues/182#issuecomment-947847226 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AKUWSSYU63KMMUKRJKOC7ODUH3W6RANCNFSM5GBG5Q7Q . https://github.com/notifications/beacon/AKUWSS5Q6PYGA6FQF2GLENLUH3W6RA5CNFSM5GBG5Q72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHB7QAOQ.gif

NachmanRoss avatar Oct 20 '21 17:10 NachmanRoss

No worries, thanks for offering the help :) If you do see any crash logs show up in the organizer and want to share, just upload them on this issue and maybe it will point us in the right direction. Thanks.

bradmartin avatar Oct 20 '21 18:10 bradmartin