体系结构x86_64的未定义符号:_MSImageSelectionIsDoneNotification

时间:2013-03-21 09:41:09

标签: macos cocoa x86-64

我一直在努力解决这个问题,但无法找到解决方案。

我有一个MSCropImageView定义

extern NSString * const MSImageSelectionIsDoneNotification;

在标题中,

NSString * const MSImageSelectionIsDoneNotification = @"MSApp.MSImageSelectionIsDoneNotification";

在MSCropImageView.m

但是当我打电话时

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(selectionIsDone:) name:MSImageSelectionIsDoneNotification object:self.imageView];
从另一个文件

我得到错误未定义的架构x86_64符号。我包含了定义符号的头文件。

1 个答案:

答案 0 :(得分:0)

不仅仅是头文件需要,我的猜测是MSCropImageView.m实际上并不包含在您构建的应用程序中。

换句话说,转到项目的文件列表,然后打开“文件检查器”视图(位于右侧)。对我来说,它看起来像这样:

Make sure Target Membership is selected for your .m file

确保为您构建的应用选中了带圆圈的复选框。

相关问题