Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27612] iOS: Not able to debug Swift module

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionDuplicate
Resolution Date2019-12-03T15:32:51.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
LabelsengSchedule
ReporterNazmus Salahin
AssigneeJan Vennemann
Created2019-11-19T04:15:43.000+0000
Updated2019-12-03T15:32:52.000+0000

Description

The customer is developing a swift module for MSAL library integration for Intune appProxy feature. And following the steps provided in the guide to debugging the native swift module - http://docs.appcelerator.com/platform/latest/#!/guide/iOS_Module_Project But when we run the app crash. with error
Error {
column = 10;
line = 11677;
message = "Couldn't find module: ./app for architecture: arm64";
sourceURL = "file:///var/containers/Bundle/Application/D7D0A00A-9EA3-47C6-8B3E-581101C7A357/TestSSOIntune.app/ti.main.js";
stack = " at require@[native code]\n at (/ti.main.js:11677:10)\n at loadAsync(/ti.main.js:11603:13)\n at global code(/ti.main.js:11674:10)";
toJSON = "<KrollCallback: 0x281327dc0>";
}
Attached the module project for debugging.

Attachments

FileDateSize
LibIntuneMSAL.zip2019-11-19T04:14:38.000+000010426335

Comments

  1. Jan Vennemann 2019-11-20

    You maybe running into TIMOB-26807. Running the Xcode project out of the box is currently broken. However, there is a workaround described in TIMOB-26807. You just need to follow these two steps: * Make sure to build the app for device. * Open the generated Xcode project and add a new "Run Script" build phase with the following content to your target:
       cp ${SRCROOT}/build/Products/Debug-iphoneos/${CONTENTS_FOLDER_PATH}/_index_.json ${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/_index_.json
       
  2. Riduanul Islam 2019-11-29

    [~jvennemann] Can you look into this and give a resolution to client? Thanks.
  3. Jan Vennemann 2019-12-02

    I would, if i knew what their issue is? We already guided them how to setup the module so it will receive app delegate messages. So, what's the problem with the above code? Please note that the linked .zip files does not contain the app delegate code. If you can provide me with updated module code and an actual issue description i'd be happy to help.

JSON Source