gpt4 book ai didi

objective-c - 将 Clevertap 集成到 Reactnative 应用程序时出现构建错误

转载 作者:行者123 更新时间:2023-12-02 20:01:42 25 4
gpt4 key购买 nike

我正在尝试将 clevertap 与 native React 集成,当我包含“use_frameworks!”时在 cocoa pods能够使用

#import <CleverTapReact / CleverTapReactManager.h>

在 UMLCore 中产生编译错误

  1. Already make the link of the application with clevertap
  2. Install all the package throught "yarn install"
  3. Install the pods throught "pod install"

这是我的播客文件:

//----

target 'discovery' do
pod 'React', :path => '../node_modules/react-native', :subspecs => [
'Core',
'CxxBridge',
'DevSupport',
'RCTText',
'RCTNetwork',
'RCTWebSocket',
'RCTAnimation',
'RCTImage',
]

pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

pod 'Google-Mobile-Ads-SDK'
pod 'CleverTap-iOS-SDK'
pod "Segment-CleverTap"

use_unimodules!
use_frameworks!

target 'discoveryTests' do
inherit! :search_paths
end
end

//----

我希望对应用程序进行良好的编译,但我遇到了编译错误

这是错误代码:

//----


info Undefined symbols for architecture x86_64:
"_UMLogError", referenced from:
+[UMUtilities NSDate:] in UMUtilities.o
-[UMViewManager updateProp:withValue:onView:] in UMViewManager.o

info "_UMLogInfo", referenced from:
+[UMUtilities UIColor:] in UMUtilities.o

info "_UMLogWarn", referenced from:
-[UMModuleRegistry registerExportedModule:] in UMModuleRegistry.o
-[UMModuleRegistry registerViewManager:] in UMModuleRegistry.o
-[UMModuleRegistry registerSingletonModule:] in UMModuleRegistry.o
-[UMModuleRegistryProvider moduleRegistryForExperienceId:] in UMModuleRegistryProvider.o
-[UMViewManager updateProp:withValue:onView:] in UMViewManager.o
ld: symbol(s) not found for architecture x86_64

info clang: error: linker command failed with exit code 1 (use -v to see invocation)


//----

最佳答案

您似乎正在使用 Cocoapods 为您的 iOS 应用程序集成 CleverTap React Native,据我所知,问题是您无法找到 CleverTapReactManager.h 类。

我建议将 pod 'clevertap-react-native', :path => '../node_modules/clevertap-react-native' 添加为 ios/Podfile 中的依赖项,而不是 pod 'CleverTap-iOS-SDK'

这个本地 clevertap-react-native Podspec 通过 Cocoapods 集成了 React Native iOS 桥。

安装相同的帮助链接:https://github.com/CleverTap/clevertap-react-native/blob/master/docs/install.md#installing-clevertap-react-native

希望这对您有所帮助。更多问题可以发帖https://community.clevertap.com/

关于objective-c - 将 Clevertap 集成到 Reactnative 应用程序时出现构建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55730505/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com