Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-28152

iOS: Compile error when SDK forces a rebuild

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Fixed
    • Affects Version/s: Release 9.2.0
    • Fix Version/s: Release 9.2.1
    • Component/s: CLI, iOS
    • Labels:
      None
    • Sprint:
      2020 Sprint 19, 2020 Sprint 20

      Description

      Description

      When the SDK determines that a rebuild is needed (as opposed to a clean rebuild, or no rebuild) a compile error can occur. This block determines if a rebuild is needed, it appears the following circumstances can trigger this error:

      • SDK path changes (i.e. SDK version changed from 9.2.0.v20200923092031 -> 9.2.0.GA as this technically isn't an SDK version change)

      The following do not:

      • Target changing (even if the same deploy type is maintained)
      • iOS SDK changing

      The error specifically is

      [TRACE]  /Users/awam/git/testing_apps/kitchensink-v2/build/iphone/Classes/TiUIiOSSystemButtonProxy.m:41:28: error: use of undeclared identifier 'UITitaniumNativeItemSpinner'; did you mean 'UIKitchenSinkNativeItemSpinner'?
      [TRACE]  MAKE_SYSTEM_PROP(ACTIVITY, UITitaniumNativeItemSpinner);
      [TRACE]                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      [TRACE]                             UIKitchenSinkNativeItemSpinner
      [TRACE]  In module 'TitaniumKit' imported from /Users/awam/git/testing_apps/kitchensink-v2/build/iphone/Classes/TiUIiOSSystemButtonProxy.h:9:
      [TRACE]  /Users/awam/git/testing_apps/kitchensink-v2/build/iphone/build/Products/Debug-iphoneos/TitaniumKit.framework/Headers/TiBase.h:324:36: note: expanded from macro 'MAKE_SYSTEM_PROP'
      [TRACE]      return [NSNumber numberWithInt:map]; \
      [TRACE]                                     ^
      [TRACE]  /Users/awam/git/testing_apps/kitchensink-v2/build/iphone/build/Products/Debug-iphoneos/TitaniumKit.framework/Headers/TiBase.h:420:3: note: 'UIKitchenSinkNativeItemSpinner' declared here
      [TRACE]    UIKitchenSinkNativeItemSpinner = -2,
      [TRACE]    ^
      [TRACE]  /Users/awam/git/testing_apps/kitchensink-v2/build/iphone/Classes/TiUIiOSSystemButtonProxy.m:42:27: error: use of undeclared identifier 'UITitaniumNativeItemSpinner'; did you mean 'UIKitchenSinkNativeItemSpinner'?
      [TRACE]  MAKE_SYSTEM_PROP(SPINNER, UITitaniumNativeItemSpinner);
      [TRACE]                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      [TRACE]                            UIKitchenSinkNativeItemSpinner
      [TRACE]  In module 'TitaniumKit' imported from /Users/awam/git/testing_apps/kitchensink-v2/build/iphone/Classes/TiUIiOSSystemButtonProxy.h:9:
      [TRACE]  /Users/awam/git/testing_apps/kitchensink-v2/build/iphone/build/Products/Debug-iphoneos/TitaniumKit.framework/Headers/TiBase.h:324:36: note: expanded from macro 'MAKE_SYSTEM_PROP'
      [TRACE]      return [NSNumber numberWithInt:map]; \
      [TRACE]                                     ^
      [TRACE]  /Users/awam/git/testing_apps/kitchensink-v2/build/iphone/build/Products/Debug-iphoneos/TitaniumKit.framework/Headers/TiBase.h:420:3: note: 'UIKitchenSinkNativeItemSpinner' declared here
      [TRACE]    UIKitchenSinkNativeItemSpinner = -2,
      [TRACE]    ^
      [TRACE]  /Users/awam/git/testing_apps/kitchensink-v2/build/iphone/Classes/TiUIiOSSystemButtonProxy.m:43:30: error: use of undeclared identifier 'UITitaniumNativeItemInfoLight'; did you mean 'UIKitchenSinkNativeItemInfoLight'?
      [TRACE]  MAKE_SYSTEM_PROP(INFO_LIGHT, UITitaniumNativeItemInfoLight);
      [TRACE]                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      [TRACE]                               UIKitchenSinkNativeItemInfoLight
      [TRACE]  In module 'TitaniumKit' imported from /Users/awam/git/testing_apps/kitchensink-v2/build/iphone/Classes/TiUIiOSSystemButtonProxy.h:9:
      [TRACE]  /Users/awam/git/testing_apps/kitchensink-v2/build/iphone/build/Products/Debug-iphoneos/TitaniumKit.framework/Headers/TiBase.h:324:36: note: expanded from macro 'MAKE_SYSTEM_PROP'
      [TRACE]      return [NSNumber numberWithInt:map]; \
      [TRACE]                                     ^
      [TRACE]  /Users/awam/git/testing_apps/kitchensink-v2/build/iphone/build/Products/Debug-iphoneos/TitaniumKit.framework/Headers/TiBase.h:435:3: note: 'UIKitchenSinkNativeItemInfoLight' declared here
      [TRACE]    UIKitchenSinkNativeItemInfoLight = -13,
      [TRACE]    ^
      [TRACE]  /Users/awam/git/testing_apps/kitchensink-v2/build/iphone/Classes/TiUIiOSSystemButtonProxy.m:44:29: error: use of undeclared identifier 'UITitaniumNativeItemInfoDark'; did you mean 'UIKitchenSinkNativeItemInfoDark'?
      [TRACE]  MAKE_SYSTEM_PROP(INFO_DARK, UITitaniumNativeItemInfoDark);
      [TRACE]                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      [TRACE]                              UIKitchenSinkNativeItemInfoDark
      [TRACE]  In module 'TitaniumKit' imported from /Users/awam/git/testing_apps/kitchensink-v2/build/iphone/Classes/TiUIiOSSystemButtonProxy.h:9:
      [TRACE]  /Users/awam/git/testing_apps/kitchensink-v2/build/iphone/build/Products/Debug-iphoneos/TitaniumKit.framework/Headers/TiBase.h:324:36: note: expanded from macro 'MAKE_SYSTEM_PROP'
      [TRACE]      return [NSNumber numberWithInt:map]; \
      [TRACE]                                     ^
      [TRACE]  /Users/awam/git/testing_apps/kitchensink-v2/build/iphone/build/Products/Debug-iphoneos/TitaniumKit.framework/Headers/TiBase.h:436:3: note: 'UIKitchenSinkNativeItemInfoDark' declared here
      [TRACE]    UIKitchenSinkNativeItemInfoDark = -14,
      [TRACE]    ^
      [TRACE]  /Users/awam/git/testing_apps/kitchensink-v2/build/iphone/Classes/TiUIiOSSystemButtonProxy.m:45:30: error: use of undeclared identifier 'UITitaniumNativeItemDisclosure'; did you mean 'UIKitchenSinkNativeItemDisclosure'?
      [TRACE]  MAKE_SYSTEM_PROP(DISCLOSURE, UITitaniumNativeItemDisclosure);
      [TRACE]                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      [TRACE]                               UIKitchenSinkNativeItemDisclosure
      [TRACE]  In module 'TitaniumKit' imported from /Users/awam/git/testing_apps/kitchensink-v2/build/iphone/Classes/TiUIiOSSystemButtonProxy.h:9:
      [TRACE]  /Users/awam/git/testing_apps/kitchensink-v2/build/iphone/build/Products/Debug-iphoneos/TitaniumKit.framework/Headers/TiBase.h:324:36: note: expanded from macro 'MAKE_SYSTEM_PROP'
      [TRACE]      return [NSNumber numberWithInt:map]; \
      [TRACE]                                     ^
      [TRACE]  /Users/awam/git/testing_apps/kitchensink-v2/build/iphone/build/Products/Debug-iphoneos/TitaniumKit.framework/Headers/TiBase.h:438:3: note: 'UIKitchenSinkNativeItemDisclosure' declared here
      [TRACE]    UIKitchenSinkNativeItemDisclosure = -15,
      [TRACE]    ^
      [TRACE]  /Users/awam/git/testing_apps/kitchensink-v2/build/iphone/Classes/TiUIiOSSystemButtonProxy.m:46:31: error: use of undeclared identifier 'UITitaniumNativeItemContactAdd'; did you mean 'UIKitchenSinkNativeItemContactAdd'?
      [TRACE]  MAKE_SYSTEM_PROP(CONTACT_ADD, UITitaniumNativeItemContactAdd);
      [TRACE]                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      [TRACE]                                UIKitchenSinkNativeItemContactAdd
      [TRACE]  In module 'TitaniumKit' imported from /Users/awam/git/testing_apps/kitchensink-v2/build/iphone/Classes/TiUIiOSSystemButtonProxy.h:9:
      [TRACE]  /Users/awam/git/testing_apps/kitchensink-v2/build/iphone/build/Products/Debug-iphoneos/TitaniumKit.framework/Headers/TiBase.h:324:36: note: expanded from macro 'MAKE_SYSTEM_PROP'
      [TRACE]      return [NSNumber numberWithInt:map]; \
      [TRACE]                                     ^
      [TRACE]  /Users/awam/git/testing_apps/kitchensink-v2/build/iphone/build/Products/Debug-iphoneos/TitaniumKit.framework/Headers/TiBase.h:440:3: note: 'UIKitchenSinkNativeItemContactAdd' declared here
      [TRACE]    UIKitchenSinkNativeItemContactAdd = -16
      [TRACE]    ^
      [TRACE]  6 errors generated.
      

      This is how the code should look.

      It appears that one of the renames here or here is changing the Titanium portion of the enums to the app name.

      Steps to reproduce

      1. Install 9.2.0.v20200923092031 and 9.2.0.GA
      2. Set your apps SDK to 9.2.0.v20200923092031
      3. Run appc run -p ios -T device --build-only
      4. Set your apps SDK to 9.2.0.GA
      5. Run appc run -p ios -T device --build-only

      Actual

      Compile error

      Expected

      No compile error

        Attachments

          Activity

            People

            • Assignee:
              eharris Ewan Harris
              Reporter:
              eharris Ewan Harris
              Reviewer:
              Christopher Williams
              Tester:
              Samir Mohammed
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration