[TIMOB-28297] iOS: swift files doesn't recognize macros defined in defines.h
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2021-02-02T14:55:23.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 9.3.2, Release 10.0.0 |
Components | iOS |
Labels | swift |
Reporter | Vijay Singh |
Assignee | Vijay Singh |
Created | 2020-12-18T23:36:07.000+0000 |
Updated | 2021-07-22T11:03:20.000+0000 |
Description
If we add any new .swift file in sdk, macros defined in defines.h file are not recognized by swift. So all macros defined in defines.h file need to be made in such a way so that it can be recognized by swift and Objc both file. To make this working all macros need to be added in buildSettings of project .
PR - https://github.com/appcelerator/titanium_mobile/pull/12379 How to test - Create a new app or use existing app. Run on device and simulator both. It should work properly.
merged to master for 01.0.0 target. Automated backport PR for 9_3_X failed, manually cherry-picked and fixed conflicts (for potential 9.3.2 release).