我通过CocoaPods将Facebook Tweaks添加到了我的项目中,现在我想通过TestFlight与一些测试人员共享该应用程序。默认情况下,Tweaks在Release版本中被停用(在存档分发时使用),因此我执行了以下操作:
FB_TWEAK_ENABLED
宏定义了不同的值,Facebook Tweaks库使用该值来启用和禁用它的用法。由于我当然不希望在Release配置中启用Tweaks(例如,对于App Store),但是我确实希望能够分发通过TestFlight启用了Tweaks的应用程序,因此我在Debug和TestFlight配置中激活了Tweaks,但在发布配置。FB_TWEAK_ENABLED
在0和1之间切换来验证激活和停用Tweaks的有效性。 Undefined symbols for architecture armv7:
"__FBTweakIdentifier", referenced from:
___30-[SUPConfirmPaymentView setup]_block_invoke_2 in SUPConfirmPaymentView.o
___30-[SUPConfirmPaymentView setup]_block_invoke_254 in SUPConfirmPaymentView.o
___30-[SUPConfirmPaymentView setup]_block_invoke_277 in SUPConfirmPaymentView.o
___30-[SUPConfirmPaymentView setup]_block_invoke_2102 in SUPConfirmPaymentView.o
___30-[SUPConfirmPaymentView setup]_block_invoke_2125 in SUPConfirmPaymentView.o
___30-[SUPConfirmPaymentView setup]_block_invoke_2150 in SUPConfirmPaymentView.o
___30-[SUPConfirmPaymentView setup]_block_invoke_2171 in SUPConfirmPaymentView.o
...
Architctures
和Valid Architectures
设置为“arm64 armv7 armv7s”。SUPConfirmPaymentView setup
方法做了很多这样的调用:// setup animation constants
FBTweakBind(self, beatEnlargementFactor, @"Confirm Payment View", @"Beat Animation", @"scale factor", 1.1, 1.0, 3.0);
FB_TWEAK_ENABLED=1
FB_TWEAK_ENABLED=0
FB_TWEAK_ENABLED=0
FB_TWEAK_ENABLED=0
FB_TWEAK_ENABLED=0
FB_TWEAK_ENABLED=1
FB_TWEAK_ENABLED=1
#if defined(DEBUG) && DEBUG
#warning DEBUG=1
#else
#warning DEBUG=0
#endif
:debug
的内容,但是我不知道如何使用它,也没有找到有关它的任何文档。platform :ios, '7.0'
pod 'AFNetworking', '~> 2.0'
pod 'Tweaks'
:debug
语法使CocoaPods在调试配置中构建Tweaks库?
我认为您正在遇到这个问题:https://github.com/CocoaPods/CocoaPods/issues/1934#issuecomment-40132425。
(我不会交叉粘贴一个很长的答案及其所有上下文,最好是在票务跟踪器上阅读该问题。)
关于ios - 存档时,Facebook调整了CocoaPods链接器错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23013858/
欢迎光临 OStack程序员社区-中国程序员成长平台 (https://ostack.cn/) | Powered by Discuz! X3.4 |