ld: framework not found GTMOAuth2clang: 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 endend
还接收有关框架路径的警告.具体如下:
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个错误将消失. 总结
以上是内存溢出为你收集整理的swift – ld:找不到框架GTMOAuth2全部内容,希望文章能够帮你解决swift – ld:找不到框架GTMOAuth2所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)