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

Hyperloop: iOS - CocoaPods assets only found when copied into project

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Duplicate
    • Affects Version/s: Release 5.2.0
    • Fix Version/s: None
    • Component/s: Hyperloop

      Description

      If we use a CocoaPods dependency that uses bundle assets, those are not referenced correctly from the Pods directory. But if we copy them to the project's directory, it works correctly.

      Example Pod: https://github.com/nakiostudio/NKOColorPickerView (see the Assets directory)

      Example usage:

      /**
       *  Constructor
       **/
      (function constructor(args) {
          var NKOColorPickerView = require("NKOColorPickerView/NKOColorPickerView"),
              UIView = require('UIKit/UIView'),
              UIColor = require('UIKit/UIColor'),
              CGRectMake = require('CoreGraphics').CGRectMake;
       
          var frame = CGRectMake(0, 50, Ti.Platform.displayCaps.platformWidth, Ti.Platform.displayCaps.platformHeight - 120);
          var defaultColor = UIColor.redColor();
       
          var colorPickerView = NKOColorPickerView.alloc().initWithFrameColorAndDidChangeColorBlock(frame, defaultColor, function(color) {
              currentColorView.setBackgroundColor(color);
          });
       
          var currentColorView = new UIView();
          currentColorView.setFrame(CGRectMake(0,0,Ti.Platform.displayCaps.platformWidth,50));
          currentColorView.setBackgroundColor(defaultColor);
       
          $.container.add(colorPickerView);
          $.container.add(currentColorView);
       
      })(arguments[0] || {});
      

      The background images of the colorPickerView is not referenced correctly. If we copy the images from the Pod's Assets directory to the alloy project's app/assets, it works fine.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jvennemann Jan Vennemann
                Reporter:
                hknoechel Hans Knöchel
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration