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

Cordova iOS link (clang) failure caused by space in App name

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: cordova-ios@4.4.0, cordova@7.0.0
    • Fix Version/s: cordova-ios@4.5.1
    • Component/s: cordova-ios
    • Labels:
    • Environment:

      Mac osx 10.12.5
      xCode 8.3.3
      cordova 7.0.1
      cordova iOS 4.4.0

      Description

      Where in iOS Cordova is the code that generates the clang command? I would be happy to investigate this problem myself, if I knew where in the Cordova code that the clang (link) statement is generated.

      The clang statement that is being generated is not correctly handling a space that is embedded in the App name:

      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
      .....
      -FYour
      -FBible/Plugins/com-shortsands-pkzip
      -FBible/Plugins/com-shortsands-aws
      -FBible/Plugins/com-shortsands-videoplayer
      -FBible/Plugins/cordova-plugin-webserver
      -FYour\ Bible/Plugins/com-shortsands-pkzip
      -FYour\ Bible/Plugins/com-shortsands-aws
      -FYour\ Bible/Plugins/com-shortsands-videoplayer
      .....
      The App is named "Your Bible". Noticed that it is not handling the space properly when it generates the -F parameters, and those all fail with not found errors. Then it generates -F parameters a second time, but this time correctly handling the space.

      Custom, embedded frameworks are being used in these three plugins. This link problem appeared after they were added to the project.

        Attachments

          Activity

            People

            • Assignee:
              shazron Shazron Abdullah
              Reporter:
              gary@shortsands.com Gary N Griswold
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: