Ld: framework not found GTMOAuth2

Everything worked fine until I formatted my Mac. After formatting (moving from El Capitanto Sierra) I cloned the repository, installed Cocoapods, did pod update. And everything got messed up with pods. I can not create an application. Error with Cocoapods(I think so). The error is as follows:

ld: framework not found GTMOAuth2
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I use Xcode 8.0and Swift 2.3, with Cocoapods 1.1.1.

My Podfile:

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

target 'ProjectName' do
  # Comment this line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Firebase Pods
  pod 'Firebase'
  pod 'Firebase/Messaging'
  pod 'Firebase/Auth'
  pod 'Firebase/Crash'

  # Google Pods
  pod 'Google/SignIn'
  pod 'Google/Analytics'

  # Crashlytics
  pod 'Fabric'
  pod 'Crashlytics'

  # Facebook
  # pod 'FacebookCore'

  # Pods for ProjectName

  target 'ProjectName Tests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'ProjectName UITests' do
    inherit! :search_paths
    # Pods for testing
  end
end

Also receives a warning about wireframe paths. It looks like this:

ld: warning: directory not found for option '-F/Users/<user>/Library/Developer/Xcode/DerivedData/<project-name>-ftvbhpamiyfzmwdfpxknyvpcypde/Build/Products/Debug-iphonesimulator/GTMOAuth2'

ld: warning: directory not found for option '-F/Users/<user>/Library/Developer/Xcode/DerivedData/<project-name>-ftvbhpamiyfzmwdfpxknyvpcypde/Build/Products/Debug-iphonesimulator/GTMSessionFetcher'

ld: warning: directory not found for option '-F/Users/<user>/Library/Developer/Xcode/DerivedData/<project-name>-ftvbhpamiyfzmwdfpxknyvpcypde/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac'
+4
source share
3 answers

Reopen the project by selecting .xcworkspace(not .xcodeproj), these 3 warnings and 1 error will disappear.

+16

, , Build Active Architecture Only No . Build Active Architecture Only No Pod, .

enter image description here

.

0

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


All Articles