Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-9462

iOS 3.9.0 breaks npm link modules

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.1.1
    • None
    • cordova-ios
    • None

    Description

      Hi,

      Yosemite, iOS 8.4, XCode 6.4, iPhone 6

      Git cloned bluebird, npm install, npm link, create browser build using command:
      node tools/build --debug --main --zalgo --browser --minify

      Freshly created cordova app in another directory, added iOS@3.9.0, cd www, npm init, npm link bluebird

      Add <script src="node_modules/bluebird/js/browser/bluebird.min.js" charset="utf-8"></script> in index.html, console.log(Promise.promisifyAll); in index.js app.initialize

      cordova emulate runs successfully with no errors

      cordova run ios --device is broken. It results in a binary that loads on device but has broken file:// links:
      Failed to load resource: The requested URL was not found on this server.
      file:///private/var/mobile/Containers/Bundle/Application/6BED8B84-DC94-4EC3-A843-B4A83C8814F6/HelloCordova.app/www/node_modules/bluebird/js/browser/bluebird.min.js
      index.js:23

      Debugged using the Safari inspector.

      Downgrading to iOS platform 3.8.0 fixes the bug - no errors and console log is successful

      Thanks!

      Attachments

        Activity

          People

            daserge Sergey Shakhnazarov
            rayshan Ray Shan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: