tidev / titanium-sdk

🚀 Native iOS and Android Apps with JavaScript
https://titaniumsdk.com/
Other
2.76k stars 1.21k forks source link

iOS app build with new Xcode 16 corrupted #14121

Open Max87ZA opened 1 month ago

Max87ZA commented 1 month ago

I have searched and made sure there are no existing issues for the issue I am filing

Description

When I updated to Xcode 16 and iOS18 and create fresh builds(LiveView disabled) and app is running, it will not kill app when installed anymore(as it worked before), It looks like Xcode uses something like LiveView itself if app is running and when it refreshes, it's corrupted - it shows app related log with bunch of not working stuff. When I do fresh build, but kill app manually and then run it, it works fine. Related Slack topic: https://tidev.slack.com/archives/C03CVQX2A/p1727015316093469 Please take a look. Thank you

Expected Behavior

App should be killed when build finishes successfully and then manually run without errors

Actual behavior

App is "hot reloaded" but it's corrupted

Reproducible sample

Install iOS18 GA, Xcode 16 GA, SDK 12.3.1 and build app. Run it, keep it running and build again. It will hot reload with bunch of errors(maybe errors depend on app's complexity)

Steps to reproduce

Install iOS18 GA, Xcode 16 GA, SDK 12.3.1 and build app. Run it, keep it running and build again. It will hot reload with bunch of errors(maybe errors depend on app's complexity)

Platform

iOS

SDK version you are using

12.3.1

Alloy version you are using

No response

hansemannn commented 1 month ago

Potential fix: https://github.com/tidev/ioslib/pull/243

cb1kenobi commented 1 month ago

ioslib@1.7.38 has been released.

Max87ZA commented 1 month ago

Update: it happens to me for device builds, fix doesn't resolved it for me(neither simulator/device). Updated ti sdk to custom 12.5.1.carplay with carplay support, bug still present.

hansemannn commented 1 month ago

The fix was only for Simulator builds, where it was confirmed by several developers. For device builds, a different solution is necessary