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

iOS: Module - Cannot build 32-bit module urlSession and coremotion with SDK 3.5.0

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 3.5.0
    • Fix Version/s: Release 5.2.0
    • Component/s: iOS
    • Labels:
    • Environment:

      Appcelerator Studio, build: 3.4.1.201410281743
      SDK build: 3.5.0.v20141208122514
      CLI: 3.4.1
      Alloy: 1.5.1
      Xcode: 6.1.1 GM
      urlSession: 1.0.1 (32-bit)
      coremotion: 1.0.1 (32-bit)

    • Story Points:
      1
    • Sprint:
      2015 Sprint 23 SDK

      Description

      Details: If you try to build a project with both 32-bit modules urlSession and coremotion with SDK 3.5.0, then you will get build failures.

      Note: Was not able to reproduce this issue with the following 32-bit modules:

      module version
      com.appcelerator.apm 1.0.10
      facebook 3.1.1
      ti.geofence 1.1.2
      ti.map 2.0.6
      ti.touchid 1.0.1

      Steps to reproduce:
      1. Create a Titanium project
      2. Include both com.appcelerator.urlSession (1.0.1) and ti.coremotion (1.0.1) modules in the tiapp.xml; do not need to require them into your app.js

      3. Install app to device
      Actual: On first build failure, you will get this urlSession build error:

      [ERROR] :  Error Command failed: fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: fat input file (/Users/wluu/Library/Application Support/Titanium/modules/iphone/com.appcelerator.urlSession/1.0.1/libcom.appcelerator.urlsession.a) does not contain the specified architecture (x86_64) to thin it to
          at exithandler (child_process.js:648:15)
          at ChildProcess.emit (events.js:98:17)
          at maybeClose (child_process.js:756:16)
          at Socket.<anonymous> (child_process.js:969:11)
          at Socket.emit (events.js:95:17)
          at Pipe.close (net.js:465:12)
      ---------------------------------------------
          at exports.execFile (child_process.js:702:9)
          at exports.exec (child_process.js:589:18)
          at processNextCommand (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141208122514/iphone/cli/hooks/hyperloop.js:119:7)
          at exithandler (child_process.js:646:7)
          at ChildProcess.emit (events.js:98:17)
          at maybeClose (child_process.js:756:16)
          at Socket.<anonymous> (child_process.js:969:11)
      

      4. Use change the urlSession version module to latest (1.1.0)

      5. Save changes and install to device
      Actual: On second build failure, you will get this coremotion build error:

      [ERROR] :  Error Command failed: fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: fat input file (/Users/wluu/Library/Application Support/Titanium/modules/iphone/ti.coremotion/1.0.1/libti.coremotion.a) does not contain the specified architecture (x86_64) to thin it to
          at exithandler (child_process.js:648:15)
          at ChildProcess.emit (events.js:98:17)
          at maybeClose (child_process.js:756:16)
          at Socket.<anonymous> (child_process.js:969:11)
          at Socket.emit (events.js:95:17)
          at Pipe.close (net.js:465:12)
      ---------------------------------------------
          at exports.execFile (child_process.js:702:9)
          at exports.exec (child_process.js:589:18)
          at processNextCommand (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141208122514/iphone/cli/hooks/hyperloop.js:119:7)
          at exithandler (child_process.js:646:7)
          at ChildProcess.emit (events.js:98:17)
          at maybeClose (child_process.js:756:16)
          at Socket.<anonymous> (child_process.js:969:11)
      

      Expected: Should fail gracefully with warning indicating to the user that they should use the latest modules or build fine like the other specified 32-bit modules.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cng Chee Kiat Ng (Inactive)
                Reporter:
                wluu Wilson Luu (Inactive)
              • Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code