Flurry 集成 Xcode 上的 Mach-O 错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12545922/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Mach-O error on Flurry integration Xcode
提问by James
I'm attempting to integrate the Flurry SDK into my iOS app for the first time. I added the libraries and code to AppDelegate.m as explained in their instructions. When I compile I get the following errors:
我第一次尝试将 Flurry SDK 集成到我的 iOS 应用程序中。我按照他们的说明中的说明将库和代码添加到 AppDelegate.m。当我编译时,我收到以下错误:
Undefined symbols for architecture armv7:
"_SCNetworkReachabilityCreateWithAddress", referenced from:
+[FlurryReachability flurryReachabilityWithAddress:] in libFlurry.a(libFlurry.a-armv7-master.o)
"_SCNetworkReachabilityCreateWithName", referenced from:
+[FlurryReachability flurryReachabilityWithHostName:] in libFlurry.a(libFlurry.a-armv7-master.o)
"_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from:
-[FlurryReachability flurryStopNotifier] in libFlurry.a(libFlurry.a-armv7-master.o)
"_SCNetworkReachabilityScheduleWithRunLoop", referenced from:
-[FlurryReachability flurryStartNotifier] in libFlurry.a(libFlurry.a-armv7-master.o)
"_SCNetworkReachabilitySetCallback", referenced from:
-[FlurryReachability flurryStartNotifier] in libFlurry.a(libFlurry.a-armv7-master.o)
"_SCNetworkReachabilityGetFlags", referenced from:
-[FlurryReachability flurryCurrentReachabilityStatus] in libFlurry.a(libFlurry.a-armv7-master.o)
-[FlurryReachability isFlurryReachable] in libFlurry.a(libFlurry.a-armv7-master.o)
-[FlurryReachability isFlurryConnectionRequired] in libFlurry.a(libFlurry.a-armv7-master.o)
-[FlurryReachability isFlurryConnectionOnDemand] in libFlurry.a(libFlurry.a-armv7-master.o)
-[FlurryReachability isFlurryUserInterventionRequired] in libFlurry.a(libFlurry.a-armv7-master.o)
-[FlurryReachability isFlurryReachableViaWWAN] in libFlurry.a(libFlurry.a-armv7-master.o)
-[FlurryReachability isFlurryReachableViaWiFi] in libFlurry.a(libFlurry.a-armv7-master.o)
...
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I've updated to the latest version of XCode and am using the latest Flurry SDK.
我已经更新到最新版本的 XCode 并且正在使用最新的 Flurry SDK。
Anyone else encountering this and have a fix? Their support forums mentioned a similar issue several days ago but the users claimed it was fixed, and I can't find any suggestions on their site of what to do about it.
还有其他人遇到过这个问题并有解决办法吗?他们的支持论坛几天前提到了一个类似的问题,但用户声称它已修复,我在他们的网站上找不到任何关于如何处理的建议。
回答by BigSauce
In short, you need to link against the SystemConfiguration framework. The answer to this thread explains this. Fixed it for me when I upgraded to Flurry SDK 4.0.6.
简而言之,您需要链接到 SystemConfiguration 框架。这个线程的答案解释了这一点。当我升级到 Flurry SDK 4.0.6 时为我修复了它。
I wish Flurry explained this, but I did not see any documentation on Flurry's site explaining this necessary Flurry SDK 4.0.6 integration step.
我希望 Flurry 解释了这一点,但我没有在 Flurry 的站点上看到任何文档解释这个必要的 Flurry SDK 4.0.6 集成步骤。
回答by Cliff Ribaudo
There is an alternative API that is also free (full disclosure I'm a co-founder): www.askingpoint.com.It is iOS 6 ready and includes an embedded rating widget that is controlled from your server side account and uses your analytics to only ask users that use you a lot to rate you.
还有一个免费的替代 API(完全披露我是联合创始人):www.askingpoint.com。它支持 iOS 6,包括一个嵌入式评分小部件,该小部件由您的服务器端帐户控制,并使用您的分析仅询问经常使用您的用户对您进行评分。
Hope that addresses the complaints on my earlier post. Sorry about the messed up link.
希望能解决我之前帖子中的投诉。抱歉链接混乱。