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

Sample podspec for vendored_frameworks doesn't work. xcframework is not installed into application correctly #12274

Open
tethridge opened this issue Feb 8, 2024 · 2 comments

Comments

@tethridge
Copy link

🌈

Report

What did you do?

  • I created a xcframework for handling ogg files. I then copied this sample cocoapods podspec and updated the path to the zipped xcframework file and the xcframework name in vendored_frameworks.
  • I deployed my xcframework to github
  • I created a new project with Xcode 15.2
  • I ran pod init
  • I added a reference to the newly created github project
    pod 'OggKit', :git => 'https://github.com/phonebooth/OggKit', :tag => '1.3.5'
  • I ran pod install

The xcframework is not installed into the sample application that I created to test.

What did you expect to happen?

I expected the sample application to download the zipped xcframework from the source specified in the podspec and configure the sample application so that the xcframework can be used within the source files.

What happened instead?

The xcframework is not present after running pod install. Therefore, the project complains about module not found if an import is added.

CocoaPods Environment

ℹ Please replace these two lines with the output of pod env.

Stack

   CocoaPods : 1.15.1
        Ruby : ruby 2.7.6p219 (2022-04-12 revision c9c2245c0a) [arm64-darwin23]
    RubyGems : 3.1.6
        Host : macOS 14.3 (23D56)
       Xcode : 15.2 (15C500b)
         Git : git version 2.23.0
Ruby lib dir : /Users/tethridge/.rbenv/versions/2.7.6/lib
Repositories : phonebooth-oggkit - git - https://github.com/phonebooth/OggKit.git @ 5ee7cbbdd7dd07721806ce191e36b5906070c332

               phonebooth-opuskit - git - https://github.com/phonebooth/OpusKit.git @ a5d3ce0f1002d3efce6d57a4e22c802cb26eed76

               trunk - CDN - https://cdn.cocoapods.org/

Installation Source

Executable Path: /Users/tethridge/.rbenv/versions/2.7.6/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

# Uncomment the next line to define a global platform for your project
platform :ios, '17.0'

target 'OpusXCFrameworkTest' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  pod 'OggKit', :git => 'https://github.com/phonebooth/OggKit', :tag => '1.3.5'

end

Project that demonstrates the issue

https://github.com/tethridge/CocoapodOggTest

@paulb777
Copy link
Member

paulb777 commented Feb 8, 2024

@shamilovtim
Copy link

I am also experiencing vendored frameworks busted in the latest pods version. I think my issue is similar to what this issue describes: #11580

I have multiple vendored frameworks and their headers cannot be found. I can see the frameworks in my development pod but the headers cannot be found.

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

3 participants