- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试将 GoogleSignIn
库添加到框架项目中。
我的项目结构:
- XXX.xcworkspace
- XXXX
- XXXX.xcproject
- XXXXModel
- XXXModel.xcproject
- XXXXAmazonAPI
- XXXAmazonAPI.xcproject
- Podfile
这是我的 Podfile 的样子:
platform :ios, '10.0'
workspace 'XXX.xcworkspace'
use_frameworks!
# Place all the common pods for targets
def common_pods
pod 'PromiseKit', :modular_headers => true
end
target 'XXXX' do
project 'XXXX/XXXX.xcodeproj'
common_pods
target 'XXXXTests' do
inherit! :search_paths
end
target 'XXXXUITests' do
inherit! :search_paths
end
end
target 'XXXXModel' do
project 'XXXXModel/XXXXModel.xcodeproj'
common_pods
target 'XXXXModelTests' do
inherit! :search_paths
end
end
target 'XXXXAmazonAPI' do
project 'XXXXAmazonAPI/XXXXAmazonAPI.xcodeproj'
common_pods
pod 'AWSCore'
pod 'AWSMobileClient'
pod 'AWSAuthCore'
pod 'AWSGoogleSignIn'
pod 'AWSFacebookSignIn'
pod 'AWSUserPoolsSignIn'
pod 'GoogleSignIn'
pod 'FBSDKLoginKit'
target 'XXXXAmazonAPITests' do
inherit! :search_paths
end
end
当我 pod install
并尝试构建项目时,它因错误而崩溃:
Undefined symbols for architecture x86_64:
"_CGFontCreateWithDataProvider", referenced from:
___45+[NSBundle(GID3PAdditions) gid_registerFonts]_block_invoke in GoogleSignIn(NSBundle+GID3PAdditions_ced5da3f7b3f618f4940e63de013ecaf.o)
"_UIApplicationDidEnterBackgroundNotification", referenced from:
-[MDMPasscodeCache init] in GoogleSignIn(MDMPasscodeCache_42de90102bb6814d03833694aafcc99d.o)
"_OBJC_METACLASS_$_UIViewController", referenced from:
_OBJC_METACLASS_$_GIDSignInWebViewController in GoogleSignIn(GIDSignInWebViewController_f7f89adeb6daf6502440d85b750eb00c.o)
"_OBJC_CLASS_$_UIBarButtonItem", referenced from:
objc-class-ref in GoogleSignIn(GIDSignInWebViewController_f7f89adeb6daf6502440d85b750eb00c.o)
"_OBJC_CLASS_$_UIWebView", referenced from:
objc-class-ref in GoogleSignIn(GIDSignInWebView_1321a9d44d461432c165fb69716cee1c.o)
"_OBJC_CLASS_$_UIView", referenced from:
_OBJC_CLASS_$_GIDSignInWebView in GoogleSignIn(GIDSignInWebView_1321a9d44d461432c165fb69716cee1c.o)
"_CGContextFillPath", referenced from:
-[GIDSignInButton drawButtonBackground:] in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
"_CGRectZero", referenced from:
-[GIDSignInWebView createWebView] in GoogleSignIn(GIDSignInWebView_1321a9d44d461432c165fb69716cee1c.o)
"_UIGraphicsBeginImageContextWithOptions", referenced from:
-[UIImage(GIDAdditions_Private) gid_imageWithBlendMode:color:] in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
"_CGContextSetShouldAntialias", referenced from:
-[UIImage(GIDAdditions_Private) gid_imageWithBlendMode:color:] in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
"_OBJC_CLASS_$_UIActivityIndicatorView", referenced from:
objc-class-ref in GoogleSignIn(GIDSignInWebView_1321a9d44d461432c165fb69716cee1c.o)
"_UIWindowLevelAlert", referenced from:
___57-[GIDEMMErrorHandler handleErrorFromResponse:completion:]_block_invoke in GoogleSignIn(GIDEMMErrorHandler_08c50849aae099317ac5d938cd28d2ea.o)
"_CGContextSetInterpolationQuality", referenced from:
-[UIImage(GIDAdditions_Private) gid_imageWithBlendMode:color:] in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
"_UIApplicationOpenSettingsURLString", referenced from:
___58-[GIDEMMErrorHandler passcodeRequiredAlertWithCompletion:]_block_invoke.124 in GoogleSignIn(GIDEMMErrorHandler_08c50849aae099317ac5d938cd28d2ea.o)
"_OBJC_METACLASS_$_UIControl", referenced from:
_OBJC_METACLASS_$_GIDSignInButton in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
"_CGContextDrawImage", referenced from:
-[UIImage(GIDAdditions_Private) gid_imageWithBlendMode:color:] in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
"_CGRectInset", referenced from:
-[GIDSignInButton drawButtonBackground:] in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
"_CGContextSetBlendMode", referenced from:
-[UIImage(GIDAdditions_Private) gid_imageWithBlendMode:color:] in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
"_UIGraphicsGetImageFromCurrentImageContext", referenced from:
-[UIImage(GIDAdditions_Private) gid_imageWithBlendMode:color:] in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
"_NSForegroundColorAttributeName", referenced from:
-[GIDSignInButton drawButtonText:] in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
"_CGDataProviderRelease", referenced from:
___45+[NSBundle(GID3PAdditions) gid_registerFonts]_block_invoke in GoogleSignIn(NSBundle+GID3PAdditions_ced5da3f7b3f618f4940e63de013ecaf.o)
"_OBJC_CLASS_$_UINavigationController", referenced from:
objc-class-ref in GoogleSignIn(GIDSignIn_f05654be6d1b2af59ab6df426a0c4eb9.o)
"_CGContextFillRect", referenced from:
-[UIImage(GIDAdditions_Private) gid_imageWithBlendMode:color:] in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
"_CGContextScaleCTM", referenced from:
-[GIDSignInButton drawButtonBackground:] in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
-[UIImage(GIDAdditions_Private) gid_imageWithBlendMode:color:] in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
"_CGContextTranslateCTM", referenced from:
-[GIDSignInButton drawButtonBackground:] in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
-[UIImage(GIDAdditions_Private) gid_imageWithBlendMode:color:] in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
"_OBJC_CLASS_$_UIColor", referenced from:
objc-class-ref in GoogleSignIn(GIDEMMErrorHandler_08c50849aae099317ac5d938cd28d2ea.o)
objc-class-ref in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
objc-class-ref in GoogleSignIn(GIDSignInWebView_1321a9d44d461432c165fb69716cee1c.o)
"_UIGraphicsEndImageContext", referenced from:
-[UIImage(GIDAdditions_Private) gid_imageWithBlendMode:color:] in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
"_CGFontRelease", referenced from:
___45+[NSBundle(GID3PAdditions) gid_registerFonts]_block_invoke in GoogleSignIn(NSBundle+GID3PAdditions_ced5da3f7b3f618f4940e63de013ecaf.o)
"_CGContextSaveGState", referenced from:
-[GIDSignInButton drawButtonBackground:] in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
"_CGContextSetShadowWithColor", referenced from:
-[GIDSignInButton drawButtonBackground:] in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
"_CGPathCreateMutable", referenced from:
-[GIDSignInButton drawButtonBackground:] in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
"_OBJC_METACLASS_$_UIView", referenced from:
_OBJC_METACLASS_$_GIDSignInWebView in GoogleSignIn(GIDSignInWebView_1321a9d44d461432c165fb69716cee1c.o)
"_CGPathAddRoundedRect", referenced from:
-[GIDSignInButton drawButtonBackground:] in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
"_CGPathRelease", referenced from:
-[GIDSignInButton drawButtonBackground:] in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
"_OBJC_CLASS_$_UIDevice", referenced from:
objc-class-ref in GoogleSignIn(GIDAuthentication_7b83cc27af8929ec7e4c9760d73a0f31.o)
objc-class-ref in GoogleSignIn(GIDEMMErrorHandler_08c50849aae099317ac5d938cd28d2ea.o)
"_OBJC_CLASS_$_UIImage", referenced from:
objc-class-ref in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
l_OBJC_$_CATEGORY_UIImage_$_GIDAdditions_Private in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
"_OBJC_CLASS_$_UIApplication", referenced from:
objc-class-ref in GoogleSignIn(GIDEMMErrorHandler_08c50849aae099317ac5d938cd28d2ea.o)
objc-class-ref in GoogleSignIn(GIDSignIn_f05654be6d1b2af59ab6df426a0c4eb9.o)
"_CGDataProviderCreateWithFilename", referenced from:
___45+[NSBundle(GID3PAdditions) gid_registerFonts]_block_invoke in GoogleSignIn(NSBundle+GID3PAdditions_ced5da3f7b3f618f4940e63de013ecaf.o)
"_OBJC_CLASS_$_UIAlertAction", referenced from:
objc-class-ref in GoogleSignIn(GIDEMMErrorHandler_08c50849aae099317ac5d938cd28d2ea.o)
"_CGContextRestoreGState", referenced from:
-[GIDSignInButton drawButtonBackground:] in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
"_CGContextRelease", referenced from:
-[GIDSignInButton drawRect:] in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
"_CGRectEqualToRect", referenced from:
-[GIDSignInButton setFrame:] in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
"_CGContextClipToMask", referenced from:
-[UIImage(GIDAdditions_Private) gid_imageWithBlendMode:color:] in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
"_UIAccessibilityTraitButton", referenced from:
-[GIDSignInButton sharedInit] in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
"_UIGraphicsGetCurrentContext", referenced from:
-[GIDSignInButton drawRect:] in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
-[UIImage(GIDAdditions_Private) gid_imageWithBlendMode:color:] in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
"_OBJC_CLASS_$_UIControl", referenced from:
_OBJC_CLASS_$_GIDSignInButton in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
"_UIApplicationDidBecomeActiveNotification", referenced from:
-[GIDSignIn init] in GoogleSignIn(GIDSignIn_f05654be6d1b2af59ab6df426a0c4eb9.o)
-[GIDSignIn dealloc] in GoogleSignIn(GIDSignIn_f05654be6d1b2af59ab6df426a0c4eb9.o)
"_OBJC_CLASS_$_UIAlertController", referenced from:
objc-class-ref in GoogleSignIn(GIDEMMErrorHandler_08c50849aae099317ac5d938cd28d2ea.o)
"_NSFontAttributeName", referenced from:
-[GIDSignInButton drawButtonText:] in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
+[GIDSignInButton textSize:withFont:] in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
"_OBJC_CLASS_$_UIWindow", referenced from:
objc-class-ref in GoogleSignIn(GIDEMMErrorHandler_08c50849aae099317ac5d938cd28d2ea.o)
"_OBJC_CLASS_$_UIViewController", referenced from:
objc-class-ref in GoogleSignIn(GIDEMMErrorHandler_08c50849aae099317ac5d938cd28d2ea.o)
objc-class-ref in GoogleSignIn(GIDSignIn_f05654be6d1b2af59ab6df426a0c4eb9.o)
_OBJC_CLASS_$_GIDSignInWebViewController in GoogleSignIn(GIDSignInWebViewController_f7f89adeb6daf6502440d85b750eb00c.o)
"_CGContextAddPath", referenced from:
-[GIDSignInButton drawButtonBackground:] in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
"_CGContextRetain", referenced from:
-[GIDSignInButton drawRect:] in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
"_OBJC_CLASS_$_UIScreen", referenced from:
objc-class-ref in GoogleSignIn(GIDEMMErrorHandler_08c50849aae099317ac5d938cd28d2ea.o)
objc-class-ref in GoogleSignIn(GIDSignInWebViewController_f7f89adeb6daf6502440d85b750eb00c.o)
"_CGContextSetFillColorWithColor", referenced from:
-[GIDSignInButton drawButtonBackground:] in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
-[UIImage(GIDAdditions_Private) gid_imageWithBlendMode:color:] in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
"_OBJC_CLASS_$_UIImageView", referenced from:
objc-class-ref in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
"_CGRectIsEmpty", referenced from:
___57-[GIDEMMErrorHandler handleErrorFromResponse:completion:]_block_invoke in GoogleSignIn(GIDEMMErrorHandler_08c50849aae099317ac5d938cd28d2ea.o)
"_OBJC_CLASS_$_UIFont", referenced from:
objc-class-ref in GoogleSignIn(GIDSignInButton_40b3cd8d3ca7b892c701e248656f34e3.o)
objc-class-ref in GoogleSignIn(NSBundle+GID3PAdditions_ced5da3f7b3f618f4940e63de013ecaf.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
最后一行说:
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我已经使用 Target Dependencies 设置了工作区。
这是在带有 iOS 目标 10.0 的 xcode 10.0 上
编辑:当我尝试在真实的 iOS 设备上运行它时,我遇到了同样的问题。
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
最佳答案
将 -ObjC
添加到 OTHER_LDFLAGS
解决了这个问题。记录在这里: https://firebase.google.com/docs/ios/setup
关于ios - 将 'GoogleSignIn' 添加到框架会导致 'symbol(s) not found for architecture x86_64' 崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52958863/
如果您设计分布式应用程序以实现轻松扩展,或者您只想使用 Amazon、Google 或 Microsoft 提供的任何新的“云计算”产品,那么您通常最终会使用一些典型的概念或组件: 分布式 blob
根据uncle Bob's Clean Architecture 、企业和应用程序业务规则(概念上由命令组成)位于外部接口(interface)层之下的层中。因此,无论何时调用接口(interface
我在网上找不到它的任何实现实际上为您提供了一种与框架无关且实用的实现方式。 我已经看到了几个解决它的低于标准的建议: 使存储库方法成为原子 使用例原子化 它们都不是理想的。 案例#1 :大多数用例依赖
我正在查看 Sparkle 项目的配置并注意到它们设置: 架构 = ppc i386 x86_64 有效架构 = i386 x86_64 来自苹果的有效架构描述: Space-separated li
只听本周的podcast并认为将您的一些经验组合在一起会很好,在这些经验中,您已经看到设计的“架构”方面比应有的支配更多东西。 Java 在这方面经常受到负面报道,而且随着 Java EE 的复杂性增
我正在阅读 Bob Martin (https://blog.8thlight.com/uncle-bob/2012/08/13/the-clean-architecture.html) 的清洁架构
OSGi是模块化架构,JavaBeans是组件架构。有什么区别? 最佳答案 OSGi 和 Java Beans 之间的主要区别在于类加载器的工作方式。在标准 .jar 文件或 EJB 中,rt.jar
我对 Clean Architecture 中的 Gateway to Entity 依赖有疑问。我认为以下同心圆图形经常被介绍为整洁的架构。 在上图中,Gateway并没有直视Entity。但是,还
我试图理解 TOGAF 9 的核心概念。 无论我多长时间阅读 TOGAF 手册中的解释,我都无法理解 Enterprise Continuum 和 Architecture Repository 之间
如果 Kappa 架构直接对流进行分析,而不是将数据拆分为两个流,那么在像 Kafka 这样的消息系统中,数据存储在哪里?或者它可以在数据库中进行重新计算? 单独的批处理层是否比使用流处理引擎重新计算
它们的含义是什么,我可以将它们设置为不同的值吗? 最佳答案 架构是您想要构建的架构,有效的架构是您可以设想使用您的代码库构建的架构。 所以也许您只想为 armv7 构建二进制文件,但相同的源代码可以为
我现在正在尝试在 Xcode 4.0 中构建的项目遇到问题,希望有人可以为我解释一下。 我正在尝试使用 ZBar SDK 并遵循此处概述的指南中概述的说明: http://zbar.sourcefor
在基于 Apple Silicon 的机器上使用 Interface builder 时,我当前的项目会引发 IBDesignable 错误。 我尝试排除用于调试的 arm64 架构,以及我在互联网上
Xcode 项目中出现警告: crypto was rejected as an implicit dependency for 'libcrypto.a' because its architect
我正在 Xcode 5 中开始新项目。我想使用 iOS SDK 7 开发应用程序,但部署目标为 iOS 5.0。当我在 Xcode 中创建新项目并尝试将部署目标更改为 5.0 时,我收到了这条消息:
编辑 :这个问题可能是旧的,它与 xcode 3 有关。 我正在开发一个需要 voip 支持的 iPhone 应用程序,所以我添加了 pjsip 的 ARM 版本图书馆。但如果我使用 iPhone 模
我们最近将最低 iOS 支持设置为 4.0,并开始使用 LLVM 编译器对当前可用的应用程序进行新更新。 将“架构”和“有效架构”设置为仅 armv7 是否会排除 iPhone 3G 等 armv6
我想在我的 64 位机器上启用额外的架构(32 位)。我做了 dpkg --print-architecture 来了解已知的架构,即 amd64 。之后我做了 dpkg --print--forei
操作系统:OS X Yosemite 版本 10.10.1 XCode:未安装 应用程序加载器3.0 (620) PhoneGap:3.7.0 PhoneGap 构建:在线 (build.phoneg
我们已经构建了一个具有多个 native 绑定(bind)的 Xamarin 应用程序(iOS、Android)。该应用程序在设备和模拟器上运行良好,我们能够毫无问题地构建存档(显然)。 问题是当我们
我是一名优秀的程序员,十分优秀!