swift – ld:找不到框架GTMOAuth2
发布时间:2020-12-14 18:58:39 所属栏目:百科 来源:网络整理
导读:一切都工作正常,直到我的Mac格式化.格式化后(从El Capitan移动到Sierra),我克隆了存储库,安装了 Cocoapods,进行了pod更新.一切都搞砸了豆荚.我无法构建应用程序.错误在于Cocoapods(我想是这样).错误如下: ld: framework not found GTMOAuth2clang: error: l
一切都工作正常,直到我的Mac格式化.格式化后(从El Capitan移动到Sierra),我克隆了存储库,安装了
Cocoapods,进行了pod更新.一切都搞砸了豆荚.我无法构建应用程序.错误在于Cocoapods(我想是这样).错误如下:
ld: framework not found GTMOAuth2 clang: error: linker command failed with exit code 1 (use -v to see invocation) 我正在使用Xcode 8.0和Swift 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' 解决方法
通过选择.xcworkspace(而不是.xcodeproj)重新打开您的项目,这3个警告和1个错误将消失.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |