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

iOS: App fails to compile on any version of macOS using case sensitive journalling

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 6.2.0
    • Component/s: iOS
    • Labels:
      None
    • Environment:

      OSX Sierra / El Capitan
      Xcode 8.3.3 / 8.2.1
      Ti SDK 6.1.2.GA

    • Story Points:
      1
    • Sprint:
      2017 Sprint 17 SDK

      Description

      When building for iOS (on simulator or device), on a Mac running a `Case-sensitive` journalling file format, Ti SDK 6.1.2.GA will fail to compile 100% of the time.

      An example error can be seen below:

      [ERROR]         CompileC build/Intermediates/APPNAME.build/Debug-iphonesimulator/APPNAME.build/Objects-normal/i386/WatchSessionModule.o Classes/WatchSessionModule.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
      

      After losing almost an entire morning to this issue (which completely blocked one developer), we have now got to the bottom of the issue, based on the solution in this StackOverflow article.

      For clarity, within the <Ti SDK Path>/iPhone/Classes folder, the WatchSessionModule.h file needs to be changed as follows:

      #from this
      #import <WatchConnectivity/watchConnectivity.h>
       
      #to this
      #import <WatchConnectivity/WatchConnectivity.h>
      

      Without this change, a developer using a file format like this is completely unable to build with the latest Titanium SDKs for iOS.

        Attachments

          Activity

            People

            • Assignee:
              hknoechel Hans Knöchel
              Reporter:
              plancaster Peter Lancaster
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-11068
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code