You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2020/01/31 20:16:38 UTC

[GitHub] [cordova-ios] jacobg opened a new issue #776: New podspec syntax not adding to Podfile

jacobg opened a new issue #776: New podspec syntax not adding to Podfile
URL: https://github.com/apache/cordova-ios/issues/776
 
 
   # Bug Report
   
   ## Problem
   
   ### What is expected to happen?
   
   Plugins use new `podspec` syntax, and the dependencies get added to Podfile.
   
   
   ### What does actually happen?
   
   The dependencies are not added to the Podfile.
   Plugins using the old `<framework type="podspec"` syntax do get aded.
   
   All dependencies do get added to pods.json though.
   
   ## Information
   Here's an example where the new syntax doesn't work, and old one does.
   
   New syntax:
   ```xml
           <podspec>
               <config>
                   <source url="https://cdn.cocoapods.org/">
               </config>
               <pods>
                   <pod name="Firebase/MLVision" spec="~> 6.3.0" />
                   <pod name="Firebase/MLVisionFaceModel" spec="~> 6.3.0" />
                   <pod name="OpenCV2" spec="~> 4.2.0" />
               </pods>
           </podspec>
   ```
   
   Old syntax:
   ```xml
           <framework src="Firebase/MLVision" type="podspec" spec="~> 6.3.0" />
           <framework src="Firebase/MLVisionFaceModel" type="podspec" spec="~> 6.3.0" />
           <framework src="OpenCV2" type="podspec" spec="~> 4.2.0" />
   ```
   
   
   ### Command or Code
   ```
   cordova prepare
   cordova build ios --buildConfig=./build.json
   ```
   
   
   ### Environment, Platform, Device
   MacOS Catalina
   
   
   
   ### Version information
   I am running:
   ```
   jacob$ cordova -v
   9.0.0 (cordova-lib@9.0.1)
   ```
   ```
   jacob$ cordova platform
   Installed platforms:
     android 8.1.0
     browser 6.0.0
     ios 5.1.1
   Available platforms:
     electron ^1.0.0
     osx ^5.0.0
     windows ^7.0.0
   ```
   ```
   jacob$ pod --version
   1.8.4
   ```
   
   I also tried `cordova-ios` versions 5.0.0 and 5.1.0, and those don't work either.
   
   ## Checklist
   
   - [ x] I searched for existing GitHub issues
   - [ x] I updated all Cordova tooling to most recent version
   - [ x] I included all the necessary information above
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-ios] jacobg closed issue #776: New podspec syntax not adding to Podfile

Posted by GitBox <gi...@apache.org>.
jacobg closed issue #776: New podspec syntax not adding to Podfile
URL: https://github.com/apache/cordova-ios/issues/776
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-ios] jacobg commented on issue #776: New podspec syntax not adding to Podfile

Posted by GitBox <gi...@apache.org>.
jacobg commented on issue #776: New podspec syntax not adding to Podfile
URL: https://github.com/apache/cordova-ios/issues/776#issuecomment-581089394
 
 
   Hi @brodybits. Hope you're well. Thanks for forcing me to make a minimal example! I quickly discovered the problem was that my project was using the plugin `cordova-plugin-cocoapod-support`. I don't even remember when I added that plugin. My project is 5 years old. But it's definitely not necessary anymore, and in fact breaks the new podspec syntax. Removing it  resolves the issue. Thanks again!

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-ios] brodybits commented on issue #776: New podspec syntax not adding to Podfile

Posted by GitBox <gi...@apache.org>.
brodybits commented on issue #776: New podspec syntax not adding to Podfile
URL: https://github.com/apache/cordova-ios/issues/776#issuecomment-580906221
 
 
   I am not an expert in this area, hope another maintainer can take a look at this. I would *highly* recommend that you post a [minimal, reproducible example ([1])](https://stackoverflow.com/help/minimal-reproducible-example) projects with plugins that can demonstrate what does and does not work correctly. I am adding the **help wanted** label for now.
   
   [1] https://stackoverflow.com/help/minimal-reproducible-example

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org