4

Macをフォーマットするまで、すべてが正常に機能していました。それをフォーマットした後(からEl Capitanに移動Sierra)、リポジトリを複製し、インストールCocoapodsし、実行しましたpod update。そして、すべてが台無しになりましたpods。アプリケーションをビルドできません。エラーはCocoapods(私はそう思う)です。エラーは次のとおりです。

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

と を使用Xcode 8.0Swift 2.3ていCocoapods 1.1.1ます。

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

フレームワークのパスに関する警告も受け取ります。それは次のとおりです。

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

4 に答える 4

1

この問題を解決する には、プロジェクトのビルド設定でが にBuild Active Architecture Only設定されていることを確認してください。Noまた、添付のスクリーンショットに示すように、すべての Pod ターゲットで に設定Build Active Architecture Onlyします。No

ここに画像の説明を入力

次に、プロジェクトをクリーンアップして再構築します。

于 2017-05-13T09:20:34.300 に答える