我正在尝试将一些库导入到今天的扩展中(在主应用中工作得很好)。当我运行这个应用程序时,我得到以下错误:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_Budget", referenced from:
objc-class-ref in TodayViewController.o
"_OBJC_CLASS_$_JBBarChartView", referenced from:
objc-class-ref in TodayViewController.o
"_OBJC_CLASS_$_Users", referenced from:
objc-class-ref in TodayViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)以下是导入:
#import "JBBarChartView.h"
#import "JBChartView.h"
#import "Users.h"
#import "Budget.h"有什么建议吗?
发布于 2016-10-18 15:25:22
如果您使用pods并导入一些库,则可以像这样编辑Podfile:
target 'MyApp' do
pod 'GoogleAnalytics', '~> 3.1'
# Has its own copy of OCMock
# and has access to GoogleAnalytics via the app
# that hosts the today target
target 'MyAppToday' do
inherit! :search_paths
pod 'OCMock', '~> 2.0.1'
end
end如果您想使用您自己的类,请单击此文件并选中目标membership.You也可以将这些文件打包为框架。
https://stackoverflow.com/questions/26639519
复制相似问题