为iOS应用程序执行Xcode项目,该应用程序集成了Adobe Target的SDK,它在ViewController中实现,如下所示:
-(void)welcomeMessageCampaign
{
[ADBMobile targetClearCookies];
ADBTargetLocationRequest* locationRequest = [ADBMobile targetCreateRequestWithName:@"welcome-message" defaultContent:@"Find Great Deals Everyday!" parameters:nil];
[ADBMobile targetLoadRequest:locationRequest callback:^(NSString *content)
{
self.welcomeMessage.text = content;
}];
}
标题中的错误如下,我的团队不知道如何修复它:
Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_ADBMobile", referenced from: objc-class-ref in ViewController.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
答案 0 :(得分:0)
除了拥有框架。 如果你的指南就是这个例子。
https://github.com/Adobe-Marketing-Cloud/mobile-services/tree/master/samples/iOS/ADBMobileSamples
问题在于这个索引
ADBMobileSamples/ADBMobileSamples/LocationTargetingController.m
问题在于有效的体系结构,请检查您是否没有x86_64。
如果它看起来像
,它对我有用Valid Architectures arm64 armv7 armv7s