Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-26186

Cocoapods dependency re-write support for Non-JSON podspec files having double quotes in its source URL.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects Version/s: 7.15.3, 7.21.7
    • Fix Version/s: 7.25.4
    • Component/s: CocoaPods
    • Labels:
      None
    • Location:
      External

      Description

      Problem description:
      The pod install command is failing with 404 error message for the non-JSON Podspec files having double quotes in their source URL.
      Specs Repo URL : [https://github.com/LivePersonInc/iOSPodSpecs
      ]Repository URL: https://github.com/

      Expected behavior:
      The source URL in the pod spec file should be parsed properly with right path.

      Steps to reproduce:
      1. Configure Artifactory instance Cocoapods remote repository with the following details.
      Specs Repo URL : https://github.com/LivePersonInc/iOSPodSpecs
      Repository URL: https://github.com/

      2. Execute repo add and update commands.
      pod repo-art add <local_specs_repo_name> http://localhost:8081/artifactory/api/pods/<repository_key>
      pod repo-art update <local_specs_repo_name>

      The source URL in spec file in the client will be updated as shown below.
      s.source = { :http => 'https://art.local/artifactory/api/pods/test-pod-remote/pod/pkg/LPMessagingSDK/6.4.1.791', :type => 'tgz'}

      3. Clone the public GitHub project for testing purpose.
      https://github.com/particle-iot/example-app-ios.git

      4. Edit the Podfile with the following content.
      $ cat Podfile
      plugin 'cocoapods-art', :sources => [
      'test-cocoapods-remote'
      ]
      platform :ios, '11.0'
      use_frameworks!
      target 'ios-app-particle-setup' do
      pod 'LPMessagingSDK'
      end

      5. Execute the "pod install" command to reproduce the issue.
      $ pod install

      Possible workaround:
      According to the Cocoapods spec , the source url should be surrounded by a single quote. Align the podspecs file according to the Cocoapods spec as a workaround. 

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              tataraov Tatarao Vana
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Sync Status

                  Connection: RTFACT Sync
                  RTMID-26187 -
                  SYNCHRONIZED
                  • Last Sync Date: