Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with Pointing Podfile to Copied Podspec after Pod Install #12301

Open
RbBtSn0w opened this issue Mar 1, 2024 · 0 comments
Open

Issues with Pointing Podfile to Copied Podspec after Pod Install #12301

RbBtSn0w opened this issue Mar 1, 2024 · 0 comments

Comments

@RbBtSn0w
Copy link

RbBtSn0w commented Mar 1, 2024

Report

What did you do?

ℹ Please replace these two lines with what you did.
e.g. Run pod install

I have copy a podspec LoadPodspecError.podspec to LoadPodspecError.copy.podspec

then Run pod install

What did you expect to happen?

ℹ Please replace these two lines with what you expected to happen.
e.g. Install all pod dependencies correctly.

If you point to a copied podspec file in a podfile, the wrong podspec file is used after pod install is executed.

On Xcode IDE the podspec is link a wrong file.

image
image

What happened instead?

ℹ Please replace these two lines with of what happened instead.
e.g. Pod A is missing the subspec B for target C.

I think the CocoaPods use default podspec by path, not use the true file and generate the Xcode workspace.

CocoaPods Environment

ℹ Please replace these two lines with the output of pod env.
e.g. via pod env | pbcopy

Stack

   CocoaPods : 1.15.2
        Ruby : ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [arm64-darwin22]
    RubyGems : 3.5.4
        Host : macOS 13.6.4 (22G513)
       Xcode : 14.1 (14B47b)
         Git : git version 2.37.1 (Apple Git-137.1)
Ruby lib dir : /opt/homebrew/Cellar/ruby/3.3.0/lib
Repositories : mirror.internal - file system
               specs.cocoapods - file system
               specs.internal - file system
               trunk - CDN - https://cdn.cocoapods.org/

Installation Source

Executable Path: /opt/homebrew/Cellar/cocoapods/1.15.2/libexec/bin/pod

Plugins

cocoapods-deintegrate : 1.0.5
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.1
cocoapods-trunk       : 1.6.0
cocoapods-try         : 1.2.0

Podfile

use_frameworks! :linkage => :static
use_modular_headers!
#inhibit_all_warnings!

install! 'cocoapods',
:generate_multiple_pod_projects => true,
:incremental_installation => false,
:share_schemes_for_development_pods => true

platform :ios, '12.0'

target 'LoadPodspecError_Example' do
  
#  pod 'LoadPodspecError', :path => '../LoadPodspecError.podspec'
  
  pod 'LoadPodspecError', :path => '../LoadPodspecError.copy.podspec'

  target 'LoadPodspecError_Tests' do
    inherit! :search_paths

    
  end
end

Project that demonstrates the issue

ℹ Please link to a project we can download that reproduces the issue.
You can delete this section if your issue is unrelated to build problems,
i.e. it's only an issue with CocoaPods the tool.

Here is the demo link: https://github.com/RbBtSn0w/LoadPodspecError

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant