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

Can't access framework bundle on pod lib create #258

Open
alexzobi opened this issue Apr 12, 2022 · 1 comment
Open

Can't access framework bundle on pod lib create #258

alexzobi opened this issue Apr 12, 2022 · 1 comment

Comments

@alexzobi
Copy link

alexzobi commented Apr 12, 2022

What did you do?

I ran pod lib create in initiate a new cocoapod library project with an example app. Within my development pod, I'm trying to access Bundle(for: MyClass.self) and receiving my example app bundle and not my framework bundle. I've also tried targeting the bundle by identifier, which returns nil. I'm trying to access my framework's info.plist

What did you expect to happen?

I expected to get access to the development pod bundle

What happened instead?

Only Bundle.main was accessible.

CocoaPods Environment


### Stack

CocoaPods : 1.10.1
Ruby : ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.x86_64-darwin21]
RubyGems : 3.0.3.1
Host : macOS 12.0.1 (21A559)
Xcode : 12.3 (12C33)
Git : git version 2.24.3 (Apple Git-128)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
Repositories :
trunk - CDN - https://cdn.cocoapods.org/


### Installation Source

Executable Path: /usr/local/bin/pod


### Plugins

cocoapods-deintegrate : 1.0.4
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-trunk : 1.5.0
cocoapods-try : 1.2.0


### Podfile

```ruby
use_frameworks!

platform :ios, '13.0'

target 'MyPod_Example' do
  
  pod 'MyPod', :path => '../'
  
  target 'MyPod_Tests' do
    inherit! :search_paths
    
  end
end

Cannot give sample code for privacy reasons.

@dnkoutso
Copy link
Contributor

Transferring to https://github.com/cocoapods/pod-template

@dnkoutso dnkoutso transferred this issue from CocoaPods/CocoaPods Apr 14, 2022
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

2 participants