CocoaPods does not bind libraries

I recently started using CocoaPods for dependency management in my existing ios project. I am using Xcode 7.1.1 on a Mac with OS X 10.11.1 (El Capitan).

the problem is that I still have to explicitly link the frameworks in the "Linking binaries to libraries" section of the assembly phases, or I get error messages saying that "_OBJC_CLASS _ $ _ Crashlytics" referenced by: ld: symbol (s) that were not found for the x86_64 architecture ... I get a series of these errors for classes defined in dependencies managed by CocoaPods. if I explicitly add the appropriate structures to the Pods project in the Link Binary with Libraries section of my goal, everything works, but, in my opinion, this is not necessary.

here podfile:

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

workspace 'myproject'

def shared_pods
  pod 'ParseUI'
  pod 'ParseCrashReporting'
  pod 'Fabric'
  pod 'Crashlytics'
end

target 'myproject' do
  shared_pods
end

target 'myprojectTests' do
  shared_pods
  pod 'OHHTTPStubs'
end

, , pod mgmt . , , ... , Pods.

,

+4
1

, , , .

(cocoapod version 1.2.1):

  abstract_target 'Global' do
    pod 'pod-name', '~> 1.0,0', :configurations => ['Alpha', 'Release']
    pod 'pod-nme2', :configurations => ['Release']

    target 'MyTarget' do
    end
  end

, , , , , .. "Debug" not "Alpha", .

, !

"Undefined x86_64:"

0

Source: https://habr.com/ru/post/1619242/


All Articles