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

iOS: Module project is not compiling properly on 8.1.1.GA

    Details

    • Type: Story
    • Status: Closed
    • Priority: None
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 8.3.0
    • Component/s: iOS
    • Labels:
      None
    • Environment:

      8.1.1.GA, Xcode 10.3, macOS Mojave 10.14.6

      Description

      One user is facing error compiling a module. He is using 8.1.1.GA, Xcode 10.3, macOS Mojave 10.14.6. He is unable to build module project with TiApp.h using SDK8.1.1.GA ? His purpose is to use NSURLSessionDelegate, which requires importing TiApp.h according to the following reference.

      Sample module: Click here

      Test Steps:
      Steps from the user:

      1. Create new mobile module project [jp.co.ndsoft.NdSyncClinet2] using SDK8.1.1.GA, target iOS.
      2. Add code follows into ios/Classes/JpCoNdsoftNdSyncClinet2Module.m
      3. Package iOS Module

      Add code at step2

      --- a/ios/Classes/JpCoNdsoftNdSyncClinet2Module.m
      +++ b/ios/Classes/JpCoNdsoftNdSyncClinet2Module.m
      @@ -9,6 +9,7 @@
      #import "TiBase.h"
      #import "TiHost.h"
      #import "TiUtils.h"
      +#import "TiApp.h"
       
      @implementation JpCoNdsoftNdSyncClinet2Module
      @@ -29,6 +30,12 @@
      #pragma mark Lifecycle
      +-(void)_configure
      +{
      + [super _configure];
      + [[TiApp app] registerApplicationDelegate:self];
      +}
      +
      - (void)startup
      

      Note: We also tried to compile module shared by the client and receive same error as him.

      [ERROR] [xcode-sim] ** BUILD FAILED **
      [ERROR] [xcode-sim] The following build commands failed:
      [ERROR] [xcode-sim] 	CompileC build/NdSyncClient2.build/Release-iphonesimulator/NdSyncClient2.build/Objects-normal/x86_64/JpCoNdsoftNdSyncClinet2Module.o Classes/JpCoNdsoftNdSyncClinet2Module.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
      [ERROR] [xcode-sim] 	CompileC build/NdSyncClient2.build/Release-iphonesimulator/NdSyncClient2.build/Objects-normal/i386/JpCoNdsoftNdSyncClinet2Module.o Classes/JpCoNdsoftNdSyncClinet2Module.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
      [ERROR] [xcode-sim] (2 failures)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jvennemann Jan Vennemann
                Reporter:
                rmitro Rakhi Mitro
                Reviewer:
                Vijay Singh
                Tester:
                Satyam Sekhri
              • Watchers:
                6 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 Source Code