AppsFlyer 集成在 iOS 中不起作用?
Posted
技术标签:
【中文标题】AppsFlyer 集成在 iOS 中不起作用?【英文标题】:AppsFlyer integration not working in iOS? 【发布时间】:2016-06-02 10:48:07 【问题描述】:我已经通过点击此链接在我的 ios 应用中添加了 AppsFlyer
link
并显示以下错误
duplicate symbol _OBJC_CLASS_$_AppsFlyerUtils in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerUtils.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerUtils.o)
duplicate symbol _OBJC_METACLASS_$_AppsFlyerUtils in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerUtils.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerUtils.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerTracker._appsFlyerDevKey in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerTracker.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerTracker.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerTracker._useReceiptValidationSandbox in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerTracker.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerTracker.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerTracker.userEmails in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerTracker.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerTracker.o)
duplicate symbol _OBJC_CLASS_$_AppsFlyerTracker in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerTracker.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerTracker.o)
duplicate symbol _OBJC_METACLASS_$_AppsFlyerTracker in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerTracker.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerTracker.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerTracker._backgroundTaskIdentifier in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerTracker.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerTracker.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerTracker.sessionConfiguration in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerTracker.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerTracker.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerTracker.sourceApplication in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerTracker.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerTracker.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerTracker.statSession in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerTracker.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerTracker.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerTracker.keychain in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerTracker.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerTracker.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerTracker.deeplink in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerTracker.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerTracker.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerTracker._isDebug in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerTracker.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerTracker.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerTracker._disableAppleAdSupportTracking in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerTracker.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerTracker.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerTracker._disableIAdTracking in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerTracker.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerTracker.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerTracker.dispatchQueue in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerTracker.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerTracker.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerTracker._delegate in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerTracker.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerTracker.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerTracker.emailCryptType in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerTracker.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerTracker.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerTracker.lastLaunchTime in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerTracker.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerTracker.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerTracker.platfromDevName in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerTracker.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerTracker.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerTracker._shouldCollectDeviceName in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerTracker.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerTracker.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerTracker._currencyCode in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerTracker.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerTracker.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerTracker._deviceTrackingDisabled in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerTracker.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerTracker.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerTracker.pushPayload in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerTracker.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerTracker.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerTracker.iADV3data in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerTracker.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerTracker.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerTracker._customData in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerTracker.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerTracker.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerTracker.didCollectIAdData in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerTracker.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerTracker.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerTracker.referralURL in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerTracker.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerTracker.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerTracker._customerUserID in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerTracker.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerTracker.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerTracker._appleAppID in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerTracker.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerTracker.o)
duplicate symbol _OBJC_CLASS_$_AppsFlyerServerHandler in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerServerHandler.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerServerHandler.o)
duplicate symbol _OBJC_METACLASS_$_AppsFlyerServerHandler in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerServerHandler.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerServerHandler.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerRequestCache.cachedRequests in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerRequestCache.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerRequestCache.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerRequestCache.cacheDirectoryPath in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerRequestCache.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerRequestCache.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerRequestCache.failedToInitialize in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerRequestCache.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerRequestCache.o)
duplicate symbol _OBJC_CLASS_$_AppsFlyerRequestCache in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerRequestCache.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerRequestCache.o)
duplicate symbol _OBJC_METACLASS_$_AppsFlyerRequestCache in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerRequestCache.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerRequestCache.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerRequestCache.isSendingCachedData in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerRequestCache.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerRequestCache.o)
duplicate symbol _OBJC_CLASS_$_AppsFlyerKeychainWrapper in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerKeychainWrapper.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerKeychainWrapper.o)
duplicate symbol _OBJC_METACLASS_$_AppsFlyerKeychainWrapper in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerKeychainWrapper.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerKeychainWrapper.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerKeychainWrapper.identifier in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerKeychainWrapper.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerKeychainWrapper.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerKeychainWrapper.accessGroup in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerKeychainWrapper.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerKeychainWrapper.o)
duplicate symbol _OBJC_CLASS_$_AppsFlyerDictionary in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerDictionary.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerDictionary.o)
duplicate symbol _OBJC_METACLASS_$_AppsFlyerDictionary in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerDictionary.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerDictionary.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerDictionary._dict in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerDictionary.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerDictionary.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerRequestCacheData._cacheKey in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerRequestCacheData.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerRequestCacheData.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerRequestCacheData._sdkVersion in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerRequestCacheData.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerRequestCacheData.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerRequestCacheData._postData in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerRequestCacheData.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerRequestCacheData.o)
duplicate symbol _OBJC_CLASS_$_AppsFlyerRequestCacheData in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerRequestCacheData.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerRequestCacheData.o)
duplicate symbol _OBJC_METACLASS_$_AppsFlyerRequestCacheData in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerRequestCacheData.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerRequestCacheData.o)
duplicate symbol _OBJC_IVAR_$_AppsFlyerRequestCacheData._requestURL in:
/Users/Company/Documents/iosApp/AppsFlyer.framework/AppsFlyer(AppsFlyerRequestCacheData.o)
/Users/Company/Documents/iosApp/Company/libAppsFlyerLib.a(AppsFlyerRequestCacheData.o)
ld: 54 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
有人知道吗?
【问题讨论】:
【参考方案1】:请检查 Build Phases -> Link Binary With Libraries 并删除目标中的重复项
【讨论】:
没有重复的库 检查复制包资源和编译源 编译器错误表明您的项目中有指向 AppsFlyer 库的重复链接。尝试将其从项目中删除并重新添加 使用 pod 和静态库尝试了两次......但总是说同样的错误 解决方案是从其他链接器标志中删除 -ObjC & $(inherit) 标志【参考方案2】:检查你的项目导航器,你已经导入了两次相同的文件或者import
文件中有一些循环。
【讨论】:
循环导入意味着什么? 您在 .h 和 .m 中都导入了相同的文件。 检查导入文件,可能是你导入的.m文件。并且还要检查 BuildPhases not contains any .h 文件。 解决方案是从其他链接器标志中删除 -ObjC & $(inherit) 标志以上是关于AppsFlyer 集成在 iOS 中不起作用?的主要内容,如果未能解决你的问题,请参考以下文章
Android - Branch.io 深度链接在 chrome 中不起作用
Flutter Web:使用 HtmlElementView、IFrameElement、registerViewFactory 实现的解决方案在 ios 中不起作用
WP is_user_logged_in() 在集成站点中不起作用
@WithMockUser 在集成测试中不起作用 - Spring boot