Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27407] iOS:Healthkit module is not working on simulator but works as expected on device

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionInvalid
Resolution Date2019-10-08T11:15:32.000+0000
Affected Version/sRelease 8.1.1
Fix Version/sn/a
ComponentsiOS
LabelsengSchedule
ReporterRakhi Mitro
AssigneeUnknown
Created2019-09-17T11:56:09.000+0000
Updated2019-10-08T11:23:17.000+0000

Description

Healthkit module is not working on simulator but works as expected on device. Tested the sample module attached by the customer. It works as expected on device(12.3.1) but provides error on simulator(iPhone 7 Plus) *Test Environment:*
Appcelerator Command-Line Interface, version 7.1.1
Mac OS X:10.14.6
Node.js 8.9.4

  npm Version                 = 5.6.0

Titanium CLI

  CLI Version                 = 5.2.1

Titanium SDK

  SDK Version                 = 8.1.1.GA
Device: iPhone SE(12.3.1), Simulator:iPhone 7 Plus
*Test steps:* 1.Download the module from [here](https://drive.google.com/file/d/1exZfnH_rfl4O0eo4Q4RGq63my-tD_A3V/view) 2.Update the sdk path in titanium.xconfig file :TITANIUM_SDK = /Users/macbookpro/Library/Application Support/Titanium/mobilesdk/osx/8.1.1.GA 3.After module is generated from module source code, copy the module in the sample application. 4.Add the module in trap.xml file. Compile the project will see the error in console, module don't work on simulator, but works fine on device. *Test output:* *Device:*
[INFO] :   Installing app on device: Mostafizur Rahman’s iPhone
[INFO] :   App successfully installed on device: Mostafizur Rahman’s iPhone
Please manually launch the application
[INFO] :   ioosss 1.0 (Powered by Titanium 8.1.1.0148ee6e79)
[INFO] :   module is => [object ComMoizHealthkitModule]
[INFO] :   module exampleProp is => Titanium rocks!
*On simulator:*
[ERROR] :  2019-09-17 15:03:03.227 xcodebuild[11445:130496] warning:  The file reference for "" is a member of multiple groups ("TableView & ListView" and "UI"); this indicates a malformed project.  Only the membership in one of the groups will be preserved (but membership in targets will be unaffected).  If you want a reference to the same file in more than one group, please add another reference to the same path.

[ERROR] :  2019-09-17 15:03:03.227 xcodebuild[11445:130496] warning:  The file reference for "" is a member of multiple groups ("UI" and "UI"); this indicates a malformed project.  Only the membership in one of the groups will be preserved (but membership in targets will be unaffected).  If you want a reference to the same file in more than one group, please add another reference to the same path.

[ERROR] :  2019-09-17 15:03:03.227 xcodebuild[11445:130496] warning:  The file reference for "" is a member of multiple groups ("UI" and "UI"); this indicates a malformed project.  Only the membership in one of the groups will be preserved (but membership in targets will be unaffected).  If you want a reference to the same file in more than one group, please add another reference to the same path.

[ERROR] :  2019-09-17 15:03:03.227 xcodebuild[11445:130496] warning:  The file reference for "" is a member of multiple groups ("UI" and "UI"); this indicates a malformed project.  Only the membership in one of the groups will be preserved (but membership in targets will be unaffected).  If you want a reference to the same file in more than one group, please add another reference to the same path.

[ERROR] :  2019-09-17 15:03:03.681 xcodebuild[11445:130512]  DTDeviceKit: deviceType from 0da481bbe385d5c432dc2d1173d5bb80ae3a6dc5 was NULL

[ERROR] :  2019-09-17 15:03:03.741 xcodebuild[11445:130497]  DTDeviceKit: deviceType from 0da481bbe385d5c432dc2d1173d5bb80ae3a6dc5 was NULL

[ERROR] :  ** BUILD FAILED **

[ERROR] :  The following build commands failed:

[ERROR] :   Ld /Users/macbookpro/Documents/Appcelerator_Studio_Workspace/ioosss/build/iphone/build/Pr
oducts/Debug-iphonesimulator/ioosss.app/ioosss normal x86_64

[ERROR] :  (1 failure)

Comments

  1. Motiur Rahman 2019-10-08

    Customer issue is fixed by comment out framework name in "module.xcconfig" file or adding it properly.

JSON Source