简体   繁体   中英

Framework not found error Xcode 8

I am facing an xcode error after pod install , that says 在此输入图像描述 . while building my app on xcode 8 .My pod is :

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, ‘9.3’

use_frameworks!

target ‘CabGuardPro’ do
    pod 'GoogleMaps','~> 1.10.5'
    pod 'Canvas', '~> 0.1.2'
end

I already have tried all of following links:

1. ld: framework not found Parse Xcode 7 beta
2. Pod Error in Xcode "Id: framework not found Pods"
3. ld: framework not found error in xcode 8

Can anyone please tell me what am I doing wrong,Thanks in advance

In my case it was XCode 8.1 - CocoaPods 1.1.1 problem after updating.

Assuming you've already tried following commands in terminal:

  • sudo gem install cocoapods
  • pod install

and it didn't helped


This has fixed it for me:

  1. Open up the workspace.
  2. Click on the blue project icon (that expands into your file tree) on the left hand side of the screen
  3. Just to the right, select "Targets" (as opposed to "Project"--Project is blue, Target is like a pencil and a ruler and a paintbrush making a triangle)
  4. Click on the General tab
  5. Go to the "Linked Frameworks and Libraries" section (all the way at the bottom)
  6. There are two Pods framework
  7. Delete one of them

(can't tell you which one to delete - looks like you need pick one yourself and if it didn't help - then just try to delete another one). In my case there were two, like:

  • Pods.framework
  • Pods_-abstract_target-_-target_name-.framework

And I've deleted the first one.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM