CocoaPods / CocoaPods

The Cocoa Dependency Manager.
https://cocoapods.org/
Other
14.57k stars 2.63k forks source link

dyld: Library not loaded #8233

Closed gerchicov-bp closed 6 years ago

gerchicov-bp commented 6 years ago

Report

What did you do?

I just run the app with cocoapods. Cocoapods version: 1.6.0.beta.1 xcode version: 10.0

What did you expect to happen?

everything works

What happened instead?

On each second run I get this error: dyld: Library not loaded: @rpath/Adjust.framework/Adjust ... tried to completely remove Adjust from project - nothing happens - the app shows the same error with the same frequency but with another pod - Keychain. I also saw some issues which represent the similar errors but with another frequency and they don't happen in stable xcode 10 version

CocoaPods Environment

Stack

   CocoaPods : 1.6.0.beta.1
        Ruby : ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin16]
    RubyGems : 2.7.4
        Host : Mac OS X 10.13.6 (17G65)
       Xcode : 10.0 (10A255)
         Git : git version 2.17.1 (Apple Git-112)
Ruby lib dir : /usr/local/Cellar/ruby/2.5.0/lib
Repositories : ap4y - https://github.com/ap4y/OrigamiEngine.git @ 0bbdc3c5344b631e039a67a0aff481746e1aded3
               appodeal - https://github.com/appodeal/CocoaPods.git @ 4805ad96fba220914f7260e0d6d3ce8b164ef07c
               master - https://github.com/CocoaPods/Specs.git @ d945bf63e428f26b0c19ce4ecf11f8c6c9144d79

Installation Source

Executable Path: /usr/local/bin/pod

Plugins

cocoapods-deintegrate : 1.0.2
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.0.0
cocoapods-trunk       : 1.3.1
cocoapods-try         : 1.1.0

Podfile

#source 'https://github.com/CocoaPods/Specs.git'
project 'Instagram.xcodeproj'

# Uncomment this line to define a global platform for your project
platform :ios, '10.0'
# Uncomment this line if you're using Swift
use_frameworks!

def shared_pods
#  pod 'SwiftyStoreKit', '0.10.2'
  pod 'SwiftyStoreKit', '0.13.1'
  pod 'Keychain', :git => 'https://github.com/pkrll/Keychain.git', :branch => 'swift3'
  # pod 'Firebase/Core'
  pod 'WKBridge', '0.2.0'
  pod 'Adjust', '~> 4.11.5'
  pod 'SwiftSoup', '~> 1.7.1'

  pod 'mopub-ios-sdk', '~>5.1.0'
  pod 'MoPub-AdMob-Adapters', '~>7.31'
  pod 'RealmSwift'
end

... //some code which is normal and not related to this problem

=begin
post_install do |installer|
  # Special fix for 'AppIcon is not showing after install, even if icon files are located in bundle'
  # Note: this code should be called at the end of post_install hook!
  installer.aggregate_targets.each do |target|
    copy_pods_resources_path = "Pods/Target Support Files/#{target.name}/#{target.name}-resources.sh"
    string_to_replace = '--compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"'
    assets_compile_with_app_icon_arguments = '--compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${BUILD_DIR}/assetcatalog_generated_info.plist"'
    text = File.read(copy_pods_resources_path)
    new_contents = text.gsub(string_to_replace, assets_compile_with_app_icon_arguments)
    raise "Patching failed: can't find '#{string_to_replace}' in '#{copy_pods_resources_path}'" if new_contents == text
    File.open(copy_pods_resources_path, "w") {|file| file.puts new_contents}
  end
end
=end
dnkoutso commented 6 years ago

Need sample

stale[bot] commented 6 years ago

This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem :+1: