架构x86_64的未定义符号:“_ OBJC_CLASS _ $ _ ADBMobile”,未找到架构x86_64 clang的符号:error

时间:2015-08-04 22:03:16

标签: ios objective-c xcode linker

为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)

1 个答案:

答案 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