CocoaPods/CocoaPods

macOS CLI: dyld: Library not loaded ... image not found

Open

#9,156 opened on Sep 10, 2019

View on GitHub
 (7 comments) (0 reactions) (0 assignees)Ruby (2,685 forks)batch import
d1:easyhelp wantedt1:enhancement

Repository metrics

Stars
 (14,815 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Report

What did you do?

Create Podfile for empty MacOS CLI tool with:

target 'podNew' do
  use_frameworks!

  pod 'RxSwift'
  # Pods for podNew

end

Then run pod install and build

What did you expect to happen?

A successful build

What happened instead?

dyld: Library not loaded: @rpath/RxSwift.framework/Versions/A/RxSwift
  Referenced from: /Users/michaeleisel/Documents/Projects/podNew/Build/Products/Debug/podNew
  Reason: image not found

CocoaPods Environment

Stack

   CocoaPods : 1.7.5
        Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]
    RubyGems : 3.0.3
        Host : Mac OS X 10.15 (19A536g)
       Xcode : 10.3 (10G8)
         Git : git version 2.21.0
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
Repositories : artsy - https://github.com/artsy/Specs.git @ ef1735b844309562ba59a1ef257a3148958fe4e9
               master - https://github.com/CocoaPods/Specs.git @ e32f4aaa8f6ad641a62cf88b3b54b521055331d0

Installation Source

Executable Path: /usr/local/bin/pod

Plugins

cocoapods-deintegrate                 : 1.0.4
cocoapods-disable-podfile-validations : 0.1.1
cocoapods-generate                    : 1.5.0
cocoapods-plugins                     : 1.0.0
cocoapods-search                      : 1.0.0
cocoapods-stats                       : 1.1.0
cocoapods-trunk                       : 1.3.1
cocoapods-try                         : 1.1.0

Podfile

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

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

  pod 'RxSwift'
  # Pods for podNew

end

Project that demonstrates the issue

It's just an empty project, created and built with Xcode 10.

Contributor guide