体系结构 x86_64 iOS swift 的未定义符号 [英] Undefined symbols for architecture x86_64 iOS swift

查看:38
本文介绍了体系结构 x86_64 iOS swift 的未定义符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Swift 编程语言进行一个项目,并且我正在尝试使用一些较旧的 Objective-c 项目中的一些代码.我已经创建了桥接文件并导入了我需要的头文件,但出现以下错误,我知道这与链接某些框架有关,但即使我将 CoreGraphics 添加为附加框架,它仍然出现.有什么想法吗?

I am working on a project with the Swift programming language and I am trying to use some code from some older Objective-c projects. I have created the bridge file and imported the headers that I need but I get the following error, which I know it has to do with linking some framework, but even when I added CoreGraphics as an added framework it still appears. Any ideas?

体系结构 x86_64 的未定义符号:_CGPointMake",引用自:_CGPointAdd in SKActionEffects-669E235BD7235D6A.old:找不到架构 x86_64 的符号clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)

Undefined symbols for architecture x86_64: "_CGPointMake", referenced from: _CGPointAdd in SKActionEffects-669E235BD7235D6A.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

谢谢

更新: 设置 BaseSDK 不起作用.这就是我在 xcode6 中的构建设置.

UPDATE: setting the BaseSDK did not do the trick. This is what my build settings are like with xcode6.

推荐答案

检查您的文件的目标成员资格"是否合适.

Check if the "Target Membership" of your files are appropriate.

这篇关于体系结构 x86_64 iOS swift 的未定义符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆