【问题标题】:Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_ADBMobile", symbol(s) not found for architecture x86_64 clang: error架构 x86_64 的未定义符号:“_OBJC_CLASS_$_ADBMobile”,未找到架构 x86_64 的符号:错误
【发布时间】:2015-10-27 12:02:01
【问题描述】:

为一个集成了 Adob​​e Target 的 SDK 的 iOS 应用程序做一个 Xcode 项目,它在 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;
     }];
}

来自标题的错误如下,我的团队不知道如何修复它:

架构 x86_64 的未定义符号: “_OBJC_CLASS_$_ADBMobile”,引用自: ViewController.o 中的 objc-class-ref ld:未找到架构 x86_64 的符号 clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)

【问题讨论】:

  • 添加包含ADBMobile类的所需框架。

标签: ios objective-c xcode linker


【解决方案1】:

除了有框架。 如果你的指南就是这个例子。

https://github.com/Adobe-Marketing-Cloud/mobile-services/tree/master/samples/iOS/ADBMobileSamples

问题出在这个索引中

ADBMobileSamples/ADBMobileSamples/LocationTargetingController.m

问题出在有效架构中,请检查您是否没有 x86_64。

如果它看起来像这样,它对我有用

Valid Architectures           arm64 armv7 armv7s

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-02-15
    • 1970-01-01
    • 2016-11-12
    • 2018-06-23
    相关资源
    最近更新 更多