New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS Frameworks路径问题 #132

Closed
libyyu opened this Issue Jul 15, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@libyyu

libyyu commented Jul 15, 2017

在编译iOS项目的时候,项目中使用了一些framework,如JSONKit,iflyMSC等,使用如下方式:
#import "JSONKit.h"
#import "iflyMSC/IFlySpeechRecognizer.h"
在Xcode中提供了Framework SearchPath,编译没问题。但是用xmake,怎么设置搜索路径呢,
用了add_frameworks("JSonKit")还是不行,一直报这几个文件找不到。请问这个该怎么解决。谢谢。

fatal error: 'JSONKit.h' file not found #import "JSONKit.h"

@waruqi

This comment has been minimized.

Show comment
Hide comment
@waruqi

waruqi Jul 15, 2017

Member

@libyyu 你可以尝试先手动加 编译选项:add_mxflags("-F/xxx/frameworkdir")add_ldflags("-F/xxx/frameworkdir") 试试。。。

后两天我会增加个 add_frameworkdirs 来支持下。。

Member

waruqi commented Jul 15, 2017

@libyyu 你可以尝试先手动加 编译选项:add_mxflags("-F/xxx/frameworkdir")add_ldflags("-F/xxx/frameworkdir") 试试。。。

后两天我会增加个 add_frameworkdirs 来支持下。。

@waruqi

This comment has been minimized.

Show comment
Hide comment
@waruqi

waruqi Jul 15, 2017

Member

dev分支上 我已经把 add_frameworkdirs("/xxx/frameworkdir", "/tmp/xxx") 接口加上了 你可以试下。。

Member

waruqi commented Jul 15, 2017

dev分支上 我已经把 add_frameworkdirs("/xxx/frameworkdir", "/tmp/xxx") 接口加上了 你可以试下。。

@waruqi waruqi added this to the v2.1.5 milestone Jul 15, 2017

@waruqi waruqi added no response and removed need response labels Jul 28, 2017

@waruqi waruqi closed this Jul 28, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment